sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: May the fusion support for `functional.batch_norm` be added?
Labels: module: fx,module: fx.passes,oncall: fx

### 🚀 The feature, motivation and pitch

I'm using [optimization.fuse](https://github.com/pytorch/pytorch/blob/e39aedfcc582eb897e5680c452215e66d5c59c78/torch/fx/experimental/optimization.py#L50) to fuse model's conv and batch_norm operations, but I found that this API can only match `nn.BatchNorm*d` but cannot match `functional.batch_norm`.
May the fusion support for `functional.batch_norm` be added?

### Alternatives

_No response_

### Additional context

UT:
```python
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.fx.experimental.optimization as optimization
from torch.profiler import profile, ProfilerActivity


class SimpleConvBNModel(nn.Module):
    def __init__(self, input_channels, output_channels, kernel_size, stride=1, padding=0):
        super(SimpleConvBNModel, self).__init__()
        self.conv = nn.Conv2d(input_channels, output_channels, kernel_size, stride, padding)
        self.num_features = output_channels
        self.gamma = nn.Parameter(torch.ones(self.num_features))
        self.beta = nn.Parameter(torch.zeros(self.num_features))
        self.bn2d = nn.BatchNorm2d(
            output_channels, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True
        )
        # Assuming running_mean and running_var are managed elsewhere or not used in this simplified example

    def forward(self, x):
        running_mean = torch.zeros(16).cuda()
        running_var = torch.ones(16).cuda()
        x = self.conv(x)

        # Case 1
        # Cannot be fused

        x = F.batch_norm(
            x,
            running_mean=running_mean,
            running_var=running_var,
            weight=self.gamma,
            bias=self.beta,
            training=False,
        )

        # Case 2
        # Can be fused
        # x = self.bn2d(x)
        return x


# Ensure everything is on the same device
model = SimpleConvBNModel(3, 16, 3).cuda()
model.eval()
model = optimization.fuse(model)


# Dummy input
input_tensor = torch.randn(4, 3, 64, 64).cuda()

# Forward pass
with profile(activities=[ProfilerActivity.CPU, ProfilerActivity.CUDA]) as prof:
    with torch.no_grad():
        for i in range(100):
            output = model(input_tensor)
print(prof.key_averages().table(sort_by="self_cuda_time_total", max_name_column_width=100))
```

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv
Repository: stable-diffusion-webui
Issue: [Bug]: Use magic code to verify file type instead user provided file extension name
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

