sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: [NEXT-1182] Using `vercel build` doesn't properly tree shake Edge Runtime functions
Labels: bug,linear: next

### 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.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.12.1
      npm: 8.19.2
      Yarn: 1.22.17
      pnpm: 7.18.0
    Relevant packages:
      next: 13.1.7-canary.7
      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)

_No response_

### Link to the code that reproduces this issue

https://github.com/hansottowirtz/next-edge-tree-shaking-repro

### To Reproduce

```
vercel build --prod
```

Then open `.vercel/output/functions/index.func/index.js`, and see that the whole `@fortawesome/free-solid-svg-icons` is included.

### Describe the Bug

We're using `appDir` and Font Awesome icons. Those icon packages are very large, so they have to be tree shaken, otherwise they're too large to upload to the Edge Runtime (we got a Vercel error because of that).

In `page.tsx`:

```tsx
import { faAnchor } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

export default function Page() {
  return <FontAwesomeIcon icon={faAnchor}/>;
}
```

Only `faAnchor` should be included in the bundle, but the whole multi-MB `@fortawesome/free-solid-svg-icons` is included, which is too large for the Edge Runtime.

### Expected Behavior

Tree shaking should only bundle `faAnchor`.

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

_No response_

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

Vercel

<sub>[NEXT-1182](https://linear.app/vercel/issue/NEXT-1182/using-vercel-build-doesnt-properly-tree-shake-edge-runtime-functions)</sub>
Repository: opencv
Issue: global onnx_importer.cpp:1051 handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [MatMul]:(onnx_node!MatMul_1) from domain='ai.onnx'
Labels: bug,category: dnn (onnx)

### System Information

OpenCV opencv-python-rolling 4.6.0.20221112
Operating System / Platform: Ubuntu 20.04
Python version: 3.9.12
onnx : 1.12



### Detailed description
[ERROR:0@16.377] global onnx_importer.cpp:1051 handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [MatMul]:(onnx_node!p2o.MatMul.2) from domain='ai.onnx'

`OpenCV(4.7.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1073: error: (-2:Unspecified error) in function 'handleNode'
> Node [MatMul@ai.onnx]:(onnx_node!p2o.MatMul.2) parse error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/layers/fully_connected_layer.cpp:153: error: (-2:Unspecified error) in function 'virtual bool cv::dnn::FullyConnectedLayerImpl::getMemoryShapes(const std::vector<std::vector<int> >&, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&) const'
> >  (expected: 'inputsTmp[0][i] == inputsTmp[1][i]'), where
> >     'inputsTmp[0][i]' is 1
> > must be equal to
> >     'inputsTmp[1][i]' is 0
`

when i use ppocr v3 rec model using opencv dnn readnet the above error occurs, onnx model link is given below
https://drive.google.com/file/d/1BdGV-wYzEKBGogmLwHBFkJGwHWTMUnDx/view?usp=sharing

although it worked fine with the onnxruntime. 



### Steps to reproduce

install ppocr from paddleocr github repo.
export the recognition model into onnx format using paddle2onnx.


then use open.dnn.readnet(rec_model.onnx) you will get the error 

### 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
- [X] 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: node
Issue: Node.js built-in module support in the vm context
Labels: vm,feature request,never-stale,realm

Scripts/Modules running in the context created with `vm.createContext` can not access various Node.js built-in apis/modules like `URL`, `node:assert`, `node:http`, etc. This makes it cumbersome to create a disposable context for use cases like hot-module-reload to run existing node.js apps.

We can provide a built-in API to create a `context` (or a new `NodeRealm` for compatibility) with full-fledged Node.js built-in modules support. It allows object exchanges between realms and shares the same loop with the main context.
, similar to the existing `vm.context`.

/cc @mcollina @nodejs/realm @nodejs/vm
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add "hard prompts made easy"
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 ?

Implement this option in the img2img tab:

https://github.com/YuxinWenRick/hard-prompts-made-easy

### Proposed workflow

1. Go to img2img tab
2. Load an image
3. Invoke feature to generate the prompt


### Additional information

_No response_
Repository: vscode
Issue: Sorting is not correct when looking for `Profiles: ` commands
Labels: bug,papercut :drop_of_blood:,quick-open

<img width="687" alt="image" src="https://user-images.githubusercontent.com/10746682/217467117-ec14bec1-836f-4507-a38b-8d582f6e1501.png">
Repository: PowerToys
Issue: Wide horizontal bar for mouse highlighting
Labels: Needs-Triage

### Description of the new feature / enhancement

Mouse cursor highlighting is awesome when presenting a diagram with shared screen, because you can focus on what it is important at a given time. But it is not convenient for discussing source code, as the shape is not suitable for that.


### Scenario when this would be used?

If it could be possible to change the shape for a wide-screen bar, we would be able to use it for highlighting lines of code.

### Supporting information

_No response_
Repository: PowerToys
Issue: Quick Accent doesn't work with accents keys on Italian keyboard anymore
Labels: Issue-Bug,Idea-Enhancement,Needs-Triage,Needs-Team-Response,Product-Quick Accent

### Microsoft PowerToys version

0.67.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Quick Accent

### Steps to reproduce

On Italian keyboard layout, Quick Accents doesn't work on keys with accents like "è", "à", etc. It works normally on other keys like "e", "a", etc.

Issue persists since several last versions.

### ✔️ Expected Behavior

Quick Accents toolbar had to raise up with all keyboard keys.

### ❌ Actual Behavior

On Italian keyboard layout, Quick Accents doesn't work on keys with accents like "è", "à", etc.

### Other Software

_No response_
Repository: go
Issue: cmd/link:  buildmode=shared -linkshared - makeslice: cap out of range
Labels: NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?
1.20
<pre>
$ go version
go version go1.20 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/gbanala/.cache/go-build"
GOENV="/home/gbanala/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/gbanala/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/gbanala/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/gbanala/test/go/test1module/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3140564779=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?
1) sudo go install -buildmode=shared std
2) sudo go install -buildmode=shared -linkshared github.com/aristanetworks/goarista/gnmi
<!--
 Want to create a  shared library and link to my hello world go application. So I followed above 2 steps. Its failing at step 2. 
