sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Determinism by using datapipes shuffle
Labels: module: dataloader,triaged,module: determinism

### 🐛 Describe the bug

I encountered a problem where iterating twice caused the dataset to lose determinism.

```python
dp1 = IterableWrapper(range(10)).shuffle().set_seed(1) 
dp2 = IterableWrapper(range(10)).shuffle().set_seed(1)

# First iteration
all_match1 = all(x == y for x, y in zip(dp1, dp2))  # true
# Second iteration
all_match2 = all(x == y for x, y in zip(dp1, dp2))  # false
```
After commenting out self._seed to None, it runs correctly.

### Versions

PyTorch version: 2.0.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 13.4 (x86_64)
GCC version: Could not collect
Clang version: 14.0.3 (clang-1403.0.22.14.1)
CMake version: Could not collect
Libc version: N/A

Python version: 3.10.12 (main, Jul  5 2023, 15:34:07) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-10.16-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M2 Pro

Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.25.1
[pip3] pytorch-lightning==2.0.5
[pip3] torch==2.0.1
[pip3] torchdata==0.6.1
[pip3] torchmetrics==1.0.1
[conda] numpy                     1.25.1                   pypi_0    pypi
[conda] pytorch-lightning         2.0.5                    pypi_0    pypi
[conda] torch                     2.0.1                    pypi_0    pypi
[conda] torchdata                 0.6.1                    pypi_0    pypi
[conda] torchmetrics              1.0.1                    pypi_0    pypi

cc @SsnL @VitalyFedyunin @ejguan @dzhulgakov @mruberry @kurtamohler
Repository: vscode
Issue: Cannot close window using touch
Labels: bug,upstream,windows,electron,under-discussion,titlebar,touch/pointer

Type: <b>Bug</b>

Thanks for awesome software!
Open VS code on a touch enabled Windows box, with or without extensions.
Try to touch the X at upper right to close. It will not close.
Moreover, it will disable all VS Code touch input until you mouse click inside somewhere.

VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|63.77GB (43.60GB free)|
|Process Argv|--crash-reporter-id bc1688aa-6a0b-473f-bd45-83de759d441b|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (8)</summary>

Extension|Author (truncated)|Version
---|---|---
mustache|daw|1.1.1
vscode-autohotkey-plus-plus|mar|5.0.2
python|ms-|2023.14.0
vscode-pylance|ms-|2023.8.30
remote-wsl|ms-|0.81.0
vscode-print|pdc|0.11.15
intellicode-api-usage-examples|Vis|0.2.7
vscodeintellicode|Vis|1.2.30


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
2e4cg342:30602488
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofb:30804716
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30812749

```

</details>

<!-- generated by issue reporter -->
Repository: opencv
Issue: The opencv dnn module with cuda can't work correctly
Labels: bug,category: gpu/cuda (contrib),category: dnn

### System Information

OpenCV python version: 4.8.0.74
Operating System / Platform: windows 10 LTSC 21H2
Python version: 3.9.13
Cuda version: 11.7
Cudnn version:  8.4.1.50

### Detailed description

I use cv2.dnn.readNetFromONNX() to load onnx file which is exported from yolov8. then set         net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
I do net.forward() and the result is [ [0,0,0,0, confidence1]
                                                          [0,0,0,0, confidence2] 
                                                          [0,0,0,0, confidence3] ]
that means every bounding box's prediction is all 0 but the prediction of confidence is right. I test the python and c++ way under cuda, the problem is the same.  I want the problem can be solve as soon as possible
![微信图片_20230818103722](https://github.com/opencv/opencv/assets/142577766/51be9710-53a4-4d76-87a4-53ba06cc7a8a)


### Steps to reproduce

        original_image = batch_img[i]    #original_image is a element which is load from cv2.imread
        [height, width, _] = original_image.shape
        length = max((height, width))
        image = np.zeros((length, length, 3), np.uint8)
        image[0:height, 0:width] = original_image
        scale = length / 640
        
        blob = cv2.dnn.blobFromImage(image, scalefactor=1 / 255, size=(640, 640), swapRB=True)
        
        #cv2.cuda.setDevice(0)
        net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
        net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
        
        net.setInput(blob)
        outputs = net.forward()

### 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
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: storybook
Issue: [Bug]: vue3 with jsx is not parsed by vue-docgen-api
Labels: bug,needs triage

### Describe the bug

Given a vue component written in jsx (in a jsx file), it is not getting properly documented. Any jsdoc describing the component or the properties is skipped. Most probably because the [`storybook:vue-docgen-plugin`](https://github.com/storybookjs/storybook/blob/3dfc4173f50fff57ab5de688884da0c409f72c88/code/frameworks/vue3-vite/src/plugins/vue-docgen.ts#L7) is not picking it up due to it's extention.

### To Reproduce

Just try to create the documentation on the following:

```
import { defineComponent, type PropType } from "vue";

