sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Feature Request: Implement `torch.sparse.spdiags` and `torch.sparse.diags`
Labels: module: sparse,feature,triaged

### 🚀 The feature, motivation and pitch

## Feature

* [ ] Add `torch.sparse.spdiags` function which returns a sparse matrix from the given diagonals arrays (stored row wise) and offsets. This is similar to SciPy's [`scipy.sparse.spdiags`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.spdiags.html#scipy-sparse-spdiags).
* [ ] Add `torch.sparse.diags` function which constructs a sparse matrix from the given diagonals array (corresponding to offsets), and offsets. This is similar to SciPy's [`scipy.sparse.diags`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.diags.html#scipy.sparse.diags).

## Motivation and Context

Please see issue: https://github.com/pytorch/pytorch/issues/47640 for motivation, and more context. The ideal plan is to start with implementing `torch.sparse.spdiags` first, since it seems to be the more popular variant (since also implemented in Julia) out of the two.

[This comment](https://github.com/pytorch/pytorch/issues/47640#issuecomment-1006541377) by @IvanYashchuk is a starting point of how the signature might look like for `torch.sparse.spdiags`:

```python
torch.sparse.spdiags(Tensor diagonals, IntTensor offsets, int[] shape, Layout? layout=None) -> SparseTensor
```

Note: The support should be for both Sparse COO and Sparse CSR layouts in PyTorch.

cc: @IvanYashchuk @pearu @mruberry  @nikitaved @cpuhrsch

cc @nikitaved @pearu @cpuhrsch
Repository: neovim
Issue: wrong 'shellcmdflag' in bash or zsh on Windows
Labels: bug,platform:windows

### Neovim version (nvim -v)

0.6.1

### Vim (not Nvim) behaves the same?

no, vim 8.2.2824

### Operating system/version

Windows 11

### Terminal name/version

Windows Terminal 1.11.3471.0

### $TERM environment variable

xterm-256color

### Installation

scoop

### How to reproduce the issue

Run nvim in MSYS2

### Expected behavior

In vim
```vim
echo &shell
" D:/msys64/usr/bin/zsh

echo &shellcmdflag
" -c
```

### Actual behavior

In nvim
```vim
echo &shell
" D:/msys64/usr/bin/zsh

echo &shellcmdflag
" /s /c
```
Repository: yt-dlp
Issue: Game Show Network stream request
Labels: site-request,account-needed,can-share-account

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2021.12.27**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs [violate any copyrights](https://github.com/ytdl-org/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [x] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

USA

### Example URLs

https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play


### Description

Game Show Network (GSN) just recently made available an online stream of their channel. It is obviously MSO locked.

### Verbose log

```shell
yt-dlp https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play --verbose
[debug] Command-line config: ['https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2021.12.27 [6223f67] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-81707-g11777eb (needs_adtstoasc), ffprobe N-81707-g11777eb, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play
[generic] play: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] play: Downloading webpage
[generic] play: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1353, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1423, in __extract_info
  File "yt_dlp\extractor\common.py", line 599, in extract
  File "yt_dlp\extractor\generic.py", line 3829, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://watch.gameshownetwork.com/channels/c6f0faf0-6555-11ea-b686-2f0e735e3aab/play
```
Repository: rust
Issue: Provide a better error when code is put outside of a function
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Examples in the documentation often provide excerpts instead of full programs. A beginner might try compiling that code directly, and be confused that it doesn't work. Currently, the error messages for that case don't provide any hints as to what might be wrong:

```
error: expected item, found keyword `let`
 --> src/lib.rs:1:1
  |
1 | let data = [4, 8, 15, 16, 23, 42];
  | ^^^ expected item
```

```
error: expected one of `!` or `::`, found `(`
 --> src/lib.rs:2:10
  |
2 | fs::write("foo.txt", "Hello!").unwrap();
  |          ^ expected one of `!` or `::`
```

```
error: macro expansion ignores token `{` and any following
   |
  ::: src/lib.rs:1:1
   |
1  |   println!("Hello, world!");
   |   ------------------------- caused by the macro expansion here
   |
   = note: the usage of `println!` is likely invalid in item context
```

Ideally the output should look like:

```
error: `let` is invalid outside of a function
 --> src/lib.rs:1:1
  |
1 | let data = [4, 8, 15, 16, 23, 42];
  | ^^^ not valid outside of a function
help: put your code in a `main` function:
  | fn main() {
  |     let data = [4, 8, 15, 16, 23, 42];
  |     for n in data {
  |         dbg!(n);
  |     }
  | }
```

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: PowerToys
Issue: Default File Association Advanced Editor
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

So Microsoft has kinda kicked the whole action section of file associations to the curb and has placed emphasis on default application associations on just opening documents. Most of the 3rd party apps that used to take on the task of handling the old XP feature have been left to age and quite frankly I don't know why Microsoft didn't implement the gui in newer versions of window because it's always been a good fallback to modifying faulty documents that may be hanging when simply attempting to open them by default first. Think we can add and advanced file association editor to the PowerToys list of awesome tools? I really would love to be able to set my default editor to apps using a simple gui again. 

### Scenario when this would be used?

Very useful for web document types, in particular html. I would like the editor to be different from the default application to open this file type since editing would just be a text editor or a more advanced interactive html editor that would be more aware of lines of code that would be a problem than simply attempting to launch the document first. Broken links or calls etc. 

Also, while Microsoft's photo app has seen great improvements in viewing and touching up my photo library, it doesn't hold a candle to Adobe suite for editing and It would be nice not to have to be forced to choose between the two for opening my images with just a couple of clicks. Right now I gotta keep on selecting the whole 'open with' option AND Windows 11 is making this problem worse with their minimalistic context menu options now. 

### Supporting information

_No response_
Repository: vscode
Issue: Dispatch a chord keybinding again if it is not followed by a second part
Labels: keybindings,under-discussion

<!-- ⚠️⚠️ 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.63.2
- OS Version: MacOS Big Sur 11.6

Steps to Reproduce:

1. Type the default Cmd+K shortcut to clear the terminal => VS Code successfully catches the key down event but says Cmd+K is not a shortcut
2. In the keyboard shortcut settings, change the "Source" to "User" by changing the when condition to the same value than it already was set to.
3. Type Cmd+K => terminal successfully cleared
4. Click on "Reset key binding" => Doesn't change anything except the "Source" column (because the when condition never changed), but it breaks the keyboard binding.

Demo: https://youtu.be/u6WXsDoErmw
Repository: storybook
Issue: Web Components: methods not displayed
Labels: bug,web-components,argtypes

**Describe the bug**
I updated my `custom-elements.json` to follow the new format introduced in Storybook 6.4,
everything is displayed properly except methods who doesn't seems to be extracted from the file.
exemple of a method in the [custom-elements.json](https://gitlab.com/mobivia-design/roadtrip/components/-/blob/develop/custom-elements.json#L3306).

**To Reproduce**
```
git clone https://gitlab.com/mobivia-design/roadtrip/components.git
git checkout develop
npm install
npm run build
npm run storybook
```

**System**
```
System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 16.13.1 - /usr/local/bin/node
    npm: 8.1.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 96.0.4664.110
    Edge: 96.0.1054.62
    Firefox: 94.0.2
    Safari: 15.0
  npmPackages:
    @storybook/addon-a11y: ^6.4.1 => 6.4.9 
    @storybook/addon-docs: ^6.4.1 => 6.4.9 
    @storybook/addon-essentials: ^6.4.1 => 6.4.9 
    @storybook/web-components: ^6.4.1 => 6.4.9 
```

**Additional context**
I don't know if its related but methods doesn't seems to be exported here.
https://github.com/storybookjs/storybook/blob/next/addons/docs/src/frameworks/web-components/custom-elements.ts#L137
Repository: neovim
Issue: Command :term cargo doc --open doesn't start up a browser
Labels: bug,job-control,platform:linux,has:workaround,has:repro

### Neovim version (nvim -v)

NVIM v0.6.1

### Vim (not Nvim) behaves the same?

Yes

### Operating system/version

Debian GNU/Linux 11 (bullseye)

### Terminal name/version

xfce4-terminal 0.8.10 (Xfce 4.16)

### $TERM environment variable

xterm-256color

### Installation

build from repo

### How to reproduce the issue

```
cargo new simple_project
cd simple project
nvim --clean
:term cargo doc --open
```

### Expected behavior

Browser should open up. But it doesn't.

### Actual behavior

It returns 0 code result. No errors.
Repository: go
Issue: time: TestTimerModifiedEarlier failures with "timer took too long" on plan9-arm
Labels: OS-Plan9,NeedsInvestigation,arch-arm

```
#!watchflakes
post <- builder ~ `^plan9` && pkg == "time" && test == "TestTimerModifiedEarlier" && `timer took too long`
```

```
--- FAIL: TestTimerModifiedEarlier (10.08s)
    sleep_test.go:552: timer took too long (10.006295837s)
    sleep_test.go:561: 1 failures
FAIL
FAIL	time	13.241s
```

`greplogs --dashboard -md -l -e 'FAIL: TestTimerModifiedEarlier'`

[2022-01-04T21:10:15-1c8f9d2/plan9-arm](https://build.golang.org/log/6cd6bd602ad4fa7ec56326d08f94459c0d414736)
[2021-12-02T23:02:33-8835343/plan9-arm](https://build.golang.org/log/54bf5cfe070ea3deda82067958e775426d54e76a)
[2021-11-05T21:34:10-bb53fd7/plan9-arm](https://build.golang.org/log/a4501ae1bfca9343e603da9fdf889db7fdf30759)

The failing test is the regression test for #47329.

CC @millerresearch @ianlancetaylor
Repository: rust
Issue: remove synthetic closure substs
Labels: C-cleanup,A-closures

right now, we add synthetic generic parameters to closures to represent a bunch of additional information about the closure, see
https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/sty/struct.ClosureSubsts.html

These substs don't behave like ordinary generic parameters, negatively impact perf and are difficult to understand or deal with in some cases.

We should try to remove these synthetic parameters, for example by moving them into `TypeckResults` and treating closures a lot more similar to ordinary adts. The same approach should also be used for generators and inline consts.

Going to look into this myself for now

cc @nikomatsakis
Repository: terminal
Issue: Add `bellSound` to the Settings UI
Labels: Help Wanted,Product-Terminal,Issue-Task,Priority-3,Area-SettingsUI

It's a little tricky since it can accept a single path or an array of paths. I suppose the crawl/walk/run is:
* **crawl**: add a single path selector for bellSound
* **walk**: Enable adding multiple paths for bellSound
* **run**: add a little button next to the file picker to play a preview of that sound

as added in #11511
Repository: pytorch
Issue: ThreadLocalState::setThreadLocalState is not setting the "enabled" flag of SavedTensorDefaultHooks
Labels: triaged,module: multithreading

### 🐛 Describe the bug

When exiting the TLSGuard, the TLS is restored for SavedTensorDefaultHooks at https://github.com/pytorch/pytorch/blob/698c35e74364d387fc0f8b1f915d0d7bc8dfad63/aten/src/ATen/ThreadLocalState.cpp#L39-L41

However, the `SavedTensorDefaultHooks::enabled` flag is not set. Is this going to be a problem?

### Versions

master
Repository: PowerToys
Issue: Window doesn't remember last location when toggling desktops if the windows was moved from a FancyZone on one monitor to a non-FancyZone window on a second monitor
Labels: Issue-Bug,FancyZones-Dragging&UI,Product-FancyZones,Priority-1,FancyZones-VirtualDesktop

### Microsoft PowerToys version

0.51.1

### Running as admin

- [ ] Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

1. Win + Tab
2. Add new desktop
3. Open a window and snap the window into a FancyZone (shift + drag window)
4. Drag that window from it's FancyZone into any location on your second monitor (not a FancyZone)
5. Win + Tab
6. Switch to your other desktop
7. Win + Tab
8. Switch back to the desktop with the window you moved
9. Notice that the window gets automatically moved back into the original FancyZone it was put in

### ✔️ Expected Behavior

The window should stay in its latest position and not snap back into its last FancyZone

### ❌ Actual Behavior

The window moves from one monitor to the other, snapping it back into its last known FancyZone

### Other Software

_No response


*Added bug report
[PowerToysReport_2022-01-06-13-52-26.zip](https://github.com/microsoft/PowerToys/files/7824985/PowerToysReport_2022-01-06-13-52-26.zip)
_


crutkas: steps that made me able to repro

1. be sure you have 2 virtual desktops
2. Snap window to a FZ
3. Move window to other screen
4. Switch to desktop 2
5. Switch to desktop 1

I can repro this via keys and taskview hover on 22533
Repository: TypeScript
Issue: Incorrect Polish translation for message 2591
Labels: i18n

# Bug Report

There's an inccorrect translation in https://github.com/microsoft/TypeScript/blob/main/lib/pl/diagnosticMessages.generated.json
The term "node" has been translated into Polish "węzeł", while this is the environment name and shouldn't be translated.
The current translation says:
`"Czy chcesz zainstalować definicje typów dla węzła?"`
My suggestion is to change it to:
`"Czy chcesz zainstalować definicje typów dla środowiska Node?"`
It would be matching with the message no. 2580.

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
2591, węzła
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information
Wersja: 1.63.2 (user setup)
Zatwierdzenie: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Data: 2021-12-15T09:40:02.816Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 6.3.9600

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->


### 🙁 Actual behavior
```json
"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Nie można odnaleźć nazwy \"{0}\". Czy chcesz zainstalować definicje typów dla węzła? Spróbuj użyć polecenia \"npm i --save-dev @types/node\", a następnie dodaj element \"node\" do pola types w pliku tsconfig.",
```
<!-- What happened, and why it was wrong -->

### 🙂 Expected behavior
```json
"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Nie można odnaleźć nazwy \"{0}\". Czy chcesz zainstalować definicje typów dla środowiska Node? Spróbuj użyć polecenia \"npm i --save-dev @types/node\", a następnie dodaj element \"node\" do pola types w pliku tsconfig.",
```
<!-- What you expected to happen instead, and why -->
Repository: angular
Issue: Link error messages to current version of Angular docs
Labels: area: core,area: compiler,P3

### Which @angular/* package(s) are relevant/releated to the feature request?

compiler-cli

### Description

Error messages frequently link to angular.io for additional context. This is great for users, however the content on these pages change over time, so error message links could easily fall out of date and stop working (or continue to work but no longer give the context needed by the error).

I'm marking this as a compiler issue, though the same issue applies to the runtime and we should do the same there.

/cc @JoostK

### Proposed solution

We already have archived versions of docs at v*.angular.io, we should link to those versions where appropriate. Ideally, an error message should always link to the same version of Angular they are currently using. So even a user on an LTS (or older) version will link to the correct version of the doc intended by the error message.

This does mean that users might not get the most up to date information, but archived docs already include a banner and link to the latest version, so I think historical accuracy is more important and maintainable than recency of information.

### Alternatives considered

The current solution is to always link to the latest version of the docs (see https://github.com/angular/angular/pull/44649#pullrequestreview-845998595). If docs change, we just update the error message to match (or vice versa). This technically means that we shouldn't remove docs content from the latest AIO version until the Angular versions it's relevant to fall out of LTS (which is a two-year gap I think). It's also easy to forget that an old version linked to particular doc and hard to audit / verify. We also can't change older versions of Angular after their published, so our only remediation mechanism is to update AIO directly.
Repository: godot
Issue: Vulkan: Standard/ORM Material Triplanar breaks with animation
Labels: bug,topic:rendering,confirmed,topic:3d

### Godot version

v4.0.dev.20220105.official [8f6cba3a4]

### System information

Windows 11, Vulkan, Nvidia Quadro K2000 472.84

### Issue description

Triplanar materials change as an animated mesh changes due to bone changes such as rotation, scale and transform.
This doesn't happen in 3.x

### Steps to reproduce

Add a Triplanar Material to an animated mesh
Change bone position/rotation/scale -> Material Changes
Do the same in 3.x -> Material Sticks in it's relative Place, as expected.

### Minimal reproduction project
[Bug.zip](https://github.com/godotengine/godot/files/7828345/Bug.zip)
Repository: PowerToys
Issue: Firefox open a new tab instead of a new window when using powertoys run web search plugin
Labels: Product-PowerToys Run,External Dependency,Run-Plugin

### Description of the new feature / enhancement

currently the new powertoys run plugin opens a new window when using the web search plugin. it would be nice if it opened a new tab instead. perhaps a toggle option would be nice.

### Scenario when this would be used?

for me it makes sense using the currently open web browser to open a new tab instead of opening another window to manage.
Repository: PowerToys
Issue: Adding an option to quick preview .ipynb (jupyter) files in side pane in file explorer add on.
Labels: Idea-Enhancement,Idea-New PowerToy,Product-File Explorer

### Description of the new feature / enhancement

Just like the markdown and pdf preview currently provided in the powertoys file explorer add on, another add on to quickly preview a jupyter or ipynb file can be added.

### Scenario when this would be used?

Seeing a jupyter notebook directly is very useful to see if that's the file, i want to open or just quickly see it's contents. In a mac, we can just hit the space to quick look the file but on windows, there isn't some alternative for the same.
Repository: PowerToys
Issue: Add PowerToys:Run to AlwaysOnTop excluded app by default
Labels: Idea-Enhancement,Product-Always On Top,Priority-3

### Description of the new feature / enhancement

Add `PowerToys: Run` to AlwaysOnTop excluded app by default:

![image](https://user-images.githubusercontent.com/23485114/148459403-f63ef600-2aea-4f39-8fcf-62fe9cfb77f8.png)

### Scenario when this would be used?

The status of the `PowerToys: Run` window should not be changed:

![image](https://user-images.githubusercontent.com/23485114/148458884-09dabb10-67ca-419f-93b9-4fdb1a552fbe.png)

### Supporting information

_No response_