sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Implementation of torch.sparse.sampled_baddmm
Labels: module: sparse,triaged,topic: new features

### 🚀 The feature, motivation and pitch

Hi,
I would like to perform a batch matrix-matrix product with a per-sample mask.
It's similar to [torch.sparse.sampled_addmm](https://pytorch.org/docs/stable/generated/torch.sparse.sampled_addmm.html), the only difference is that `input` would be a (b, m, n) sparse tensor in the CSR format, unless we could provide masks as a list consisting of b (m, n) tensors.
It might be blocked by https://github.com/pytorch/pytorch/issues/104193 though.

### Alternatives

_No response_

### Additional context

_No response_

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer
Repository: godot
Issue: Project windows jump up after they appear on screen
Labels: bug,topic:porting,regression

### Godot version

v4.1.stable.official [970459615]

### System information

Godot v4.1.stable - Fedora Linux 38 (Cinnamon) - Vulkan (Compatibility) - Mesa Intel(R) UHD Graphics 630 (CML GT2) () - Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz (12 Threads)

### Issue description

Project's main window and all windows created and shown from code jump up after they appear on screen. There is no such issue in 4.0.3.

May be related to https://github.com/godotengine/godot/issues/79888

### Steps to reproduce

1. Create a new project
2. Create main scene with any node in it
3. Run the project

### Minimal reproduction project