/**
 * The only true foo
 */
export const Foo = defineComponent({
  props: {
    /**
     * The thing to write
     */
    foo: String as PropType<"foo" | "bar">,
  },
  setup(props) {
    return () => {
      return <div>Foo: {props.foo}</div>;
    };
  },
});

```

### System

```shell
Environment Info:

  System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12500
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.200)
  npmPackages:
    @storybook/addon-docs: ^7.3.0 => 7.3.0
    @storybook/addon-essentials: ^7.3.0 => 7.3.0
    @storybook/addon-interactions: ^7.3.0 => 7.3.0
    @storybook/addon-links: ^7.3.0 => 7.3.0
    @storybook/blocks: ^7.3.0 => 7.3.0
    @storybook/builder-vite: ^7.3.0 => 7.3.0
    @storybook/vue3: ^7.3.0 => 7.3.0
    @storybook/vue3-vite: ^7.3.0 => 7.3.0
```


### Additional context

`vue-docgent-api` seems to be able to parse the jsx file successfully:

```
{
  description: 'The only true foo',
  tags: {},
  exportName: 'Foo',
  displayName: 'Foo',
  expose: undefined,
  props: [
    {
      name: 'foo',
      description: 'The thing to write',
      values: [ 'foo', 'bar'],
      type: { name: 'string' }
    }
  ],
  events: undefined,
  methods: undefined,
  slots: undefined,
  sourceFiles: [ 'C:\\Users\\______\\the-project\\src\\components\\Foo.tsx' ]
}
```
Repository: angular
Issue: Add the ability to set projectableNodes after createComponent
Labels: area: core,core: content projection,core: dynamic view creation

### Which @angular/* package(s) are relevant/related to the feature request?

@angular/core

### Description

Currently the only way to add projectable nodes is to set them in one of the createComponent variants (ViewContainerRef.createComponent, createComponent ... ).

The Problem with this approach is that it is not possible to get the injection hierarchy right when multiple nested components are created dynamically ( Example:  https://stackblitz.com/edit/angular-xh1j19?file=src%2Fmain.ts) 

So reproducing the following scenario dynamically is not possible
```
<cmp1>
  <cmp2/>