-->



### What did you expect to see?
Expect the shared library to be generated


### What did you see instead?
# /tmp/go-build2293747986/b246/libgithub.com-aristanetworks-goarista-gnmi.so
panic: runtime error: makeslice: cap out of range

goroutine 1 [running]:
cmd/link/internal/loader.(*Loader).LoadSyms(0xc000004300, 0x68a54a?)
        /usr/local/go/src/cmd/link/internal/loader/loader.go:2159 +0x11c
cmd/link/internal/ld.(*Link).loadlib(0xc0000fa000)
        /usr/local/go/src/cmd/link/internal/ld/lib.go:595 +0x48f
cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0x0, 0x0}, {0x6946ab, ...}, ...})
        /usr/local/go/src/cmd/link/internal/ld/main.go:268 +0xecb
main.main()
        /usr/local/go/src/cmd/link/main.go:72 +0xedb
Repository: ui
Issue: Multi select ?
Labels: area: component,area: request,Stale

Hi there ✋🏼 

thanks for this amazing components !

Is there a way to select multiple data with the Select component ?

Thanks !
Repository: pytorch
Issue: Inconsistent results when using torch.Tensor.bernoulli with float instead of Tensor probabilities
Labels: module: distributions,triaged,module: random,module: determinism

### 🐛 Describe the bug

When using `torch.Tensor.bernoulli` with a float value for `p` the results does not match the results when doing bernoulli manually (see case B) or when using a Tensor storing the probabilities.

I created 4 tests:
- B: manual bernoulli
- C: the test that fails, using `p` as float
- D: using a Tensor for probabilities
- E: same, with inplace bernoulli

```python
import torch

A = torch.zeros(15)
p = 0.75

torch.manual_seed(314159)
R = torch.rand_like(A)
B = (R < p).to(torch.float)
print('B:', B)

torch.manual_seed(314159)
C = A.bernoulli(p)
print('C:', C)

torch.manual_seed(314159)
p_ = torch.ones_like(A) * p
D = p_.bernoulli()
print('D:', D)

torch.manual_seed(314159)
E = A.detach().clone().bernoulli_(p_)
print('E:', E)

print()
print('Summary')
print('B == C', (B == C).all())
print('B == D', (B == D).all())
print('B == E', (B == E).all())

```

