sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: [html] validation error on JavaScript block comment with arrow in HTML script
Labels: bug,html

<!-- ⚠️⚠️ 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, all extensions have been disabled for the workspace

<!-- 🪓 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 / OS
- VS Code Version: 1.74.3
- OS Version: Windows 10 Pro, 64-Bit

### Steps to Reproduce

Create a HTML file with the following content:

```html
<script>
/* --> */
</script>
```



### 🙁 Actual behavior

Console shows 2 problems:

* Expression expected.
* Unterminated regular expression literal.

Full errors:

[{
	"resource": "test.html",
	"owner": "_generated_diagnostic_collection_name_#1",
	"severity": 8,
	"message": "Expression expected.",
	"source": "javascript",
	"startLineNumber": 2,
	"startColumn": 8,
	"endLineNumber": 2,
	"endColumn": 9
}]

[{
	"resource": "test.html",
	"owner": "_generated_diagnostic_collection_name_#1",
	"severity": 8,
	"message": "Unterminated regular expression literal.",
	"source": "javascript",
	"startLineNumber": 2,
	"startColumn": 10,
	"endLineNumber": 2,
	"endColumn": 10
}]

---

It even shows more errors for every pair of ``--`` within the comment block.

e.g.

```html
<script>
/* --> ----------------------------- */
</script>
```

Results in a total of 16 errors logged (15 x expression expected, 1 x Unterminated regular expression literal.)

### 🙂 Expected behavior

Ignore whatever is in comments.
Repository: PowerToys
Issue: Add a mouse button remapping utility
Labels: Needs-Triage

### Description of the new feature / enhancement

A mouse button remapping utility would be much useful. Nowadays many mouses have few extra buttons that sometimes are not settable if not by installing third party plugins. Microsoft Intellipoint software can be used with only some Microsoft mouse, while for other minor or no-brand mouses ofter the utility is not there at all..

Some mouses also sometimes have the mousewheel or central button clickable, and that is not customizable as well from windows settings.

### Scenario when this would be used?

Having a mouse with additional buttons, or even for remapping the wheel/central button click action.

### Supporting information

_No response_
Repository: excalidraw
Issue: reuse Button internally
Labels: refactor

https://github.com/excalidraw/excalidraw/pull/6092

- [x] collabButton
- [ ] `DropdownMenu.Trigger`
- [ ] sidebar
- [ ] ...
Repository: angular
Issue: Caching in service worker isn't working when path is generalized.
Labels: area: service-worker

### Which @angular/* package(s) are the source of the bug?

service-worker

### Is this a regression?

Yes

### Description

 When I'm configuring my dataGroups for caching in ngsw-config.json, if I specify the full path, only then the caching works. Otherwise, It doesn't cache.

This works:
`"dataGroups": [{
      "name": "getRequestCache",
      "urls": [
        "myapp/ai_models",
        "myapp/ai_models/parameters"
      ],
      "cacheConfig": {
        "strategy": "freshness",
        "maxSize": 1000,
        "maxAge": "3d",
        "timeout": "10s"
      }
    }
]`

This doesn't work:
`"dataGroups": [{
      "name": "getRequestCache",
      "urls": [
        "/**",
       "/**/**", 
       "/**/**/**"  
       ],
      "cacheConfig": {
        "strategy": "freshness",
        "maxSize": 1000,
        "maxAge": "3d",
        "timeout": "10s"
      }
    }
]`

Is there any way to not write each path specifically and assign a general path, so that everything gets cached?

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

_No response_

### Anything else?

_No response_
Repository: excalidraw
Issue: align icon naming
Labels: refactor,internals