</cmp1>
```
the best we can do is 
```
const cmp2 = viewContainerRef.createComponent(Cmp2, /* { injector: NEED_INJECTOR_OF_CMP1_HERE } */ );
const cmp1 = viewContainerRef.createComponent(Cmp1, { projectableNodes: [[cmp2.location.nativeElement]]});
```
but this is a problem if CMP1 has component providers!

To get the same injection hierarchy as with the declarative approach we would need something like
```
const cmp1 = viewContainerRef.createComponent(Cmp1);
const cmp2 = viewContainerRef.createComponent(Cmp2, { injector: cmp1.injector } );
cmp1.setProjectableNodes([[cmp2.location.nativeElement]]);
```
so something like **ComponentRef.setProjectableNodes** is missing

### Proposed solution

add a method `setProjectableNodes` to `ComponentRef`;

This allows to create the components in the same order as it would be done in template, and therefore it would be possible to get the injection hierarchy right


### Alternatives considered

---
Repository: vscode
Issue: Diff Editor Alignment Issue
Labels: bug,diff-editor

![image](https://github.com/microsoft/vscode/assets/37093292/eb3be412-3385-40ce-8d9a-d0a19aea73dd)
I think there is still some problem. Sometimes the code are not aligned, when I restart VSCode, it is solved, but after comparing two 2000-line files, it broke again.

_Originally posted by @zsfab in https://github.com/microsoft/vscode/issues/186337#issuecomment-1683563312_
Repository: PowerToys
Issue: Keyboard Manager Issue
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.72.0

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

So i have  a problem with the "End" Keyboard in Numpad, it always spamming "end", so i disabled it from Powertoys and it works fine, until i tried to click "1" in the numpad that has same functions like the "end" numpad because it says "end" in the below "1", and it didn't work. so i tried to remove this, and the "1" key works. I had no disabled "1" key on the numpad before
![image](https://github.com/microsoft/PowerToys/assets/142589261/d6ed239c-7b4e-47df-893b-be94c1286314) *


### ✔️ Expected Behavior

I just want to the "End" Key still disabled but not the "1" Key too *

### ❌ Actual Behavior

but the "1" Key maybe follow the re-map keys *

### Other Software

No *
Repository: pytorch
Issue: Conversion from COO with two sparse dimensions to CSR with dense_dim specified fails
Labels: module: sparse,feature,triaged,bug

## Issue description

As in the title. Not specifying `dense_dim` in the conversion leads to an expected result.

## Code example

```python
>>> torch.ones(2, 2, 2).to_sparse(2).to_sparse(layout=torch.sparse_csr, dense_dim=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: sparse_coo_to_sparse: conversion from Sparse to SparseCsr with dense_dim argument given is not supported
```

The expected behavior is no exception and with the following result:
```python
>>> torch.ones(2, 2, 2).to_sparse(2).to_sparse(layout=torch.sparse_csr)
tensor(crow_indices=tensor([0, 2, 4]),
       col_indices=tensor([0, 1, 0, 1]),
       values=tensor([[1., 1.],
                      [1., 1.],
                      [1., 1.],
                      [1., 1.]]), size=(2, 2, 2), nnz=4,
       layout=torch.sparse_csr)
```

## System Info

- PyTorch version: main

cc @alexsamardzic @nikitaved @cpuhrsch @amjames @bhosmer
Repository: next.js
Issue: TypeError: Cannot read properties of undefined (reading 'lastIndexOf') while using <Script /> in App dir
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: x64
8796.121.3~7/RELEASE_X86_64
    Binaries:
      Node: 18.16.0
      npm: 9.8.1
      Yarn: 1.22.10
      pnpm: N/A
    Relevant Packages:
      next: 13.4.16
      eslint-config-next: 13.3.0
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

I don't have

### To Reproduce

Just trying to use <Script /> tag to add gpt.js for Google but I get errors and add `"type": "module"` to package.json.

```js

import Script from 'next/script';

import { Inter } from 'next/font/google';

const inter = Inter({ subsets: ['latin'] });

export const runtime = 'edge';

export const metadata = {
  title: 'Create Next App',
  description: 'Generated by create next app'
};

export default async function RootLayout({ children }) {
  return (
    <html lang="en">
      <body className={inter.className}>{children}</body>

      <Script
        strategy="afterInteractive"
        src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
      />
    </html>
  );
}


```
### Describe the Bug

```shell
Unhandled Runtime Error
Error: Cannot read properties of undefined (reading 'lastIndexOf')

Call Stack
lastIndexOf
../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js (381:25)
resolveClientReferenceMetadata
../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js (1790:34)
serializeClientReference
../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js (1989:13)
resolveModelToJSON
../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js (1399:13)

```

and sometimes

[Error: Invariant: missing bootstrap script. This is a bug in Next.js]

### Expected Behavior

well, you know what to expect.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: RX 5000 series GPUs must be using at max python 3.10, aborting...
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

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

### What happened?

I am using debian 12.  My GPU RX5500xt
python 3.10.8 and 3.11.2 are installed on my system but it still gives the same error 
I type the following command and it gives this error
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)

Error
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on mustafa user
################################################################
ERROR: RX 5000 series GPUs must be using at max python 3.10, aborting...




### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ....


### What should have happened?

normal installation of stable diffision

### Version or Commit where the problem happens

1.51

### What Python version are you running on ?

Python 3.10.x

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

Linux

### What device are you running WebUI on?

AMD GPUs (RX 5000 below)

### Cross attention optimization

Automatic

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

Mozilla Firefox

### Command Line Arguments

```Shell
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
```


### List of extensions

no

### Console logs

```Shell
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on mustafa user
################################################################
ERROR: RX 5000 series GPUs must be using at max python 3.10, aborting...
```


### Additional information

_No response_
Repository: storybook
Issue: [Bug]: Stories that import RouterTestingModule throws `beforeEach not defined` error
Labels: bug,needs triage

### Describe the bug

If you run Storybook with Angular, and have a story that imports `RouterTestingModule` the story will throw the following js error:

```
beforeEach is not defined
ReferenceError: beforeEach is not defined
    at ./node_modules/@angular/core/fesm2022/testing.mjs (http://localhost:4401/vendors-node_modules_angular_router_fesm2022_testing_mjs-node_modules_storybook_angular_dist_-03a309.iframe.bundle.js:27083:1)
    at __webpack_require__ (http://localhost:4401/runtime~main.iframe.bundle.js:28:33)
    at fn (http://localhost:4401/runtime~main.iframe.bundle.js:338:21)
    at ./node_modules/@angular/router/fesm2022/testing.mjs (http://localhost:4401/vendors-node_modules_angular_router_fesm2022_testing_mjs-node_modules_storybook_angular_dist_-03a309.iframe.bundle.js:34514:79)
    at __webpack_require__ (http://localhost:4401/runtime~main.iframe.bundle.js:28:33)
    at fn (http://localhost:4401/runtime~main.iframe.bundle.js:338:21)
    at ./libs/abetest/src/lib/use-router/use-router.component.stories.ts (http://localhost:4401/src-lib-use-router-use-router-component-stories.iframe.bundle.js:46:81)
    at __webpack_require__ (http://localhost:4401/runtime~main.iframe.bundle.js:28:33)
    at fn (http://localhost:4401/runtime~main.iframe.bundle.js:338:21)
    at http://localhost:4401/main.iframe.bundle.js:32:10
```

### To Reproduce

I have uploaded a small project with a single story that showcase the issue 

https://github.com/SuneRadich/beforeEachError

### System

```shell
Environment Info:

  System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1 Pro
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Browsers:
    Chrome: 116.0.5845.96
    Safari: 16.5.1
  npmPackages:
    @storybook/addon-essentials: 7.3.1 => 7.3.1 
    @storybook/addon-interactions: ^7.2.1 => 7.3.1 
    @storybook/angular: 7.3.1 => 7.3.1 
    @storybook/core-server: 7.3.1 => 7.3.1 
    @storybook/jest: ~0.1.0 => 0.1.0 
    @storybook/test-runner: ^0.13.0 => 0.13.0 
    @storybook/testing-library: ~0.2.0 => 0.2.0
```


### Additional context

I use Storybook and Angular in a nx ([nx.dev](http://nx.dev)) mono-repo, so it might be related to something there. But it seems to be related to some changes in Angular and Storybook.
Repository: godot
Issue: Invalid Object id, can't call method - when loading a 4.2.dev3 compatibility project.
Labels: bug,topic:core,confirmed

### Godot version

v4.2.dev3.official.013e8e3af

### System information

Godot v4.2.dev3 - Windows 10.0.19045 - GLES3 (Compatibility)

### Issue description

When opening a previously created, empty 4.2.dev3 compatibility project (because of my hardware I did not test other renderers), the following error is printed on the external Godot console:
```PHP
ERROR: Invalid Object id '22498246924', can't call method.
	at: (./core/object/callable_method_pointer.h:102)
```
This does not happen when the project is opened for the first time - immediately after creation.

### Steps to reproduce

1. Create a new 4.2.dev3 compatibility project.
2. Close the editor.
3. Open the project again with Godot editor and console.
4. Read the error from the console.

### Minimal reproduction project

N/A
Repository: Python
Issue: What to do about project euler solution pull requests
Labels: awaiting triage

### What would you like to share?

The following prs implement solutions to project euler problems:
- #8678
- #8662
- #8010
- #8009
- #5255 

These prs either haven't been reviewed or haven't been merged. What should be done about these prs?

### Additional information

_No response_