Output:
```
B: tensor([1., 0., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
C: tensor([1., 0., 0., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
D: tensor([1., 0., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
E: tensor([1., 0., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1.])

Summary
B == C tensor(False)
B == D tensor(True)
B == E tensor(True)
```
As you can see, the 3rd value in case C is different from the other cases. You can also increase the size of A, same result. If you look at `R`, the 3rd value is not even close to 0.75, so it cannot be a numerical problem.


### Versions

Collecting environment information...
PyTorch version: 1.13.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: CentOS Linux 7 (Core) (x86_64)
GCC version: (GCC) 10.3.0
Clang version: Could not collect
CMake version: version 3.24.2
Libc version: glibc-2.17

Python version: 3.7.12 (default, Feb  6 2022, 20:29:18)  [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] (64-bit runtime)
Python platform: Linux-3.10.0-1160.76.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
Is CUDA available: False
CUDA runtime version: 11.4.120
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.21.6
[pip3] pytorch-lightning==1.6.4
[pip3] torch==1.13.1
[pip3] torchmetrics==0.9.1
[pip3] torchvision==0.14.1
[conda] Could not collect

cc @fritzo @neerajprad @alicanb @nikitaved @pbelevich @mruberry @kurtamohler
Repository: next.js
Issue: Homepage overriden by catch-all route only in production
Labels: bug

### Verify canary release

- [ ] 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: Thu Jan  5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 14.20.0
      npm: 6.14.18
      Yarn: 1.22.19
      pnpm: 7.11.0
    Relevant packages:
      next: 13.1.2
      eslint-config-next: 13.1.2
      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://stackblitz.com/edit/vercel-next-js-rdfaba?file=pages/index.tsx

### To Reproduce

**NOTE:** Cannot reproduce in those shareable examples. ONLY happens in Production environment running inside Docker container, with CloudFlare connected

### Describe the Bug

**NOTE 2:** Cannot verify in Canary build, as my Mac refuses to install any packages, and blindly switching NextJS versions to Canary and pushing to production makes builds fail.

In Production Environment, the `.com/ **homepage**` will always get overriden by a catch-all route located in the same directory. However other routes, like `/login` will work, and some like `/404` will not work.
This bug is not reproducible in local development environment.

I have written in the shareable example that I tried trailingSlash configs, CloudFlare configs and various route names. None of these seem to do the trick.

I also included Dockerfile and docker-compose.yml from Prod to the repro-repo.

### Expected Behavior

`.com/` applies `pages/index.tsx` and `/abc` is handled by catch-all route.

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

_No response_

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

GitHub Actions builds project and Docker in a cloud server will deploy it automatically
Repository: go
Issue: net/http: document response body close error handling
Labels: Documentation,NeedsInvestigation