In [code](https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/bef51aed032c0aaa5cfd80445bc4cf0d85b408b5/modules/safe.py#L73), it checks the legal file types. The `pkl` file would be better to be used to check with a magic code rather than user provided file extension. 

### Steps to reproduce the problem

Create a txt file. Rename it into `xx.pkl`, zip it and upload.

### What should have happened?

Use magic code to filter illegal files.

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

_No response_

### Sysinfo

N

### Console logs

```Shell
N
```


### Additional information

_No response_
Repository: kubernetes
Issue: Commands and output are logged when attached to a container via kubectl
Labels: sig/node,sig/auth,sig/security,triage/accepted

When attached to a container, all commands and output executed during an attached session will be visible via pods/log that could be scraped.

**Repro steps:**
Run a pod and directly attach to its shell with the following command:
> kubectl run -it my-pod —image=busybox — sh

Once the pod is started and attached, anything that is typed in the terminal is not only visible in the Kubernetes console (for example in Openshift pod logs tab), but also scraped by the log-scrapers like fluentbit and are forwarded to ELK/EFK/etc.
Many SREs, infra engineers, troubleshooters run pods like this to troubleshoot and spot problems, and many times credentials and other sensitive information is used during troubleshooting. 

e.g.
> curl -u username:mypass http://example.com/ 
will log username and password on the console and eventually into logs

**Note**: when exec into a container, that session is never logged

**Proposal:**
Add a warning to remind users that `all commands and output executed when attached to a container will be visible via pods/log` to help users who might not expect this behavior

Initially reported by @yosuf
Repository: excalidraw
Issue: Duplicated text in shape container
Labels: bug,high priority

Happening on Ms. Edge and Chrome, not every label does this, but some does.

The text is inside the shaped container.

To reproduce:
1. Open a recent project (in my case collaboration) with shapes that has text inside
2. Move the shapes that has text
3. Double click the ghosting text to remove it
4. Move the shape again
5. back to step 3.

![311669772-fd7108b2-1ad5-45c7-9ea4-e01dd191f062](https://github.com/excalidraw/excalidraw/assets/98963440/75a1592a-2bc5-4af0-b16a-1fd6b9409271)

A follow up of issue #1226
Repository: deno
Issue: incorrect coverage report when using disposables
Labels: bug,testing

Version: Deno 1.41.3

It's a little difficult to be certain, but with the following two files
<details>
<summary>disposed.ts</summary>

```typescript
export function test() {
  using test = {
    [Symbol.dispose]() {},
  };
}
```
</details>
<details>
<summary>disposed_test.ts</summary>

```typescript
import { test } from "./disposed.ts";

Deno.test("disposed", () => test());
```
</details>
And running `deno test --coverage` followed by `deno coverage --lcov`, there are 9 BRDAs.
<details>
<summary>BRDAs</summary>

BRDA:1,3,0,0
BRDA:1,3,1,0
BRDA:1,3,2,0
BRDA:1,5,0,0
BRDA:1,5,1,0
BRDA:1,5,2,0
BRDA:1,5,3,0
BRDA:1,5,4,0
BRDA:4,6,0,0
</details>
Where there ought to be none. I suspect this is due to the `_using` and `_dispose` shims adding code that isn't ignored by the reporter
Repository: rust
Issue: Don't show two different types as the same thing in a single function
Labels: T-rustdoc,C-enhancement,A-rustdoc-ui

I noticed this in <https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/traits/consts/trait.ConstMethods.html#tymethod.scalar_to_backend> today:

![image](https://github.com/rust-lang/rust/assets/18526288/06e0c303-3550-4028-8807-9eb110c6c5ca)

Those two `Scalar`s are actually *different* types, however.

It would be nice to detect things like this and show some distinguisher.  Maybe `value::Scalar` and `rustc_abi::Scalar` -- including enough module context to distinguish -- or something?  Or maybe show the crate name?

(Crate name might be good, since a single crate can fix multiple types with the same name, if needed.)

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"krtab"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: terminal
Issue: sendInput sending no input on `\u001b\u007f`
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix

### Windows Terminal version

1.19.10573.0

### Windows build number

10.0.22631.0

### Other Software

_No response_

### Steps to reproduce

Define actions using:
```
        {
            "command": 
            {
                // This send Alt + Backspace which deletes the last word.
                // However on powershell in windows this is binded to `ShellBackwardKillWord` 
                // which deletes full word without caring about delimiters
                // Can be fixed using Set-PSReadLineKeyHandler -Function BackwardKillWord -Key Alt+Backspace

                "action": "sendInput",
                "input": "\u001b\u007f"
            },
            "keys": "ctrl+backspace"
        },
```

In a linux shell (WSL or over SSH), run `showkey -a`, no input is received when pressing `Ctrl+Backspace`. 

### Expected Behavior

Output of `showkey -a` should show something like below when pressing `Ctrl+Backspace`. 
```
 27 0033 0x1b
  8 0010 0x7f
```

### Actual Behavior

Output of `showkey -a` is empty when pressing `Ctrl+Backspace`. 
```[tasklist]
### Tasks
```
Repository: deno
Issue: Expo (React Native) tracking issue
Labels: bug,node compat,node API

```shell
$ deno run -A create-expo-app@latest AwesomeProject/
$ cd AwesomeProject/
$ deno task dev
```

```
// deno.jsonc
{
  "unstable": ["unsafe-proto"] // needed because of `typed-array-byte-offset` npm module
}
```
Blockers:
- [x] https://github.com/denoland/deno/issues/22939
- [x] #22971
- [x] #23043
- [x] https://github.com/denoland/deno/issues/23045
- [x] TypeError: Invalid URL: '/' with base '192.168.0.107:8081' https://github.com/expo/expo/pull/27822
- [x] #22973 

Non blockers but should be fixed:
- [ ] https://github.com/denoland/deno/issues/23040
- [ ] #23042
- [ ] #22972 (`rm -rf node_modules` and enabling BYONM fixes it)
- [ ] Linux only: https://github.com/denoland/deno/issues/17757
- [ ] Without BYONM: ```
       Web Bundling failed 29ms (node_modules/.deno/expo@50.0.14/node_modules/expo/AppEntry.js)
       Unable to resolve "../../App" from "node_modules/.deno/expo@50.0.14/node_modules/expo/AppEntry.js"
       ``` `expo/AppEntry.js` expects `App.js` to be 2 dir levels where it is 3 dir levels above in Deno.
Repository: deno
Issue: `expo-asset` not resolved from `node_modules/@expo`
Labels: bug,node compat

Follow steps in tracking issue to reproduce.
Repository: PowerToys
Issue: Can a certain program produce a sideslip effect?
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Can a certain program produce a sideslip effect?
For example, I want Obsidian to automatically hide when it is close to the left side of Windows, and then automatically appear when my mouse hovers over it?
And add shortcut key settings for it

### Scenario when this would be used?

Training and teaching demonstrations

### Supporting information

Suitable for various auxiliary software, working together with the main software
Repository: vscode
Issue: Split View does not account for 1px border
Labels: bug,splitview-widget

Reproduction steps:

1. Open `https://vscode.dev/github/microsoft/vscode`
2. Open a file and use command `Split Editor Right`
3.  Look carefully at the dividing line of tab on the right. 
![image](https://github.com/microsoft/vscode/assets/11473889/64d800fa-0ee5-428b-9698-5cf3c6a1a892)

5. The browser method can observe that the width of the border line is inconsistent when the first tab of the editor and the second tab are activated. 
![image](https://github.com/microsoft/vscode/assets/11473889/ec62f7fb-1393-4e5f-8615-1a638d3e612c)
![image](https://github.com/microsoft/vscode/assets/11473889/2091aeca-9fd1-4460-a89a-bf61ad52586f)


Version: 1.87.2
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Embedder: vscode.dev

<!-- generated by web issue reporter -->
Repository: next.js
Issue: layout page will be bundle non `edge-light` package in edge runtime
Labels: bug,Module Resolution

### Link to the code that reproduces this issue

https://github.com/himself65/nextjs-issue-edge-runtime

https://github.com/himself65/nextjs-issue-edge-runtime/blob/f76b2e1536d5f2cfb475420bc055c620b3267df4/src/app/layout.js#L2

### To Reproduce

```shell
pnpm install
pnpm run build
```

### Current vs. Expected behavior

only `this is index.edge.js`

But

```shell
➜  next-js-issue-edge-runtime git:(main) ✗ pnpm run build

> next-js-issue-edge-runtime@0.1.0 build /Users/himself65/Code/next-js-issue-edge-runtime
> next build

   ▲ Next.js 14.1.3

   Creating an optimized production build ...
Compiler edge-server unexpectedly exited with code: null and signal: SIGTERM
 ✓ Compiled successfully
 ✓ Linting and checking validity of types    
   Collecting page data  .this is index.js
this is index.edge.js
 ⚠ Using edge runtime on a page currently disables static generation for that page
 ✓ Collecting page data    
   Generating static pages (0/4)  [    ]this is index.js
 ✓ Generating static pages (4/4) 
 ✓ Collecting build traces    
 ✓ Finalizing page optimization    

Route (app)                              Size     First Load JS
┌ ℇ /                                    5.39 kB        89.7 kB
└ ○ /_not-found                          882 B          85.2 kB
+ First Load JS shared by all            84.3 kB
  ├ chunks/817ad8d0-48f8cfa23478a22c.js  53.4 kB
  ├ chunks/827-8d0cca265d95eb7f.js       29 kB
  └ other shared chunks (total)          1.93 kB


○  (Static)        prerendered as static content
ℇ  (Edge Runtime)  server-rendered on demand using the Edge Runtime
```

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Wed Feb 21 21:45:49 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6020
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 4.1.0
  pnpm: 8.11.0
Relevant Packages:
  next: 14.1.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A


warn  - Latest canary version not detected, detected: "14.1.3", newest: "14.2.0-canary.27".
        Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
        Read more - https://nextjs.org/docs/messages/opening-an-issue
```


### Which area(s) are affected? (Select all that apply)

App Router, Module resolution (CJS / ESM, module resolving)

### Which stage(s) are affected? (Select all that apply)

next build (local)

### Additional context

This will break the code if my default exports have node related code
Repository: vscode
Issue: There should be a prompt when clicking on the codelens(command) in the read-only editor
Labels: feature-request,merge-conflict

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 
  - 版本: 1.87.2 (Universal)
  - 提交: 863d2581ecda6849923a2118d93a088b0745d9d6
  - 日期: 2024-03-08T15:21:31.043Z
  - Electron: 27.3.2
  - ElectronBuildId: 26836302
  - Chromium: 118.0.5993.159
  - Node.js: 18.17.1
  - V8: 11.8.172.18-electron.0
- OS: Darwin x64 23.3.0

Steps to Reproduce:

1. Open any file that requires the merged code
2. To set the file to read-only, maybe only need to set the file path to read-only in the setting
3. Open the file and try to click codelens, it will have no effect.
4. Recommend that all operations which tries to modify the contents of a read-only file document, need a pop-up prompt.
Repository: pytorch
Issue: [Feature Request] add a new argument `storage_offset=None` to `empty_strided`
Labels: triaged,module: python frontend

### 🚀 The feature, motivation and pitch

## Motivation
Users use `empty_strided` to create a strided tensor. 

If users want to create a strided tensor with storage offset, since `empty_strided` doesn't have argument `storage_offset` they have to use `empty(...).as_strided(..., storage_offset=xxx)`, which is inconvient and slower.

This would also align the semantics of `empty_strided()` and `empty().as_strided()`.

## Proposal
The new empty_strided would looked like:
```py
torch.empty_strided(size, stride, *, dtype=None, storage_offset=None, layout=None, device=None, requires_grad=False, pin_memory=False)
```



### Alternatives

_No response_

### Additional context

_No response_

cc @albanD
Repository: godot
Issue: Godot Crash at startup.
Labels: bug,topic:rendering,crash

### Tested versions

i tried also  in the stable version 4.0.4 

### System information

Windows 10,  Macbook 10,2 (retina late 2012), i5-3210M, intel hd 4000 (i am using an older driver cause the new ones have problems on this mac), 8 Gb ram

### Issue description

i just installed godot 4.2.1 form steam. it crashed at start. i downloaded the version form the official site and open in command promt. i get this error. `WARNING: Project setting: rendering/limits/global_shader_variables/buffer_size exceeds maximum uniform buffer size of: 16384
`
also i don't have any project. i just wanted to start to learn how to use.

### Steps to reproduce

i tried also  with the version 4.0.4. same error.

### Minimal reproduction project (MRP)

i can't open the app. so i can't make a project
Repository: ollama
Issue: baichuan-inc/Baichuan2-13B-Chat   not supported. Can it be supported later
Labels: model request

### What are you trying to do?

https://huggingface.co/baichuan-inc/Baichuan2-13B-Chat     not supported

### How should we solve this?

baichuan-inc/Baichuan2-13B-Chat   not supported. Can it be supported later

### What is the impact of not solving this?

_No response_

### Anything else?

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: "Destructor" for the script
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 ?

In my custom script I applied for some CUDA memory, and I want to free these CUDA memory when I switch to script None from my custom script (or after swtching and pressing Generate). I didn't find some API to implement it, and have to do some tricky work to free these memory.

### Proposed workflow

1. Go to Script
2. Press My custom Script
3. Generate some images and get high CUDA mem usage
4. Switch to Script None, and now CUDA mem decreases (or after pressing Generate)


### Additional information

_No response_
Repository: next.js
Issue: Next uses invalid URL behind proxy
Labels: bug

### Link to the code that reproduces this issue

https://github.com/apfelbox/reproducer-invalid-next-host

### To Reproduce

1. Run `pnpm dev`
2. Open http://localhost:3000
3. Open the same URL via a reverse proxy.

### Current vs. Expected behavior

The internal URL (in `request.url` and `request.nextUrl`) should use the correct and proper URL, as otherwise we can't use it for anything output related. We can't just generate an URL, as it will be generated with `localhost:3000`.

![Screenshot_2024-03-18_10 23 23](https://github.com/vercel/next.js/assets/1032411/0e3f1993-bc5d-40c6-b1f9-07b0a54c3076)


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
Binaries:
  Node: 18.19.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: 8.15.5
Relevant Packages:
  next: 14.1.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

_No response_
Repository: TypeScript
Issue: Remove `@type` tag from hover info
Labels: Suggestion,Help Wanted,Experience Enhancement

### 🔍 Search Terms

`jsdoc tag @type remove`

### ✅ Viability Checklist

- [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 isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

TypeScript should strip the `@type` JSDoc annotation from the description in tooltips such as hover information and autocompletion.

TypeScript already strips type information from other JSDoc tags such as `@typedef`, `@property`, `@param`, and `@returns`, but not for `@type`. For example, try hovering over various tokens in [this playground](https://www.typescriptlang.org/play?filetype=js#code/PQKhCgAIUgBAXAngBwKYBNUDNIAVUBOAzgPYB2UM+x5kmRAxgQJbLzPkB0lkPsyBEmgJJIAbyLwWZAOYBfSGQCGAW1Q9IkAHKrUdVIxZsOZbtGDhwoCNEgA1JSyUAjADZ76TVuy6U+SNHFJaXlKC3d4SAA3R2YXdwBuS2s+ZEdVIKlmWQU0glUNPHSVfUNvEzMYWAJUeABXAjIiTJC5QoAlWoayaKVXOo8DL2Nfc3AsOrIGHx6sMgAKPNUASnEoSBr6xsgllXA2oA).

![A tooltip from hovering over an `@type` annotated variable](https://github.com/microsoft/TypeScript/assets/779047/4679c1e1-5940-404b-8733-cb859f92e4d4)

![A tooltip from hovering over a function](https://github.com/microsoft/TypeScript/assets/779047/1135f4a7-e584-4fe9-8691-5ce0ea276637)


### 📃 Motivating Example

TypeScript already stripped type information in various JSDoc tags in editor descriptions. Now it also strips the `@type` tag.

Try it in [this playground](https://www.typescriptlang.org/play?filetype=js#code/PQKhCgAIUgBAXAngBwKYBNUDNIAVUBOAzgPYB2UM+x5kmRAxgQJbLzPkB0lkPsyBEmgJJIAbyLwWZAOYBfSGQCGAW1Q9IkAHKrUdVIxZsOZbtGDhwoCNEgA1JSyUAjADZ76TVuy6U+SNHFJaXlKC3d4SAA3R2YXdwBuS2s+ZEdVIKlmWQU0glUNPHSVfUNvEzMYWAJUeABXAjIiTJC5QoAlWoayaKVXOo8DL2Nfc3AsOrIGHx6sMgAKPNUASnEoSBr6xsgllXA2oA)

```ts
/**
 * @typedef Person
 * Person description.
 * 
 * @property {string} name
 *   Name description.
 */

/**
 * Variable description.
 *
 * @type {string}
 */
let variable;

/**
 * @param {string} param
 *   Param description.
 * @returns {string}
 *   Return value description.
 */
function fn(param) {
  return param
}
```

### 💻 Use Cases

1. What do you want to use this for?
   To provide a better DX for libraries developed in JSDoc.
3. What shortcomings exist with current approaches?
   The inclusion of the `@type` tag in descriptions looks weird. Also the information is shown twice, as TypeScript also shows the processed type information.
5. What workarounds are you using in the meantime?
   There aren’t any.