- [ ] lowercase (they're not components)
- [ ] `{name}Icon` (unless we start importing `* as icons`)
Repository: electron
Issue: [Bug]: `webContents.print` fails on macOS with "No printers available on the network"
Labels: platform/macOS,component/printing,bug :beetle:,has-repro-gist,22-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

22.0.1

### What operating system are you using?

macOS

### Operating System Version

macOS Ventura 13.0.1

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

Calling the below:

```ts
window.webContents.print(undefined)
```

Should open a print dialog, _regardless of whether or not any printers are configured_.


### Actual Behavior

When no printers are currently configured, calling the below:

```ts
window.webContents.print(undefined, console.log)
```

Yields
```ps
false  No printers available on the network
```

While calling 

```ts
window.webContents.executeJavaScript("window.print();")
```

Yields the expected dialog:

<img src="https://user-images.githubusercontent.com/46646495/212063265-9ce0a5e4-2fb5-423b-9de8-feea0e43966e.png" width="500px">

---

While I can use the second approach, it feels like a workaround rather than a solution.

The first approach works fine on Windows 10, perhaps because there are a few default printers such as "Microsoft Print to PDF"?


### Testcase Gist URL

https://gist.github.com/8570c187ab7c976b70fd84835db5f27c

### Additional Information

Could be slightly related to https://github.com/electron/electron/issues/24664. The error is not the same, but the result is. According to comments on that issue, this is "expected behavior" - but it is also noted that it is not per spec, as other applications behave differently.
Repository: flutter
Issue: [image_picker] Improving Bitmap resize performance on Android
Labels: c: performance,p: image_picker,package,team-ecosystem,P2,triaged-ecosystem

My team noticed a performance issue related to `ImageResizer.resizeImageIfNeeded` on Android. The method loads the Bitmap even if the resize is not necessary.

Plus the `Bitmap.decodeFile` operation can use much memory, leading to a runtime crash. So we suggest to use the approach explained on https://developer.android.com/topic/performance/graphics/load-bitmap#load-bitmap

Maybe it's related to other crash issues
Repository: pytorch
Issue: Implement forward AD with grid_sampler_2d 
Labels: triaged,module: forward ad

### 🚀 The feature, motivation and pitch

I have a use case where I need to calculate the singular vectors of the jacobian of a function which generates and images and sends it through the vgg network used in stylegan2-ada for the [PPL implementation](https://github.com/NVlabs/stylegan2-ada-pytorch/blob/main/metrics/perceptual_path_length.py) 

I use `torch.autograd.functional.jacobian`and would like to use  `vectorize=True`,  `strategy='forward-mode` but run into the following

```
RuntimeError: Trying to use forward AD with grid_sampler_2d that does not support it because it has not been implemented yet.
Please file an issue to PyTorch at https://github.com/pytorch/pytorch/issues/new?template=feature-request.yml so that we can prioritize its implementation.
Note that forward AD support for some operators require PyTorch to be built with TorchScript and for JIT to be enabled. If the environment var PYTORCH_JIT=0 is set or if the library is not built with TorchScript, some operators may no longer be used with forward AD.
```
Repository: pytorch
Issue: compilig MultiHeadAttention
Labels: oncall: jit

### 🐛 Describe the bug

If `vdim` or `kdim` is different from `embed_model` the `nn.MultiheadAttention` module throws error when calling `torch.jit.scritp` on it.

```python
import torch

m = torch.nn.MultiheadAttention(10, 10, vdim=5)

torch.jit.script(m)
```

### Versions

Collecting environment information...
PyTorch version: 1.13.0+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.5 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.16.3
Libc version: glibc-2.31

Python version: 3.8.5 (default, Sep  4 2020, 07:30:14)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
Is CUDA available: True
CUDA runtime version: 10.1.243
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: Quadro RTX 6000
Nvidia driver version: 510.47.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.19.2
[pip3] numpydoc==1.1.0
[pip3] open-clip-torch==2.8.2
[pip3] torch==1.13.0
[pip3] torchaudio==0.9.0a0+33b2469
[pip3] torchvision==0.10.0
[conda] blas                      1.0                         mkl  
[conda] cudatoolkit               10.2.89              hfd86e86_1  
[conda] mkl                       2020.2                      256  
[conda] mkl-service               2.3.0            py38he904b0f_0  
[conda] mkl_fft                   1.2.0            py38h23d657b_0  
[conda] mkl_random                1.1.1            py38h0573a6f_0  
[conda] numpy                     1.19.2           py38h54aff64_0  
[conda] numpy-base                1.19.2           py38hfa32c7d_0  
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1  
[conda] open-clip-torch           2.8.2                     dev_0    <develop>
[conda] torch                     1.13.0                   pypi_0    pypi
[conda] torchaudio                0.9.0                      py38    pytorch
[conda] torchvision               0.10.0               py38_cu102    pytorch

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: transformers
Issue: Models for low resource languages
Labels: New model

### Model description

Hi, I was wondering if there is any way to take leverage of STOA models like [this](https://huggingface.co/facebook/bart-large-mnli) one by facebook and come up with a model for a low resource language, say Filipino using something like student-teacher methods.

My main aim is to come up with some **Zero-Shot models** for such languages with similar accuracy when used with languages like english.



### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

_No response_
Repository: PowerToys
Issue: "Glued" fancy zones?
Labels: Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

It would be useful to treat the windows that were placed in a fancy grid as a single window for the purpose of Alt+Tab'ing. As far as I can tell, if I change to something else, to get the layout back I need to either minimize the thing or things I switched to or bring up the zones of the fancy grid. If one Alt+Tab brought them all back it would be very convenient.

### Scenario when this would be used?

For example, just before writing this I was working with a fancy grid with three fancy zones. The I went to look something up in my web browser, then I checked my torrent client, and finally I switched to my music folder to play a song. To go back to the layout I was using to work with the images  from before, I had to Alt+Tab three windows up. Now that I think of it, maybe I could have brought them down with Windows+Down, but still, Alt+Tab'ing for everything feels more natural.

### Supporting information

_No response_
Repository: nvm
Issue: No proxy option in nvm install script
Labels: feature requests

<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->

#### Operating system and version:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"

#### `nvm debug` output:
<details>
<!-- do not delete the following blank line -->

```sh
Trying to install latest = 0.39.3
```
</details>

#### `nvm ls` output:
<details>
<!-- do not delete the following blank line -->

```sh
none ...Trying to install
```
</details>

#### How did you install `nvm`?
<!-- (e.g. install script in readme, Homebrew) -->
following the readme

#### What steps did you perform?
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

#### What happened?
error, I'm behind an entreprise proxy... no option to pass a proxy in install script

#### What did you expect to happen?
Well, I expected to be able to install nvm

#### Is there anything in any of your profile files that modifies the `PATH`?
<!--  (e.g. `.bashrc`, `.bash_profile`, `.zshrc`, etc) -->
no

#### Improved install command that worked for me (using proxy)

I propose a simple solution to correct the install script to work with proxy (only correcting curl and git, not wget... could be added)

```sh
export Proxy=http://my_enterprise_proxy:3128
curl --proxy $Proxy -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |sed -e 's/git /git -c "http.proxy=$Proxy" /g' -e 's/curl /curl --proxy $Proxy /g' |bash
```
Repository: PowerToys
Issue: [feature request] - FancyZones - Zone Taskbars
Labels: Needs-Triage

### Description of the new feature / enhancement

Option to show "Zone taskbars".

Basically like the existing Windows setting "Show taskbar on all **displays**" with "Show taskbar buttons on Taskbar where window is open":

![image](https://user-images.githubusercontent.com/13407181/212086517-24e885cd-1ead-46d0-86bb-ff4d10fef175.png)

This would become "Show taskbar on all **zones**" with "Show taskbar buttons on Zone-Taskbar where window is open".

Existing software that does something similar: https://www.stardock.com/products/groupy/

![image](https://user-images.githubusercontent.com/13407181/212085995-d7ce46a5-df49-427e-93fd-07c764979365.png)


### Scenario when this would be used?

Eliminate zone cycling/tabbing.

1-click window selection.

Always see at a glance which windows are open in which zones.

### Supporting information

_No response_
Repository: godot
Issue: Exporting variables from an extended scene causes default values to be lost.
Labels: bug,topic:gdscript

### Godot version

3.5.1.stable

### System information

Windows 11, GLES 3, Intel(R) Iris(R) Xe Graphics

### Issue description

**Demo: [Demo.zip](https://github.com/godotengine/godot/files/10402338/Demo.zip)**
**First**, create a scene A and create a new script called A.gd for it.
**Next**, create a scene B that extends from A, and create a script called B.gd for him.
Export a variable for A.gd:
`export var a = "abc"`
Export another variable for B.gd:
`export var b = "def"`
Then in the inspector panel of scenario B, you will find that the default value of variable b cannot work properly.
Just like this:
![QQ图片20230112221306](https://user-images.githubusercontent.com/82654854/212089202-8977b550-8482-4291-b719-a7581cef6fe8.png)
We have set the default value of b to def, but it doesn't work.

### Steps to reproduce

**First**, create a scene A and create a new script called A.gd for it.
**Next**, create a scene B that extends from A, and create a script called B.gd for him.
Export a variable for A.gd:
`export var a = "abc"`
Export another variable for B.gd:
`export var b = "def"`
Finally, open the inspector of scene B root node and change the value of variable b to find the problem.
![QQ图片20230112221306](https://user-images.githubusercontent.com/82654854/212089202-8977b550-8482-4291-b719-a7581cef6fe8.png)

### Minimal reproduction project

**Demo: [Demo.zip](https://github.com/godotengine/godot/files/10402338/Demo.zip)**
Repository: pytorch
Issue: Hessian produces wrong results, but works if I add a perturbation
Labels: triaged

I have the following function I would like the Hessian of: 

```python
def rbf(x1, x2, l):
    diff = x1/l - x2/l
    dist = torch.linalg.norm(diff)
    return torch.exp(-dist * dist)
```

Taking the Hessian with `functorch.jacfwd` and `functorch.grad` seems to get me an incorrect result on a naive example. According to my derivation by hand, this should return `2.0 / l**2 * torch.eye(16)`. If I add a small number to one of the terms, the Hessian function returns the correct result:

```python
jacfwdgrad_rbf = jacfwd(grad(rbf, argnums=0), argnums=1)  # doing d^2f/dx1dx2

a = torch.randn(16)
l = 1.0

print(torch.allclose(jacfwdgrad_rbf(a, a, l), 2/l/l * torch.eye(16)))  # prints False

print(torch.allclose(jacfwdgrad_rbf(a, a+1e-8, l), 2/l/l * torch.eye(16)))  # prints True
```
Is there some bug that means the former check doesn't work, or is there something I'm missing?
Repository: vscode
Issue: Add a notion of pending / draft state to code review comments
Labels: feature-request,api,api-proposal,comments

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

#127473 introduced `CommentThreadState` with `Unresolved` and `Resolved` values to indicate the actionable vs non-actionable state of a particular conversation in code review.

In addition to that, GitHub pull requests and other code review systems frequently treat new comment threads or specific replies added by a user as pending / draft, being visible only to the user until they publish all pending comments at the same time.

We propose adding a new field to `Comment` objects to model this state.

For type, we think a boolean might be enough, but similar to #127473 we might want to use an enum instead for flexibility.

We don't have a preference for a particular name, `draft`, `pending`, or `published` (with inverse semantics) would all work well.

Areas in VS Code that would benefit from having a draft state:
- the line gutter and the comments panel could render different icons for threads with drafts, to better indicate to users which conversations they have already replied to, for overview
- there could be built-in commands to expand or collapse threads with drafts in the editor, so that users can hide threads that they have already replied to
- the filtering functionality in the comments panel could have an option to "Show Drafts" so that users can hide threads they have already replied to

cc @laurentlb @JonasMa
Repository: vscode
Issue: [3wm] screen cheese in title parts
Labels: bug,merge-editor

* open merge editor
* use column mode
* the left column overlaps the center column

<img width="414" alt="Screenshot 2023-01-12 at 16 13 42" src="https://user-images.githubusercontent.com/1794099/212105097-2eb8716a-69b6-4b96-808b-9a9ae180d257.png">
Repository: pytorch
Issue: DISABLED test_cdist_large_batch (__main__.TestMPS)
Labels: triaged,module: flaky-tests,skipped,module: mps

Platforms: mac, macos

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/failure/test_cdist_large_batch) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/10604384288).

Over the past 72 hours, it has flakily failed in 2 workflow(s).

**Debugging instructions (after clicking on the recent samples link):**
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Grep for `test_cdist_large_batch`


cc @kulinseth @albanD @malfet @DenisVieriu97 @razarmehr @abhudev
Repository: flutter
Issue: Screen reader loses focus from previous route after navigation
Labels: framework,a: accessibility,f: routes,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-framework,triaged-framework

After navigating the semantics nodes with a screen reader (right/left swipes), entering a new page (`Navigator.push`), and returning from it (`Navigator.pop`), the screen reader is focused on the beginning of a route instead of on the last focused node.

This is an issue that the accessibility consultant from my project pointed out and it's a big blocker for people with disabilities to effectively use the application that has forms with full-page pickers.

I tested it only on iPhone's VoiceOver.

## Test environment

iPhone 13 Pro, iOS 16.0.2

```
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.1 22C65 darwin-arm, locale en-PL)
    • Flutter version 3.3.8 on channel stable at /Users/albert/fvm/versions/3.3.8
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (9 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3
```

## Demo

Those videos have audio with VoiceOver voice.

### Sample Flutter app

https://user-images.githubusercontent.com/4085280/212114279-a8707944-5de0-4a91-838a-737b098885c2.MOV

### iOS Settings app

https://user-images.githubusercontent.com/4085280/212114358-34c72f21-d9a6-4d86-9a72-dc2957faf9a8.MOV

### Sample app code

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(
    const MaterialApp(home: RootWidget()),
  );
}

class RootWidget extends StatelessWidget {
  const RootWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Root route'),
      ),
      body: Column(
        children: [
          ListTile(
            title: const Text('A'),
            onTap: () => Navigator.of(context).push(
              MaterialPageRoute(
                builder: (_) => const ChildPage(text: 'A'),
              ),
            ),
          ),
          ListTile(
            title: const Text('B'),
            onTap: () => Navigator.of(context).push(
              MaterialPageRoute(
                builder: (_) => const ChildPage(text: 'B'),
              ),
            ),
          ),
        ],
      ),
    );
  }
}

class ChildPage extends StatelessWidget {
  const ChildPage({super.key, required this.text});

  final String text;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Child route: $text'),
      ),
      body: Center(
        child: Text('Hello there: $text'),
      ),
    );
  }
}
```