sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Pnpm install ran with Deno Errors when pnpm installed from deno
Labels: bug,node compat

Version: Deno canary

### Repro:
## os and setup info:
window 11, wsl - ubuntu, devcontainer - os = `ubuntu`: `jammy`, platform = `amd64`
```json
{ 
"features": {
    "ghcr.io/devcontainers-contrib/featurs/deno:1": {}
 }
}
```

## setup steps
```shell
sudo deno upgrade --canary
```

```shell
deno install npm:pnpm
```

## package.json
```json
{
  "type": "module",
  "scripts": {
        "dev": "astro dev",
        "start": "astro dev",
        "build": "astro check && tsc --noEmit && astro build",
        "preview": "astro preview",
    },
    "devDependencies": {
        "astro": "^4.0.0",
        "svelte": "5.0.0-next.20",
        "@astrojs/svelte": "^5.0.0",
        "@astrojs/check": "0.2.0",
        "sass": "latest",
        "@types/node": "20.10.3",
        "@typescript-eslint/eslint-plugin": "^6.7.4",
        "@typescript-eslint/parser": "^6.7.4",
        "eslint": "^8.50.0",
        "eslint-config-prettier": "^9.0.0",
        "eslint-plugin-prettier": "^5.0.0",
        "eslint-plugin-astro": "^0.29.1",
        "eslint-plugin-svelte": "^2.35.1",
        "prettier": "^3.0.3",
        "prettier-plugin-astro": "^0.12.2",
        "prettier-plugin-svelte": "^3.0.3",
        "svelte-eslint-parser": "^0.33.1"
    },
}
```

## Command
```shell
pnpm install
```