[Bug.zip](https://github.com/godotengine/godot/files/12069068/Bug.zip)
Repository: pytorch
Issue: DeadKernel when training GNN for Cora on MPS
Labels: needs reproduction,triaged,module: mps

              > With torch ver: 2.0.1 MPS is faster, using the original toy example.
> CPU: 16.08941249999998
> MPS: 3.2959765830000833

Hey I'm also using PyTorch 2.0
My config: Apple M2 16gb ram
Im trying to train a simple GNN for the Cora dataset.(which is < 1 Mb) I use Jupyter notebook. When my device is CPU-  it runs quickly. When I use MPS, I get DeadKernel. Am I missing something while using MPS?

_Originally posted by @narenq7 in https://github.com/pytorch/pytorch/issues/77799#issuecomment-1635749861_
            

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen @razarmehr @abhudev
Repository: rust
Issue: Missed autovectorization for slice.iter.fold, works for slice.iter.copied.fold
Labels: I-slow,A-codegen,I-heavy,A-autovectorization

I was looking into optimizing a function that checks that all values in a slice are in range. It is not that surprising that the version with `all` does not get optimized because returning early (although in theory rust should be allowed to read more elements from the slice before breaking), but it is surprising that adding `copied` before folding makes a difference in autovectorization.

Sample code (https://rust.godbolt.org/z/5eznWbMcf):

```rust
pub fn check_range_all(keys: &[u32], max: u32) -> bool {
    keys.iter().all(|x| *x < max)
}

pub fn check_range_fold(keys: &[u32], max: u32) -> bool {
    keys.iter().fold(true, |a, x| a && *x < max)
}

pub fn check_range_copied_fold(keys: &[u32], max: u32) -> bool {
    keys.iter().copied().fold(true, |a, x| a && x < max)
}
```

- `check_range_all` compares one element per loop iteration, using `copied` does not change the assembly at all (both functions are merged)
- `check_range_fold` unrolls the check 8 times, each iteration it branchless, but does not use any vector instructions 
- `check_range_copied_fold` uses `avx` instructions and checks 32 elements per loop iteration
Repository: storybook
Issue: [Bug]: Cannot read properties of undefined (reading 'ASharedModule')
Labels: bug,needs triage

### Describe the bug

I have multiple projects in my Angular app. I have three different stories for three different projects. Two of them are working well. The last story uses a component inside the project. The component is defined in `AModule` which is importing 'ASharedModule'. When I try to create a new story for this component it returns an error:
`Cannot read properties of undefined (reading 'ASharedModule')`



### To Reproduce

_No response_

### System

```shell
Environment Info:

  System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1 Pro
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 114.0.5735.198
    Safari: 16.5.2
  npmPackages:
    @storybook/addon-essentials: ^7.0.27 => 7.0.27 
    @storybook/addon-interactions: ^7.0.27 => 7.0.27 
    @storybook/addon-links: ^7.0.27 => 7.0.27 
    @storybook/angular: ^7.0.27 => 7.0.27 
    @storybook/blocks: ^7.0.27 => 7.0.27 
    @storybook/jest: ^0.1.0 => 0.1.0 
    @storybook/testing-library: ^0.2.0 => 0.2.0
```


### Additional context

_No response_
Repository: material-ui
Issue: Components selector API with styled from @mui/material
Labels: package: system

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Hello ✨

I'm using the function `styled` from `@mui/material` in all my components and I would like to use components as selector as specified in this [documentation](https://mui.com/system/styled/#how-to-use-components-selector-api)

Thanks a lot for your work and have a good day 💪

### Examples 🌈

import styled from '@mui/material';

const Child = styled.div`
  color: red;
`;

const Parent = styled.div`
  ${Child} {
    color: green;
  }
`;

render(
  <div>
    <Parent>
      <Child>Green because I am inside a Parent</Child>
    </Parent>
    <Child>Red because I am not inside a Parent</Child>
  </div>,
);

### Motivation 🔦

_No response_
Repository: vscode
Issue: f is not iterable
Labels: bug,error-telemetry,editor-indent-guides

```javascript
TypeError: f is not iterable
at indent in src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts:133:24
at k.prepareRender in src/vs/editor/browser/view/viewOverlays.ts:133:19
at q.O in src/vs/editor/browser/view.ts:496:13
at <anonymous> in src/vs/editor/browser/view.ts:443:30
at func in src/vs/editor/browser/view.ts:657:10
at safeInvokeNoArg in src/vs/editor/browser/view.ts:443:3
at q.C in src/vs/editor/browser/view.ts:247:8
at q.render in src/vs/editor/browser/view.ts:563:9
at pn.render in src/vs/editor/browser/widget/codeEditorWidget.ts:1598:24
at pn.layout in src/vs/editor/browser/widget/codeEditorWidget.ts:1416:8
at e.$Ymb.U in src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.ts:528:10
at s.value in src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.ts:482:10
at d.w in src/vs/base/common/event.ts:1088:13
at d.fire in src/vs/base/common/event.ts:1119:9
at s.value in src/vs/editor/browser/widget/codeEditorWidget.ts:1657:35
at d.w in src/vs/base/common/event.ts:1088:13
at d.fire in src/vs/base/common/event.ts:1119:9
at L.n in src/vs/editor/common/viewModelEventDispatcher.ts:64:18
at L.endEmitViewEvents in src/vs/editor/common/viewModelEventDispatcher.ts:109:8
at m.O in src/vs/editor/common/viewModel/viewModelImpl.ts:1092:26
at m.N in src/vs/editor/common/viewModel/viewModelImpl.ts:1029:8
at m.executeEdits in src/vs/editor/common/viewModel/viewModelImpl.ts:1032:8
at pn.executeEdits in src/vs/editor/browser/widget/codeEditorWidget.ts:1231:29
at e.$v3.accept in src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.ts:299:11
at h.run in src/vs/editor/contrib/inlineCompletions/browser/commands.ts:157:28
at h.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:387:15
at <anonymous> in src/vs/editor/browser/editorExtensions.ts:320:109
at runner in src/vs/editor/browser/editorExtensions.ts:315:11
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at pn.invokeWithinContext in src/vs/editor/browser/widget/codeEditorWidget.ts:434:37
at r.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:308:17
at h.runCommand in src/vs/editor/browser/editorExtensions.ts:320:24
at handler in src/vs/editor/browser/editorExtensions.ts:154:38
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at e.$Zvb.k in src/vs/workbench/services/commands/common/commandService.ts:95:46
at e.$Zvb.executeCommand in src/vs/workbench/services/commands/common/commandService.ts:60:17
at Ys.I in src/vs/platform/keybinding/common/abstractKeybindingService.ts:366:28
at Ys.G in src/vs/platform/keybinding/common/abstractKeybindingService.ts:223:15
at <anonymous> in src/vs/workbench/services/keybinding/browser/keybindingService.ts:244:38
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=74f6148eb9ea00507ec113ec51c489d6ffb4b771&bH=5fbee7ad-1099-d357-d2c8-63cc85327104)
Repository: flutter
Issue: [google_maps_flutter] Android integration test crashing in CI: `glCreateShader failed`
Labels: a: tests,platform-android,p: maps,package,P2,c: flake,team-android,triaged-android

I'm seeing flaky failures with the maps integration tests recently; example runs:
- https://firebase.corp.google.com/project/flutter-cirrus/testlab/histories/bh.ccd6322d1559daa/matrices/7573375672107147278/executions/bs.4e441d9bcae26d4/issues
- https://firebase.corp.google.com/project/flutter-cirrus/testlab/histories/bh.ccd6322d1559daa/matrices/8994558717084734910/executions/bs.b5c61781c34f7b94

The report is:
```
Test run failed to complete. Instrumentation run failed due to Process crashed.
 Fatal exception
Fatal AndroidRuntime Exception detected.
     FATAL EXCEPTION: GL-Map
Process: io.flutter.plugins.googlemapsexample, PID: 23876
ers: glCreateShader failed with return value 0and GL error code 0
GL info log: 
<no info log>
Shader vert source: 
<unused source>
	at eor.b(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:3)
	at eor.a(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:1)
	at epn.<init>(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:2)
	at epo.<init>(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:1)
	at efd.e(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:17)
	at eom.run(:com.google.android.gms.policy_maps_core_dynamite@224312102@224312102065.485900589.485900589:35)
```

It's possible this is a regression on the maps side rather than a plugin issue? Filing for tracking and further investigation.
Repository: vscode
Issue: Cannot read properties of undefined (reading 'dispose')
Labels: error-telemetry

```javascript
TypeError: Cannot read properties of undefined (reading 'dispose')
at e.$GIb.rb in src/vs/workbench/browser/parts/views/viewPaneContainer.ts:811:15
at s.value in src/vs/workbench/browser/parts/views/viewPaneContainer.ts:533:92
at d.w in src/vs/base/common/event.ts:1088:13
at d.x in src/vs/base/common/event.ts:1099:9
at d.fire in src/vs/base/common/event.ts:1123:9
at e.$qxb.G in src/vs/workbench/services/views/common/viewContainerModel.ts:675:44
at e.$qxb.z in src/vs/workbench/services/views/common/viewContainerModel.ts:436:9
at s.value in src/vs/workbench/services/views/common/viewContainerModel.ts:370:81
at d.w in src/vs/base/common/event.ts:1088:13
at d.fire in src/vs/base/common/event.ts:1119:9
at m.p in src/vs/workbench/services/views/common/viewContainerModel.ts:180:34
at s.value in src/vs/workbench/services/views/common/viewContainerModel.ts:98:65
at f.w in src/vs/base/common/event.ts:1088:13
at f.x in src/vs/base/common/event.ts:1099:9
at f.fire in src/vs/base/common/event.ts:1123:9
at f.fire in src/vs/base/common/event.ts:1285:11
at C.n in src/vs/platform/storage/common/storage.ts:385:27
at s.value in src/vs/platform/storage/common/storageService.ts:70:82
at f.w in src/vs/base/common/event.ts:1088:13
at f.x in src/vs/base/common/event.ts:1099:9
at f.fire in src/vs/base/common/event.ts:1123:9
at f.resume in src/vs/base/common/event.ts:1274:12
at y.r in src/vs/base/parts/storage/common/storage.ts:156:29
at s.value in src/vs/base/parts/storage/common/storage.ts:141:67
at d.w in src/vs/base/common/event.ts:1088:13
at d.fire in src/vs/base/common/event.ts:1119:9
at I.h in src/vs/platform/storage/common/storageIpc.ts:102:35
at s.value in src/vs/platform/storage/common/storageIpc.ts:97:161
at d.w in src/vs/base/common/event.ts:1088:13
at d.fire in src/vs/base/common/event.ts:1119:9
at Y in src/vs/base/parts/ipc/common/ipc.ts:672:60
at T.t in out/vs/workbench/workbench.desktop.main.js:598:1499
at T.s in src/vs/base/parts/ipc/common/ipc.ts:729:17
at s.value in src/vs/base/parts/ipc/common/ipc.ts:549:63
at d.w in src/vs/base/common/event.ts:1088:13
at d.x in src/vs/base/common/event.ts:1099:9
at d.fire in src/vs/base/common/event.ts:1123:9
at Function.ce in src/vs/base/common/event.ts:528:41
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=74f6148eb9ea00507ec113ec51c489d6ffb4b771&bH=cf4eab7a-c4ea-d8da-a19b-6bb9cfb020eb)
Repository: godot
Issue: Running a project with a RTL language set to internationalization/locale/test does not flip GUI to RTL
Labels: discussion,topic:core,documentation

### Godot version

v4.1.stable.official [970459615]

### System information

Ubuntu 20.04 LTS

### Issue description

See title.
This is a regression since v4.0.1.stable.official [cacf49999]
Similar to https://github.com/godotengine/godot/issues/63961, though I don't think they're the same since it doesn't mention RTL.

### Steps to reproduce

1. Create a new GUI scene
2. Add a `Button`, it should be in the top left corner
3. Under Project -> Project Settings... -> Internationalization -> Locale, change `Test` to `ar`
4. Run project, notice the Button stayed in the top left corner.  It should've moved to the top right corner

### Minimal reproduction project

[godot4rtl.zip](https://github.com/godotengine/godot/files/12070047/godot4rtl.zip)
Repository: material-ui
Issue: [Tooltip] Not being placed correctly when used with `FormControlLabel` checkbox because of default `margin-left` style
Labels: bug 🐛,component: tooltip,package: material-ui,component: FormControl

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example: https://stackblitz.com/edit/react-qqwxar-c3zrv8?file=demo.tsx

Steps:

1. Pass `bottom-end` to placement in tooltip
2. Pass `bottom-start` to placement in tooltip
3. compare both


### Current behavior 😯

After passing position parameters in the tooltip both position start and position end is working same.
![image](https://github.com/mui/material-ui/assets/71120474/5618b13a-672f-49bd-a91c-f11fdb70fbc8)


### Expected behavior 🤔

position start and position end should not be same.

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: Godot 3.5: AnimationPlayer Animation window: deleting last track causes spurious error "Index track = N is out of bounds (animation->get_track_count() = N)"
Labels: bug,topic:editor,topic:animation

### Godot version

v3.5.2.stable.official [170ba337a]

### System information

Linux Ubuntu 22.04 with Unity desktop

### Issue description

Note: I did not test this with Godot 4, but I don't remember having it on Godot 4 either

When I delete the last track of some animation on my Animation Player in the Animation window, I get the following error:
> editor/animation_track_editor.cpp:1850 - Index track = N is out of bounds (animation->get_track_count() = N).

where N is the index of the removed track.

It's as if the index was checked *after* removing the track instead of *before*.


### Steps to reproduce

1. Create an AnimationPlayer + some Animation with some tracks
2. Delete the last track

### Minimal reproduction project

N/A
Repository: vscode
Issue: XHR failed: Provide more context in error
Labels: error-telemetry

```javascript
Error: XHR failed
at y.onerror (https:/<REDACTED: user-file-path>:74:790)
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=660393deaaa6d1996740ff4880f1bad43768c814&bH=f193eff1-7672-09fc-d7b6-a4f95660f8bf)
Repository: go
Issue: go/doc,x/pkgsite: struct fields inconsistently linked in doc comments
Labels: NeedsFix,Tools,pkgsite,FixPending

https://go.dev/doc/comment#doclinks currently says:
> Doc links are links of the form “[Name1]” or “[Name1.Name2]” to refer to exported identifiers in the current package

but it is somewhat ambiguous about whether the `[Name1.Name2]` form can refer to struct fields or only methods.

----
 
In practice, people do seem to intuitively expect references to struct fields to work; for example, this [comment](https://cs.opensource.google/go/go/+/master:src/go/types/package.go;l=44;drc=b490bdc27d5576e5ccdac33755c0156d609e1bb9) on [`types.Package.GoVersion`](https://pkg.go.dev/go/types@go1.21rc3#Package.GoVersion) (written by @rsc) refers to the [`go/ast.File.GoVersion`](https://pkg.go.dev/go/ast@go1.21rc3#File) struct field, and `pkg.go.dev` appears to render that reference correctly:
![image](https://github.com/golang/go/assets/5200974/ae92a4f6-4af3-45b5-a25c-9a90920b8d08)

----

However, similar references within the _same_ package are *not* rendered as links. For example, the reference to `[CheckedFiles.SizeError]` from [`zip.CheckedFiles.Err`](https://pkg.go.dev/golang.org/x/mod@v0.12.0/zip#CheckedFiles.Err) is currently rendered as plain text:
![image](https://github.com/golang/go/assets/5200974/f6a1067f-1728-43be-ba9d-95aed9281040)

[`go/doc.Parser`](https://pkg.go.dev/go/doc/comment@go1.21rc3#Parser) uses different functions to resolve intra- vs. inter-package references: it appears that the `LookupPackage` hook being used by `pkgsite` does resolve struct fields, whereas the `LookupSym` hook does not.
Repository: pytorch
Issue: Padded tensor subclass
Labels: feature,triaged,module: nestedtensor,tensor subclass

### 🐛 Describe the bug

Suppose you have a network which operates on dynamically sized inputs / has data dependent dynamism internally. Our default policy is to represent such a tensor as compactly as possible (e.g., with no padding) to minimize storage and FLOPs needed to operate on it.

However, in some situations, it could be profitable / cost free to pad out the tensor:

* If you are CUDA graphing with dynamic shapes and you know your maximum size, padding in the outermost (e.g., batch) dimension is effectively free, because the CUDA graph will require you to maintain memory equivalent to the maximum memory usage for your dynamic shapes. In fact, it is better than free, because ensuring you always allocate the same amount of memory every iteration ensures that you will use the same allocations; the allocator otherwise can make bad decisions in the name of "saving" memory (e.g., if you previously allocated a tensor out of a 10MB block, but this time you only need 5MB because you halved your sequence length, instead of serving the allocation out of the 10MB, it might allocate an *extra* 5MB to "save" the 10MB for later (even though it will never be used!)
* Increasing the size of tensors can improve the performance on kernels. @Chillee has a good explainer about this phenomenon in matmuls at https://twitter.com/cHHillee/status/1630274804795445248 In fact, @msaroufim and @Chillee tried to add this optimization directly to PyTorch but the post facto layout change was a bit hard to implement. Doing the layout change "early" with a tensor subclass should be easier to implement (albeit less automatic.) These improvements generalize beyond matmuls, although mostly for making sure your sizes are divisible by something nice. Fully automatic size increases here are a little difficult to do, because you have to know that later you're going to do a matmul, and you also have to know that you aren't losing all your gains from non-contiguous kernels. However, if you have a net where one of the input dimensions is dynamic, you can choose to bucket to reduce the number of CUDA graphs you need. That being said, if the dynamic dimension is batch size (or even sequence length but you have embeddings on the inner dimensions so there's no padding problems), you aren't going to get kernel perf wins.

Padded batch tensor for dynamic batch size is probably the easiest to implement to start, because you can use symbolic shape propagation rules to propagate batch dim and ensure they're properly padded (I can't think of a good way to make vmap do this.) Annoyance is avoiding wasted FLOPs by "adjusting down" the logical size.

Related: https://github.com/pytorch/pytorch/issues/65156
Related: nested tensor

cc @cpuhrsch @jbschlosser @bhosmer @drisspg @msaroufim @albanD 

### Versions

main
Repository: pytorch
Issue: Can't vmap over torch.tensor constructor
Labels: triaged,module: functorch

### 🐛 Describe the bug

Initially reporeted by @mra-h over [here](https://github.com/pytorch/pytorch/issues/102109#issuecomment-1634596330)
```py
def skew_matrix(w):
   torch.tensor([[0.0, -w[2], w[1]],
                 [w[2], 0.0, -w[0]],
                 [-w[1], w[0], 0.0]])

points = torch.rand((1024, 3))
fn = torch.vmap(skew_matrix, in_dims=(0))
fn(points)
```


### Versions

main

cc @Chillee @samdow @kshitij12345 @janeyx99
Repository: angular
Issue: bug: bundled domino incorrectly returns undefined instead of null for querySelector
Labels: area: server,state: has PR

### Which @angular/* package(s) are the source of the bug?

platform-server

### Is this a regression?

No

### Description

The version of Domino bundled with Angular returns `undefined` instead of `null` for `querySelector`. 

This is causing deprecation warnings in Ionic to be incorrectly logged since we expect `querySelector` to return either the Element or `null` [as per the `Element.querySelector` spec](https://developer.mozilla.org/en-US/docs/Web/API/element/querySelector).

Ionic issue: https://github.com/ionic-team/ionic-framework/issues/27564
Relevant Ionic code: https://github.com/ionic-team/ionic-framework/blob/721fc6fd9a21c9c03bb21d290e9b1bbd703e43e3/core/src/components/item/item.tsx#L218

----

**Steps to reproduce**

1. Clone the attached repo.
2. Run `npm install`.
3. Run `npm run dev:ssr`.
4. Once the build process is done, access the app in your browser.
5. Observe that `undefined` is logged in the terminal window, but `null` is logged in the browser console.

**Expected Behavior**

I expect `null` to be logged in the terminal window.

**Actual Behavior**

`undefined` was logged in the terminal window.

### Please provide a link to a minimal reproduction of the bug

https://github.com/liamdebeasi/ng-ssr-test

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 16.0.6
Node: 18.12.1
Package Manager: npm 8.19.2
OS: darwin arm64

Angular: 16.1.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1601.4
@angular-devkit/build-angular   16.1.4
@angular-devkit/core            16.1.4
@angular-devkit/schematics      16.0.6
@angular/cli                    16.0.6
@nguniversal/builders           16.1.1
@nguniversal/express-engine     16.1.1
@schematics/angular             16.0.6
rxjs                            7.8.1
typescript                      5.0.4
```


### Anything else?

_No response_