Documentation of the [`net/http` package](https://pkg.go.dev/net/http) suggests in two examples https://pkg.go.dev/net/http#pkg-overview and https://pkg.go.dev/net/http#example-Get to use `defer` to close response body and thus ignore returned error:
```go
resp, err := http.Get("http://example.com/")
if err != nil {
	// handle error
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
// ...
```

`securego` linter was recently changed to catch all unhandled errors of `io.ReadCloser.Close` and therefore it started to catch the very common `defer resp.Body.Close()` pattern, see discussion https://github.com/securego/gosec/issues/925.

It would be great to update package documentation examples with a proper error handling of `resp.Body.Close()` (or confirm that `defer resp.Body.Close()` is a safe and recommended pattern).
Repository: react-native
Issue: (iOS) autoComplete="cc-number" is not doing anything to allow autofill
Labels: Issue: Author Provided Repro,Component: TextInput,Needs: Triage :mag:

### Description

I've been trying to implement an TextInput for Credit Card Number that allows the users to autofill it using whatever password manager they use on their device.

I've tried different variations and props but its not working.

In my Snack it works when its running in web.
Tested on a physical android devices it works.
Tested on a physical iOS device it did not work.

Is this how its supposed to work or am I doing something wrong?

### Version

0.76.1

### Output of `npx react-native info`

System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 494.67 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.7.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.10.28.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/keatonroux/.rvm/gems/ruby-3.3.5/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.21829.142.2421.12409432
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /Users/keatonroux/.sdkman/candidates/java/current/bin/javac
  Ruby:
    version: 3.3.5
    path: /Users/keatonroux/.rvm/rubies/ruby-3.3.5/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: 15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

### Steps to reproduce

1. Init blank template
2. Create TextInput
3. Set autoComplete prop to "cc-number"


### Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/x9JtUAYkj
[snack.expo.dev/@tushetv/adequate-orange-tortillas](https://snack.expo.dev/@tushetv/adequate-orange-tortillas)
Repository: PowerToys
Issue: 将应用程序窗口移动到当前鼠标所在的窗口
Labels: Needs-Triage

### Description of the new feature / enhancement

判断鼠标当前所在的窗口，将选定的应用程序移动到当前的窗口。

### Scenario when this would be used?

在使用多屏幕时，如果将应用程序所在的屏幕关闭或者拔掉电源，应用程序将继续停留在原来的窗口，而不会移动到鼠标当前所在的窗口。如果有这么个功能，则可以方便多屏幕使用者。

### Supporting information

_No response_
Repository: PowerToys
Issue: Add special keyword configuration to PowerToys Run
Labels: Needs-Triage

### Description of the new feature / enhancement

I would like to suggest adding special keyword configurations that allow saving for example the keyword: "vt" as URL navigation to "https://virustotal.com", or a keyword for opening a specific directory in explorer.

### Scenario when this would be used?

as I mentioned in the description when I want quick access to a regular basis URL or directory in explorer, It would be easy just to type the keyword "vt" instead of writing the full URL.

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: Set value on Component doesn't work at all[Customer Script Development]
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

In customer script's ui() function, set a value like following to a component doesn't work at all:
```
a_textbox = gr.Textbox(label="Box One", lines=1, value="this is text box", elem_id=self.elem_id("a_textbox "))
```
In above code, the textbox's value will not be set, Textbox will still be empty.

I tried Dropdown, Radio, none works. I even tried build-in script, change their value, none of it works. 


I just installed webui yestoday, so it is the latest version.


### Steps to reproduce the problem

For exmple, load the build-in script "X/Y/Z Plot", there are 3 textbox on its ui, you can try to set a value in its script. like :
```
x_values = gr.Textbox(label="X values", lines=1, value=1, elem_id=self.elem_id("x_values"))
y_values = gr.Textbox(label="Y values", lines=1, value=2, elem_id=self.elem_id("y_values"))
z_values = gr.Textbox(label="Z values", lines=1, value="3", elem_id=self.elem_id("z_values"))
```
Then reload ui with Reload UI button in the setting tab. But those textbox will still be empty, no value at all.

### What should have happened?

Those value should be set, but now, there is no way to set them.

### Commit where the problem happens

latest master

### 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
--xformers
```


### List of extensions

Only buildin extensions, nothing else

### Console logs

```Shell
No error in console log.
```


### Additional information

_No response_
Repository: godot
Issue: Black screen on Android editor on devices that don't fully support Vulkan
Labels: bug,platform:android,topic:rendering,topic:editor,topic:porting,confirmed

### Godot version

Godot engine 3 Android(Beta)

### System information

Android 12, ColorOS 12.1, Mediatek MT6765 Helio G35 (12 nm),PowerVR GE8320

### Issue description

When creating a new project, attempting to edit it brings me to a blank black screen. 
Sometimes happens in godot editor 4 beta as well

### Steps to reproduce

Open godot
Create a new project
Attempt to edit the project

### Minimal reproduction project

N/A
Repository: go
Issue: cmd/go,os: `EAGAIN` when writing to stdout/stderr during test
Labels: NeedsInvestigation,GoCommand


### What version of Go are you using (`go version`)?

<pre>
$ go version

go version go1.20 linux/amd64

</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build674872367=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

Calls to `fmt.Printf()` during test fail with `/dev/stdout: resource temporarily unavailable` when printing long lines after part of the output has been printed. The output is truncated.

This can be worked around by passing the `-bench` flag to suppress output redirection during test execution.
Repository: pytorch
Issue: `func.jacrev()` should be implemented as `func.jacfwd().mT.contiguous()`
Labels: triaged,module: complex,module: functorch

### 🐛 Describe the bug

Forward AD is (should be?) faster to execute theoretically than backward AD, because it does not need to create a graph, save intermediate tensors, etc. Furthermore its formulas are simpler than those for the backward, so they should be faster for that reason as well.

We would also not have issues like https://github.com/pytorch/pytorch/issues/90499. 

### Versions

master

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved @zou3519 @Chillee @samdow @soumith @kshitij12345 @janeyx99