### Result:
![image](https://github.com/denoland/deno/assets/30267655/c2b17be8-c22c-4f53-994d-945ae8ffa606)
Repository: PowerToys
Issue: Check for updates from dashboard
Labels: Product-Settings,Area-User Interface,Needs-Triage

### Description of the new feature / enhancement

Add a button on the dashboard that brings you to the general settings & checks for updates, all in one click.

### Scenario when this would be used?

When you want to check for updates.

### Supporting information

My idea got inspired by the "Windows Update" button on the startpage of the Windows 11 settings.
Repository: flutter
Issue: Engine Java tests package names do not match expected package names
Labels: team-android

In `FlutterRendererTest.java`:

`package io.flutter.embedding.engine.renderer;`

Flagged in VSCode:

```
The declared package "io.flutter.embedding.engine.renderer" does not match the expected package "test.io.flutter.embedding.engine.renderer"
```

We should fix this.
Repository: next.js
Issue: Parallel routes - generateMetadata searchParams is undefined in default.tsx
Labels: bug

### Link to the code that reproduces this issue

https://github.com/IgordeSL/repro-search-params

### To Reproduce

1 - Clone the repo
2 - Install dependencies run `yarn` 
3 - Start application `yarn dev` and open [`http://localhost:3000/`](http://localhost:3000/)
4 - Click on the link `Go to a route`
5 - Reload the page

### Current vs. Expected behavior

Current:
In the `@parallel/default.tsx` file, the `searchParams` parameter of the `generateMetadata` function is always given an undefined value, but in the default function, which returns the component, the `searchParams` prop is given the correct value according to the URL

Expected:
Both the `searchParams` parameter of the `generateMetadata` function and the prop of the default function component are given the correct value according to the URL.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Thu Oct 5 21:02:42 UTC 2023
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.0.5-canary.2
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
Binaries:
  Node: 20.9.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.5-canary.2
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router, Metadata (metadata, generateMetadata, next/head)

### Additional context

I tested on my machine in Windows 11 and WSL Ubuntu
Repository: pytorch
Issue: torch.kthvalue should take a tensor of `k` values.
Labels: triaged,module: sorting and selection

### 🚀 The feature, motivation and pitch

The function `torch.kthvalue(input, k, dim=None)` has parameters:

 - **input** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) – the input tensor.
 - **k** ([int](https://docs.python.org/3/library/functions.html#int)) – k for the k-th smallest element
 - **dim** ([int](https://docs.python.org/3/library/functions.html#int), optional) – the dimension to find the kth value along

But it seems we might as well allow `k` to be a tensor.

This could be defined as

```
def kthvalue(input, k, dim):
    sorted, _ = torch.sort(input, dim=dim)
    return torch.take_along_dim(sorted_matrix, ks, dim=dim)
```

As far as I understand from https://github.com/pytorch/pytorch/issues/75599, this approach might even be faster.

### Alternatives

_No response_

### Additional context

One use case of this is when you have multi label data, and you want your sigmoid probabilities to sum to the number of labels in each data point.

```
    n, d = 20, 100
    xs = torch.randn(n, d, dtype=torch.double)
    ks = torch.randint(1, d, size=(n,))
    print(torch.sigmoid(xs).sum(dim=1))  # This won't be similar to ks

    sorted_matrix, _ = torch.sort(xs, dim=-1)
    xs -= torch.take_along_dim(sorted_matrix, d - ks[..., None] - 1, dim=-1)
    print(torch.sigmoid(xs).sum(dim=1))  # This will be close to ks
```
Repository: transformers
Issue: dMoE support
Labels: New model

### Feature request

MistralAI recently [released their new model](https://twitter.com/MistralAI/status/1733150512395038967), a Mixture of Experts based on [megablocks](https://github.com/stanford-futuredata/megablocks), a type of dropless Mixture of Experts.

### Motivation

It's very likely that the future of open source LLMs will be MoEs. Having it in HF transformers would allow us to use the built-in trainer, as it's unwieldy to use Megatron-LM for the average user who's only ever done QLoRA.

### Your contribution

No clue for now.
Repository: stable-diffusion-webui
Issue: [Bug]: strong black borders (broken tiling) on any upscalers (Extras tab/Ultimate upscaler script)
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Any upscaler (Lanczos and Nearest modes are unaffected!) gives strong black borders (broken tiling):
![image2](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/d1b1f7dc-247b-4128-828d-f50f8b4ad09c)
(default ESRGAN_4x)
[Full upscaled image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/ca168e9a-80d5-48a4-9062-2976032459fb)
4x_SGI_103000_G:
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/127681e2-6103-4bf2-97ae-38ee37c1b405)


### Steps to reproduce the problem

1. Go to Extras tab, drag and drop [example_texture](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/86b11eed-5bbf-41ee-a451-e51eefadf990) (64x64).
2. Select any upscaler (Lanczos and Nearest is not affected!), example default ESRGAN_4x.
3. Set Resize to 8.
4. Press Generate and open preview tiling.

### What should have happened?

There should be no strong black borders, [example texture upscaled by chainner](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/7b76086e-7d3d-492c-a426-9236c0faa303) using the same ESRGAN_4x model.
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/5313b141-fcb0-43ee-90d7-1d3ecb0ad0b5)
4x_SGI_103000_G:
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/4449851/87d35bf6-f960-4a04-9d53-3ff749fb5477)


### Sysinfo

webui.py: error: unrecognized arguments: --dump-sysinfo
maybe my version's a little old?

### What browsers do you use to access the UI ?

Mozilla Firefox

### Console logs

```Shell
no need
```


### Additional information

I also checked with a friend who has a newer version (1.6.0 stable).
Repository: go
Issue: x/tools/gopls: add uber-go/nilaway to the set of analyzers
Labels: FeatureRequest,gopls,Tools

The primary reason I get bit by unexpected crashes is often getting `nil` or array bounds errors.  I believe this could help a lot of others as well.

It'd be cool to add support for https://github.com/uber-go/nilaway and have the Problems UI point to these errors.

Using via the CLI works, but this feels like it'd make a good addition to the linters/error checks offered in vscode-go
Repository: PowerToys
Issue: Fancy Zones Editor: Custom layout with incorrect division for SAMSUNG 49" Odyssey G9 OLEDLS49CG950SLXZX
Labels: Issue-Bug,FancyZones-Editor,Product-FancyZones,Needs-Triage

### Microsoft PowerToys version

0.76.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

FancyZones Editor

### Steps to reproduce

I'm using custom grid and this settings 
![Captura de pantalla 2023-12-08 122731](https://github.com/microsoft/PowerToys/assets/72046610/7f39fe47-3c53-4af4-8515-709565057691) 

My monitor is 5120x1440px -  I want to divide my screen into equal parts, in this example I want to divide it into 4 equal parts, then each layout must be 1280 px wide each but one is never perfect, I am changing with mouse and keyboard (left, right keys) and It automatically always adds 1px or removes 1px but it cannot be fixed at 1280px for the 4 layouts.

The same if I want to divide it into 5 equal parts.

Video of bug: https://github.com/microsoft/PowerToys/assets/72046610/5abe7d27-b418-47f0-bcf3-39b39158b955




### ✔️ Expected Behavior

All 4 layouts should be 1280px wide.

### ❌ Actual Behavior

One layout always adds 1px or removes 1px as a bug staying at 1279px or 1281px

### Other Software

_No response_
Repository: PowerToys
Issue: Remapping shortcut not working as expected
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.76.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

CONTEXT 

I've switched over from Mac to Windows, and found Powertoys...which is making my transition so much easier.  

One thing that has made it easier is the shortcut manager because I am able to remap keyboard shortcut modifier keys to better match what I'm used to on Mac. For example, putting the left Ctrl key next to the spacebar where the Alt key is on PCs. 

Anyhow, these key remappings work. But then I tried remapping a shortcut, to make it easier to close an application. Basically I want the native Alt-F4 behavior (which closes the current active application window) when I press the following physical keys on the keyboard: LeftShift+LeftAlt+W. 

STEPS TO REPRODUCE

1. Launch Powertoys, and enable Keyboard Manager

2. Make the following mappings: 
![image](https://github.com/microsoft/PowerToys/assets/3443475/8495061b-9b9e-45f1-8104-8eca348ef910)

NOTE: I saw the note about key mappings having an effect on this, so this is why LeftAlt has been replaced with LeftCtrl. 

3. Press the following physical keys on the keyboard: LeftShift+LeftAlt+W to close the Powertoys application as a test 

### ✔️ Expected Behavior

I would expect the Powertoys application window to close 

### ❌ Actual Behavior

Nothing happens when I press the following physical keys on the keyboard: LeftShift+LeftAlt+W. 

I also tried ignoring the key mappings but to no avail. 

### Other Software

_No response_
Repository: rust
Issue: give a better error when `origin/HEAD` is vastly out of date
Labels: A-diagnostics,T-bootstrap

i just tried to compile a recent branch of my fork and got this confusing error:
```
downloading https://ci-artifacts.rust-lang.org/rustc-builds/3572d7451d1062e8bccf310af6bbf6255091d296/rust-dev-nightly-x86_64-pc-windows-msvc.tar.xz
curl: (22) The requested URL returned error: 404

Fallback to PowerShell
Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an 
error: (404) Not Found."
At line:1 char:82
+ ... pe]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://c ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
 
thread 'main' panicked at src\core\download.rs:211:9:
std::fs::rename(&tempfile, dest_path) failed with The system cannot find the file specified. (os error 2)
```

notice that 3572d7451d1062e8bccf310af6bbf6255091d296 is from june. this is because `git merge-base origin/master HEAD` outputs 69a63737fa111b366bb3f3254806547d7dd15678, which in turn is because origin/master points to 69a63737fa111b366bb3f3254806547d7dd15678, which is 6 months old.

it would be nice for bootstrap to give a warning if `origin/master` is massively outdated. anything more than a week is probably suspect, or if there's any commits in `git log origin/master..HEAD` that aren't authored by the current user.

there is a second error here that apparently the `help_on_error` reporting only works on linux, not windows.

@rustbot label +A-diagnostics +T-bootstrap

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: PowerToys
Issue: Toggle some feature on/off using command line script. E.g. keyboard manager for work / game profile
Labels: Needs-Triage

### Description of the new feature / enhancement

Enable or disable the keyboard manager by command line options, so that user can make a automated script to toggle module on/off. Right now the only way to do that is open the GUI and click the on/off button.

### Scenario when this would be used?

I use the same PC for coding and gaming. While it is handy to swap the Tab key and Escape key while coding, this must be disable every time I play steam game, this setting will cause problems while gaming. It would be very good feature if we can quickly enable or disable it by a shortcut or script.

### Supporting information

_No response_
Repository: vscode
Issue: Inject user-defined secrets as environment variables (secure launch.json alternative using 
Labels: feature-request,terminal-process

<!-- ⚠️⚠️ 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. -->
It is a common practice to provide CI/CD processes secrets as environment variables. For example, take the [GitHub Actions docs](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#example-using-powershell) sample:

```yaml
steps:
  - shell: pwsh
    env:
      SUPER_SECRET: ${{ secrets.SuperSecret }}
    run: |
      example-command "$env:SUPER_SECRET"
```

Now suppose I want to debug this `example-command` locally, using my own `SuperSecret` (for example this could be my personal access token to some service). I would have to add something like this to `launch.json`:
```jsonc
"type": "PowerShell",
//...
"env": {
  "SUPER_SECRET": "MY_REALTOKEN_SERCET"
}
```

This is not ideal, considering my actual secret token is now stored in plaintext on my hard drive - which most likely isn't even encrypted. This can be easily solved by an extension, using the [SecretStorage API](https://code.visualstudio.com/api/references/vscode-api#SecretStorage), and indeed one such extension has been created to address this exact concern: https://marketplace.visualstudio.com/items?itemName=pomdtr.secrets&ssr=false.

The problem is, I'm not going to hand over all my secrets to an extension with a total of ~1,200 installs, one (4-star) review, and 4 GitHub stars - in my book it makes the cure more dangerous than the illness, and I'd rather take my chances with hackers gaining access to my hard drive. Don't get me wrong, the dev looks like a great guy, but I'd need a stronger  guarantee for something like this...

The issue here is trust, especially in such a sensitive topic. Perhaps you could work with said extension's developer (@pomdtr) in order to integrate it into the VSCode codebase? I'd reckon this a very common scenario that could benefit from a very easy security gain...
Repository: go
Issue: net: timeouts on `dragonfly` with goroutines in `IO wait` on `UDPConn` read methods
Labels: OS-Dragonfly,NeedsInvestigation

```
#!watchflakes
post <- goos == "dragonfly" && pkg == "net" && log ~ `test timed out` && log ~ `goroutine \d+ .*\[IO wait, \d+ minutes\]:\n(.+\n\t.+\n)*net\.\(\*UDPConn\)\.`
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/ab21f77744c4ab6b24f56c4d4548d0454d612089)):

    panic: test timed out after 3m0s
    running tests:
    	TestAllocs (2m52s)
    
    goroutine 1322 gp=0xc0003a2fc0 m=7 mp=0xc000316008 [running]:
    panic({0x649e40?, 0xc0002ae040?})
    	/tmp/workdir/go/src/runtime/panic.go:779 +0x158 fp=0xc0003c3f10 sp=0xc0003c3e60 pc=0x4390f8
    testing.(*M).startAlarm.func1()
    	/tmp/workdir/go/src/testing/testing.go:2366 +0x385 fp=0xc0003c3fe0 sp=0xc0003c3f10 pc=0x4f0605
    runtime.goexit({})
    ...
    net.TestReadWriteProlongedTimeout(0xc00026a680)
    	/tmp/workdir/go/src/net/timeout_test.go:1028 +0x35 fp=0xc000184770 sp=0xc0001846b0 pc=0x6059b5
    testing.tRunner(0xc00026a680, 0x6b0378)
    	/tmp/workdir/go/src/testing/testing.go:1689 +0xfb fp=0xc0001847c0 sp=0xc000184770 pc=0x4ec33b
    testing.(*T).Run.gowrap1()
    	/tmp/workdir/go/src/testing/testing.go:1742 +0x25 fp=0xc0001847e0 sp=0xc0001847c0 pc=0x4ed365
    runtime.goexit({})
    	/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0001847e8 sp=0xc0001847e0 pc=0x472101
    created by testing.(*T).Run in goroutine 1
    	/tmp/workdir/go/src/testing/testing.go:1742 +0x390


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: flutter
Issue: Flutter apps draw a single black frame when resumed on Android
Labels: platform-android,engine,P1,team-engine,triaged-engine

Can easily be reproduced with the basic counter app generated by flutter create.

Run the app.
Switch to another app.
Switch back.
Observe single black frame rendered.
Repository: tensorflow
Issue: Bzlmod support
Labels: stat:awaiting tensorflower,type:feature,type:build/install,subtype:bazel

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

Latest

### Custom code

No

### OS platform and distribution

Linux

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

6

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Please support bzlmod by adding a `MODULE.bazel` file . See the [migration guide](https://bazel.build/external/migration).

### Standalone code to reproduce the issue

```shell
This file currently doesn't exist.
```


### Relevant log output

_No response_
Repository: tensorflow
Issue: Upgrade protobuf
Labels: stat:awaiting tensorflower,type:build/install,comp:apis,subtype: ubuntu/linux,TF2.14

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

Latest

### Custom code

No

### OS platform and distribution

Linux

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

6

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Currently, [Protobuf 21 is used](https://github.com/tensorflow/tensorflow/blob/4178a583080190e931856545b28a7b708040208c/tensorflow/workspace2.bzl#L385). Please upgrade to a more recent version. As the whole Bazel workspace needs to use the same version of Protobuf, all projects using tensorflow as dependency are blocked upgrading the Protobuf version.

### Standalone code to reproduce the issue

Change https://github.com/tensorflow/tensorflow/blob/4178a583080190e931856545b28a7b708040208c/tensorflow/workspace2.bzl#L385 to a newer version.


### Relevant log output

_No response_
Repository: deno
Issue: Issue with deno kv
Labels: bug,ext/kv

We've been working on releasing a solution to prod, but are continuing to get the following error. Please let me know what else i can provide.

Repo: https://github.com/fathym-deno/everything-as-code

Platform: windows x86_64
Version: 1.38.2
Args: ["C:\\ProgramData\\chocolatey\\lib\\deno\\deno.exe", "run", "-A", "--unstable", "--allow-env", "--watch=handlers/,static/,routes/,src/", "dev.ts"]

thread '<unnamed>' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\denokv_sqlite-0.2.1\backend.rs:567:8:
called `Result::unwrap()` on an `Err` value: SqliteFailure(Error { code: DatabaseBusy, extended_code: 5 }, Some("database is locked"))
stack backtrace:
   0:     0x7ff75471524e - napi_release_threadsafe_function
   1:     0x7ff7534e6f1b - napi_release_threadsafe_function
   2:     0x7ff7546f1d21 - napi_release_threadsafe_function
   3:     0x7ff7547195ba - napi_release_threadsafe_function
   4:     0x7ff7547191d2 - napi_release_threadsafe_function
   5:     0x7ff754718dd9 - napi_release_threadsafe_function
   6:     0x7ff7532e5cbe - napi_fatal_error
   7:     0x7ff754719e7c - napi_release_threadsafe_function
   8:     0x7ff754719bf5 - napi_release_threadsafe_function
   9:     0x7ff754719b49 - napi_release_threadsafe_function
  10:     0x7ff754719b34 - napi_release_threadsafe_function
  11:     0x7ff755c02575 - CrashForExceptionInNonABICompliantCodeRange
  12:     0x7ff755c029e4 - CrashForExceptionInNonABICompliantCodeRange
  13:     0x7ff7543e6b1f - napi_release_threadsafe_function
  14:     0x7ff7543dec7a - napi_release_threadsafe_function
  15:     0x7ff7543d815e - napi_release_threadsafe_function
  16:     0x7ff7543d4ff3 - napi_release_threadsafe_function
  17:     0x7ff7543e89d8 - napi_release_threadsafe_function
  18:     0x7ff75471110a - napi_release_threadsafe_function
  19:     0x7ff8f42f257d - BaseThreadInitThunk
  20:     0x7ff8f5e6aa58 - RtlUserThreadStart