sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: net/http: TestServerKeepAlivesEnabled_h2 failure with "got 2 conns, want 1"
Labels: NeedsInvestigation

```
--- FAIL: TestServerKeepAlivesEnabled_h2 (0.30s)
    serve_test.go:5768: request 1: got 2 conns, want 1
2021/12/03 17:42:33 http: TLS handshake error from 127.0.0.1:21794: read tcp 127.0.0.1:21793->127.0.0.1:21794: read: connection reset by peer
2021/12/03 17:42:33 http: TLS handshake error from 127.0.0.1:21796: read tcp 127.0.0.1:21793->127.0.0.1:21796: read: connection reset by peer
2021/12/03 17:42:33 http: TLS handshake error from 127.0.0.1:21797: read tcp 127.0.0.1:21793->127.0.0.1:21797: read: connection reset by peer
FAIL
FAIL	net/http	135.565s
```

`greplogs --dashboard -md -l -e 'FAIL: TestServerKeepAlivesEnabled.*\n\s+.*got \d+ conns, want 1'`

[2021-12-03T14:28:11-a174638/freebsd-arm-paulzhol](https://build.golang.org/log/ded7fe4b882183a721a6178b36613490ae447660)

This may be somehow related to #44420. (See previously #46707, #21724, #18701, #18127, #18083.)

(CC @neild)
Repository: pytorch
Issue: Port `normal` to structured kernel
Labels: triaged,module: structured kernels

Working on this ATM, so creating an issue to track progress and ask questions.

Relevant links:
https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/README.md
https://github.com/pytorch/rfcs/blob/rfc-0005/RFC-0005-structured-kernel-definitions.md
Repository: TypeScript
Issue: Relative auto-import path when dependency package.json "name" is not specified
Labels: Bug,Help Wanted,Effort: Moderate,Domain: Auto-import

This is fairly niche, but I found that in `module: nodenext`, when we're using a package with no `name` field, we generate a bad completion list entry.

```ts
import { indexFoo } from "../node_modules/dependency/lib/index.js";
```

for the following test case:

```ts

//// @filename: ./node_modules/dependency/package.json
//// {
////     "type": "module",
////     "exports": {
////         ".": {
////             "types": "./lib/index.d.ts",
////         }
////     }
//// }

//// @filename: ./node_modules/dependency/lib/index.d.ts
//// export function fooFromIndex(): void;

//// @filename: ./package.json
////{
////    "type": "module",
////    "dependencies": {
////        "dependency": "^1.0.0"
////    }
////}

//// @filename: ./src/foo.ts
//// import fooFrom/**/

```
Repository: godot
Issue: Editor uses CPU time in the background due to the audio server being kept active
Labels: bug,topic:editor,confirmed,topic:audio,performance

### Godot version

3.4 Stable

### System information

Windows 11 / Surface Pro 8 / i7 x86_64

### Issue description

Having the editor open but minimised / unfocused eats up 1-2 hours of battery life. Cause seems to be continuous use of `Windows Audio Device Graph Isolation`. `Desktop Window Manager` usage is also much higher than when the editor is closed.

![image](https://user-images.githubusercontent.com/10351202/144683665-9bae2372-9515-485b-abb4-a583a362b469.png)


This can also be seen by running `powercfg /requests` in the terminal.

```
SYSTEM:
[DRIVER] Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0274&SUBSYS_10EC122E&REV_1000\5&1543d6b8&0&0001)
An audio stream is currently in use.
```

Sometimes, but not consistently this also prevents sleep when closing the keyboard cover.

Might be analogous to these issues affecting MacOS:
https://github.com/godotengine/godot/issues/28039
https://github.com/godotengine/godot/issues/38154

Maybe this is a minor issue in the grand scheme of things, but usability is impacted when you have to keep opening and closing a project when you don't expect to work on it for even a hour less you sacrifice some battery!

### Steps to reproduce

Open the editor

### Minimal reproduction project

_No response_
Repository: godot
Issue: Using a class_name reference doesn't work when preload() on the class that tries to use the class_name
Labels: bug,topic:gdscript

### Godot version

3.4.stable

### System information

Windows 11, GLES3

### Issue description

When you try to acess some constant of static function on a script/class that preloads the script, it don't work:

`Parser Error: The class "FactoryState" was found in global scope, but its script couldn't be loaded.`

### Steps to reproduce

1. Create a Script with class_name, like: `class_name ClassTest`
2. Create another Script that uses the reference of the class_name created before and tries to acess some constant or static function, like:
```
func _ready():
	print(ClassTest.CONSTANT)
```
3. Try to preload the new Script, like: var test_preload_script = preload("res://test.gd")
4. See the error: `Parser Error: The class "FactoryState" was found in global scope, but its script couldn't be loaded.`

Minimal reproduction project uploaded

### Minimal reproduction project

[tests.zip](https://github.com/godotengine/godot/files/7653095/tests.zip)
Repository: go
Issue: testing: benchmark timeout when benchtime set too long
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
go1.15
</pre>

### Does this issue reproduce with the latest release?
yes


### What did you do?

When benchmark function execute time is very short, set benchtime=5s / 10s / 20s is ok.
```
BenchmarkNewObject-2            1000000000               0.279 ns/op
```
But set benchtime=120s will execute time out.

```
*** Test killed with quit: ran too long (11m0s).
```

### What did you expect to see?
Do not timeout

### What did you see instead?
```
*** Test killed with quit: ran too long (11m0s).
```
Repository: pytorch
Issue: `torch.hstack` should raise an error when tensor is 0 dimensional
Labels: module: docs,triaged,Stale

## 🐛 Bug

`torch.hstack` should raise an error when tensor is 0 dimensional like `torch.cat` based on the document that "This is equivalent to concatenation along the first axis for 1-D tensors, and along the second axis for all other tensors."

## To Reproduce

```python
import torch
tensor_0 = torch.rand(torch.Size([]))
tensor_1 = torch.rand(torch.Size([3]))
tensors = [tensor_0, tensor_1]
res1 = torch.hstack(tensors)
# succeed
res2 = torch.cat(tensors, dim=0)
# RuntimeError: zero-dimensional tensor (at position 0) cannot be concatenated
```

## Expected behavior

`torch.hstack` should raise an error when tensor is 0 dimensional

## Environment

PyTorch Version (e.g., 1.0): 1.10.0
OS (e.g., Linux): Linux
How you installed PyTorch (conda, pip, source): conda
Python version: 3.9.5
CUDA/cuDNN version: 11.1
GPU models and configuration: RTX 3090


cc @brianjo @mruberry
Repository: yt-dlp
Issue: option to use mkvmerge instead of ffmpeg for merging
Labels: enhancement,PR-needed,core:post-processor

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [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)

### Description

Hi. I just started using yt-dlp on a headless Linux system and the ffmpeg requirement for merging pulls in a ton of useless dependencies/bloat for headless setups. Is there any chance having the option to merge with mkvmerge (part of the mkvtoolnix package) instead would be considered?

Thanks
Repository: material-ui
Issue: [LoadingButton] LoadingButtonProps freezes typescript compilation on "Checking validity for types" 
Labels: typescript,component: LoadingButton

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

The LoadingButtonProps freezes typescript compilation. The build remains stuck on "Checking validity of types". Using the ButtonProps interface temporarily solves the issue. 

The issue is described in detail [here](https://github.com/vercel/next.js/issues/31994)

### Expected behavior 🤔

Typescript should compile fine to javascript files.

### Steps to reproduce 🕹

Steps:

1. create a next js project with typescript and install mui
2. create a LoadingButton component and the props for it should extend the LoadingButtonProps.
3. render the component and run next build
4. the terminal should be stuck on "Checking validity of types..."



### Context 🔦

Was unable to use LoadingButton props which caused a build failure. I had to use ButtonProps instead which produced the build

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
    System:
    OS: Linux 5.10 Manjaro Linux
  Binaries:
    Node: 16.11.0 - /usr/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 8.0.0 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 94.0.1
```
</details>
Repository: rust
Issue: Large parameters are copied to stack even in trivial wrappers
Labels: I-slow,C-bug

<!--
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.
-->

I tried this code: <https://rust.godbolt.org/z/j13WbYT6o>

```rust
extern "Rust" {
    fn bar(x: [String; 100]) -> usize;
}

pub unsafe fn foo(x: [String; 100]) -> usize {
    bar(x)
}
```

I expected to see this happen: 
Everything should be already set up on the stack appropriately to just call `bar` immediately on entering `foo`.

Instead, this happened:
It copies the 2400 bytes to stack, then calls `bar` with the pointer to that stack copy
```asm
example::foo:
        push    rbx
        sub     rsp, 2400
        mov     rsi, rdi
        mov     rbx, rsp
        mov     edx, 2400
        mov     rdi, rbx
        call    qword ptr [rip + memcpy@GOTPCREL]
        mov     rdi, rbx
        call    qword ptr [rip + bar@GOTPCREL]
        add     rsp, 2400
        pop     rbx
        ret
```

Since at the ABI level that's passed as a pointer, I suspect this is more a "how rustc emits stuff" than an LLVM bug -- maybe there's some https://llvm.org/docs/LangRef.html#parameter-attributes we could set that would help.  Or maybe the unnecessary double-move in MIR is part of the problem:
```rust
fn foo(_1: [String; 100]) -> usize {
    debug x => _1;                       // in scope 0 at /app/example.rs:5:19: 5:20
    let mut _0: usize;                   // return place in scope 0 at /app/example.rs:5:40: 5:45
    let mut _2: [std::string::String; 100]; // in scope 0 at /app/example.rs:6:9: 6:10

    bb0: {
        StorageLive(_2);                 // scope 0 at /app/example.rs:6:9: 6:10
        _2 = move _1;                    // scope 0 at /app/example.rs:6:9: 6:10
        _0 = bar(move _2) -> bb1;        // scope 0 at /app/example.rs:6:5: 6:11
    }

    bb1: {
        StorageDead(_2);                 // scope 0 at /app/example.rs:6:10: 6:11
        return;                          // scope 0 at /app/example.rs:7:2: 7:2
    }
}
```

### Context

I was trying various things to see if I could remove some bad behaviour from array's `map`, which is troublesome enough that it's caveated in the docs, https://github.com/rust-lang/rust/pull/87609

I had thought this was due to newtypes, as in these bugs
- https://github.com/rust-lang/rust/issues/79914
- https://github.com/rust-lang/rust/issues/90595

But since it repro'd even without the extra wrappers I figured I'd file a distinct bug.
Repository: yt-dlp
Issue: Twitch API request does not return viewer count
Labels: site-bug

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([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 all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [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)
- [ ] 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 I'm willing to share it if required

### Region

_No response_

### Description

If I dump the JSON information of a twitch stream the value of **view_count** is always **null**. I wrote a script which relies on this value and it stopped working about a year ago. Is this a youtube-dl/yt-dlp bug or the result of some twitch API changes?

### Verbose log

```shell
[debug] Command-line config: ['-Uv', '-j', 'https://twitch.tv/jay_cee']
[debug] User config file: /home/user/.config/yt-dlp/config
[debug] User config: ['--ignore-errors', '-o', '~/%(uploader)s-%(title)s.%(ext)s', '-f', 'best']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref UTF-8
[debug] yt-dlp version 2021.12.01 [91f071af6] (zip)
[debug] Python version 3.8.10 (CPython 64bit) - Linux-5.4.0-91-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, keyring, sqlite
[debug] Proxy map: {}
Latest version: 2021.12.01, Current version: 2021.12.01
yt-dlp is up to date (2021.12.01)
[debug] [twitch:stream] Extracting URL: https://twitch.tv/jay_cee
[twitch:stream] jay_cee: Downloading stream GraphQL
[twitch:stream] jay_cee: Downloading stream access token GraphQL
[twitch:stream] 40292037211: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 40292037211: Downloading 1 format(s): 720p60__source_
{"id": "40292037211", "display_id": "jay_cee", "title": "jay_cee (live) 2021-12-04 14:16", "description": "CV1 Any% Attempts / New 17 Scroll Glitch learned!", "thumbnail": "https://static-cdn.jtvnw.net/previews-ttv/live_user_jay_cee-1280x720.jpg", "uploader": "jay_cee", "uploader_id": "jay_cee", "timestamp": 1638612120, "view_count": null, "formats": [...
```
Repository: three.js
Issue: Add GL_INT_2_10_10_10_REV support
Labels: Enhancement,WebGL2

Hi,
GL_INT_2_10_10_10_REV  is useful for packing shading normals into 32 bits.
Can it be added as a permissible type for vertex attributes?
Thanks!
Repository: rust
Issue: Misleading suggestion for builders
Labels: A-diagnostics,T-compiler

When trying to return ```Self``` instead of ```self``` from a method with a ```self``` or ```mut self``` parameter the suggestion is most likely misleading. I expected the compiler to tell me to change ```Self``` to ```self``` because in my eyes its more likely that the user wants to return the same instance that they took instead of allocating a new one but instead i get this:

```
error: the `Self` constructor can only be used with tuple or unit structs
  --> builders.rs:13:7
   |
13 |       Self
   |       ^^^^ help: use curly brackets: `Self { /* fields */ }`

error: aborting due to previous error

```

here is a reproducer:

```
fn main() {
}

struct Builder {
   setting: bool,
}

impl Builder {
   fn setting(mut self)	-> Self	{
      self.setting = true;
      Self
   }
}
```

here is the expected output:
```
error: `Self` is a constructor and thus can't be returned itself
  --> builders.rs:13:7
   |
13 |       Self
   |       ^^^^ help: try replacing `Self` with `self`

error: aborting due to previous error
Repository: excalidraw
Issue: Always fill multi-line when fill color is set
Labels: discussion

When the fill color is non-transparent, we should auto-close (visually) a linear shape no matter whether it actually is closed (or the starting and ending point is within the specific threshold).

This way, you don't need manually close the shape, which has the benefit of not having to maintain the edge points to be close together, which is tedious (they also tend to diverge beyond the loop-threshold on resizing):

current:
![excal_auto_fill_off](https://user-images.githubusercontent.com/5153846/144715973-54239aab-68bb-442b-bbd8-8451df615d87.gif)

proposed:
![excal_auto_fill](https://user-images.githubusercontent.com/5153846/144715974-26493735-c75d-49cf-8cb3-8d12ef5ce2fb.gif)

In the proposed solution, the above shape only has 4 points (below, shown with fill set to `transparent`):

![image](https://user-images.githubusercontent.com/5153846/144716012-a3c3c1b4-9f1c-4663-a7b4-3bc0b832a695.png)

----

Will likely require a migration of old scenes so as to retain same rendering output for current drawings.
Repository: create-react-app
Issue: How Can do i fix this
Labels: needs triage


![Reactissue](https://user-images.githubusercontent.com/71170227/144719042-8232e3ca-f5f0-41d5-adc1-bbfcebf423d9.PNG)
Repository: PowerToys
Issue: Plz add "Shift Lock" to Keyboard Manager utility
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager

### Description of the new feature / enhancement

The Caps Lock in some language such as German behaves like a Shift Lock. When you activate Shift Lock, type "1" will gives you "!".

### Scenario when this would be used?

Using Shift Lock can boost typing accuracy.

### Supporting information

_No response_
Repository: go
Issue: net: Resolver.LookupSRV first result param not documented well
Labels: Documentation,help wanted,NeedsFix

https://pkg.go.dev/net#Resolver.LookupSRV has signature:

```go
func (r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error)
```

... but the docs don't make it super clear what that `string` result is.

There's a hint in the docs:

> LookupSRV constructs the DNS name to look up following RFC 2782. That is, it looks up _service._proto.name.

But that makes it sound like it's an implementation detail, not that the first result is indeed that DNS name.
Repository: next.js
Issue: PWA not working on android device.
Labels: examples

### What example does this report relate to?

progressive-web-app

### What version of Next.js are you using?

12

### What version of Node.js are you using?

14

### What browser are you using?

chrome

### What operating system are you using?

linux

### How are you deploying your application?

Vercel

### Describe the Bug

I run your progressive-web-app example, and deployed on vercel, pwa is working fine on PC, but not working on my android device, neither android chrome nor samsung internet.

Is there any known issue on android device?

Here is the link I deployed

https://pwa-test-red.vercel.app/

### Expected Behavior

install window should popup

### To Reproduce

Install progressive-web-app example and deployed to Vercel.
Repository: rust
Issue: The `NOOP_METHOD_CALL` lint fails to run if a MIR error occurs
Labels: A-lints,A-diagnostics,T-compiler,C-bug

The following code:

```rust
#![warn(noop_method_call)]

struct Board;

fn do_part1(boards: &Vec<Board>) {
    let boards = boards.clone();
    boards[0] = Board;
}
```

produces the following error:

```
error[E0596]: cannot borrow `*boards` as mutable, as it is behind a `&` reference
 --> src/lib.rs:7:5
  |
6 |     let boards = boards.clone();
  |         ------ help: consider changing this to be a mutable reference: `&mut Vec<Board>`
7 |     boards[0] = Board;
  |     ^^^^^^ `boards` is a `&` reference, so the data it refers to cannot be borrowed as mutable

For more information about this error, try `rustc --explain E0596`.
```

If we comment out `boards[0] = Board;`, then the `noop_method_call` lint will fire as expected. However, when that line *is* present, the lint never gets a chance to run, since the mutable borrow error occurs during MIR borrowchecking. Displaying the lint would help the user to resolve the problem, since the root cause is the fact that the `.clone()` call produces a `&Vec<Board>`, not a `Vec<Board>`.

Originally identified in https://github.com/rust-lang/rust/issues/91532
Repository: storybook
Issue: Way to hide some props in generated Source block
Labels: feature request,block: source

I use MDX story format with nuxt/vue2.x.
To hide some properties I use:
in *.stories.mdx:
```
  argTypes={{
    isWithinStorybook: {
      table: {
        disable: true,
      },
    },
  }}
```
and in *.vue:
```
props: {
    /**
     * Is currently run from within storybook
     * @values true, false
     * @ignore
     */
    isWithinStorybook: {
      type: Boolean,
      required: false,
      default: false,
    },
}
```

and that hides them in Docs and Canvas pages in "Props" sections, but the unwanted properties are still visible and used in the generated for this component "Source code" block - I'd like to be able to remove them from this block (since in this case they are properties not to be used outside of the storybook).

![image](https://user-images.githubusercontent.com/3919799/144726710-43d1d3be-3249-4526-871b-715d10f4efff.png)
Repository: node
Issue: v17.1.0 node resolution breaks pnpm-style symlinks
Labels: esm

### Version

v17.2.0

### Platform

Darwin <snip> 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64

### Subsystem

_No response_

### What steps will reproduce the bug?

`--experimental-specifier-resolution=node` with symlinks was working in v17.0.1 but broke in v17.1.0

Reproduction available here: https://github.com/mattfysh/resolve

Tested with multiple versions of node in docker using e.g. `docker run --rm -it --entrypoint bash node:17.1.0`

node v17.0.1 - works
node v17.1.0 - doesn't work
node v17.2.0 - doesn't work

### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior?

The node resolution algorithm continues to work with pnpm-style symlinks

### What do you see instead?

It can find the first package (a) but not it's dependency (b)

### Additional information

Possibly related to https://github.com/nodejs/node/pull/40510