sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Terminal should force pseudoconsole host into UTF-8 codepage by default
Labels: Product-Conpty,Area-TerminalConnection,Product-Terminal,Issue-Task,Priority-3

It's 2019, after all. Maybe we should introduce a flag that starts up the pseudoconsole host in codepage 65001 so that we make good on our promise of "emoji just work and everything else works like it should too," and use WT as a _real_ opportunity to push the boundaries here.

```
  🌛
💪 💪
  👖
```

<!-- fite me -->

---

_maintainer note, Aug 2023_

> It's {{current_year}}, after all

Also, we want to take into account _arbitrary_ codepages, ala #15678
Repository: go
Issue: net/http/httptrace: attaching a ClientTrace twice to the same context causes stack overflow
Labels: help wanted,NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.5 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What did you do?

```

package main

import (
	"log"
	"net/http"
	"net/http/httptrace"
)

func main() {
	tracer := &httptrace.ClientTrace{
		ConnectStart: func(network, addr string) {
			log.Println("traced")
		},
	}
	req, err := http.NewRequest("GET", "http://localhost:9999/hello", nil)
	if err != nil {
		log.Printf("error creating request %v", err)
	}

	// Adding the same trace twice causes a stack overflow.
	req = req.WithContext(httptrace.WithClientTrace(req.Context(), tracer))
	req = req.WithContext(httptrace.WithClientTrace(req.Context(), tracer))

	client := &http.Client{}
	res, err := client.Do(req)
	if err != nil {
		log.Printf("request error: %v", err)
	}
	if res != nil && res.Body != nil {
		res.Body.Close()
	}
}
```


### What did you expect to see?

"traced" gets printed twice, and then a request error because nothing is listening on localhost:9999.

### What did you see instead?

The stack overflows.

What I'm doing is silly, but it happened in production for a service due to a lot of indirection on retries and attempting to use a single tracer object for all traces.

The bug seems to be here https://github.com/golang/go/blob/b412fde53a6b53475e25aaa9e49f3c6df3c48716/src/net/http/httptrace/trace.go#L202-L204

Since `*t` and `*old` are the same, the `of.Call()` ends up calling itself.
Repository: pytorch
Issue: Error in equation
Labels: module: docs,triaged

## 📚 Documentation

Small error in the comment documenting cosine simularity. I think:

`  \text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _2, \epsilon)}.`

, should be:

`  \text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _1, \epsilon)}.`

That is, the last \Vert_2 should actually be \Vert_1
Repository: pytorch
Issue: `binary_linux_libtorch_2.7m_cu100_devtoolset3_build` times out after running for 5 hours
Labels: module: build,triaged,better-engineering

Example build: https://circleci.com/gh/pytorch/pytorch/2133467.

CircleCI puts a hard limit of 5 hours on each build, and as a result we need to break up the `binary_linux_libtorch_2.7m_cu100_devtoolset3_build` job in order for it to finish. @pjh5 suggested that we can have one build job for each libtorch variant: https://github.com/pytorch/builder/blob/c4bc4e2f020616944399e802a7de0eea86051b8e/manywheel/build_common.sh#L120, which should allow us to work around the timeout issue.

cc. @kostmo @pjh5
Repository: react-native
Issue: Width measures of Text components using a custom font are wrong
Labels: Platform: Android,Component: Text,Contributor,Resolution: Backlog,Bug

React Native version:

```
System:
    OS: macOS 10.14.5
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 1002.17 MB / 32.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
    Yarn: 1.16.0 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    Android SDK:
      API Levels: 23, 25, 26, 27, 28
      Build Tools: 27.0.3, 28.0.2, 28.0.3, 29.0.0
      System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
      Android NDK: 17.2.4988734
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.0 => 0.60.0
```

⚠️ This is not a regression from RN 0.60, can also be reproduced in RN 0.57.

___

On Android, some manufacturers — like Samsung, OnePlus, LG, HTC, and others — let you change the default font on your device without having a rooted device, and, of course, rooted devices can also do that.

The `<Text>` component provided by React Native doesn't seem to measure the layout correctly. Observed cases were when the default font is **not** Roboto and when a thick font weight is applied.

The result is that on these specifics devices, text components with a thicker font weight will be chopped off (seems to be wrapped in some cases?). It could be a dot missing, or even an entire word.

```javascript
<Text style={{ fontWeight: 'bold' }}>
  This looks great!
</Text>
```

| Roboto (Default font) | OnePlus Slate |
| - | - |
| <img src="https://user-images.githubusercontent.com/7189823/60620134-62d98580-9da8-11e9-9d20-9a139fe77ece.png" height="500" /> | <img src="https://user-images.githubusercontent.com/7189823/60620084-42113000-9da8-11e9-844d-3bbe32a71f75.png" height="500" /> |

[Repository to reproduce this.](https://github.com/charpeni/react-native-issue-font-weight-custom-fonts)

### Workaround

To influence the layout measures of the text component, we can set a border of at least `2` on it. By doing this, the layout will be properly measured, but the text won't be vertically centered.

From there, to vertically center the text, we can subtract the double of the border we previously set as a negative `marginBottom`. (As seen in the screenshots above).
Repository: vscode
Issue: Hyper modifier is unknown
Labels: feature-request,keybindings

- VSCode Version: 1.35.1
- OS Version: Ubuntu 18.04.0 LTS

Steps to Reproduce:

1. Rebind any key to Hyper (Mod3)
2. Try to create shortcuts Hyper + Key

I bind **Caps Lock** to be working as **Hyper** modifier (**Mod3**). And wanted to use that in VS Code shortcuts. But whenever I press **Caps Lock** in "Change Keybinding" dialog it is not recognized as modifier.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled? Yes
Repository: go
Issue: cmd/compile: ineffective branch caused by defer
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?
<pre>
$ go version
go version devel +d410642 Mon Jul 1 21:30:23 2019 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes.

### What did you do?
I was testing the behavior of `defer`, so I ended up compiling the following functions (https://godbolt.org/z/uALdNA):
```go
package test

func f() {
}

func usef() {
    defer f()
}
```

### What did you expect to see?
I expected the generated assembly to not contain any unnecessary branches.

### What did you see instead?
Instead, there is a repeated block of instructions that is preceded by a condicional jump (https://godbolt.org/z/uALdNA):
```asm
        testl   AX, AX
        jne     applyf_pc83
        xchgl   AX, AX
        call    runtime.deferreturn(SB)
        movq    64(SP), BP
        addq    $72, SP
        ret
applyf_pc83:
        xchgl   AX, AX
        call    runtime.deferreturn(SB)
        movq    64(SP), BP
        addq    $72, SP
        ret
```
Repository: godot
Issue: Editor doesn't reload changed resources.
Labels: bug,topic:editor,confirmed,documentation

___

***Bugsquad edit:** This issue has been confirmed several times already. No need to confirm it further.*

___

Basically a copy of #4769, but it is still an issue.

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** v 3.1.1.stable.official
<!-- Specify commit hash if non-official. -->


**OS/device including version:** Linux Mint 19.1
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:**
The editor doesn't reload changed resources edited by ResourceSaver.

**Steps to reproduce:**
1. Create a resource and save it with ResourceSaver in script (version 1).
2. Open the resource with editor it seems everything is fine.
3. Create another different resource and save it to the same path (version 2).
4. Open the overwritten resource you can see it still be the version 1.
5. Check the resource file with other text editor, it is correct.
6. Reopen the project and open the resource file, it will show version 2
Repository: youtube-dl
Issue: Site support request: downloads.khinsider.com
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.07.02. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.07.02**
- [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
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Playlist: https://downloads.khinsider.com/game-soundtracks/album/sonic-robo-blast-2-ost


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
Repository: go
Issue: cmd/go: print an incomplete go mod graph even if an error occurs
Labels: NeedsInvestigation,GoCommand,modules

`go mod graph` is an invaluable tool for debugging module problems. It allows us to see problems deep into our transitive dependencies. However, it completely falls over if there is a single issue somewhere in the graph, and if that issue is not at the root module it's quite hard to debug transitive dependency problems.

Consider, for example:

```
$ go mod graph
go: finding github.com/kr/pty v1.1.7
go: github.com/kr/pty@v1.1.7: unknown revision v1.1.7
go: error loading module requirements
$
```

It would be ideal if the `go mod graph` command traversed and printed as much of the graph as possible, and indicated which nodes were problematic. For example:

```
$ go mod graph
A B
B C
C github.com/kr/pty@v1.1.7--ERROR
go: github.com/kr/pty@v1.1.7: unknown revision v1.1.7
go: error loading module requirements
```

(last two lines are STDERR, first three are STDOUT)
Repository: kubernetes
Issue: Dummy OpenAPI types generated from metav1.Fields
Labels: kind/bug,sig/api-machinery,lifecycle/frozen

/kind bug
/sig api-machinery
/wg server-apply

this should probably be an issue in the openapi generator [kubernetes/kube-openapi](https://github.com/kubernetes/kube-openapi). the swagger docs doesn't properly represent the openapi schema for `metav1.Fields`:

```json
    "io.k8s.apimachinery.pkg.apis.meta.v1.Fields": {
      "description": "Fields stores a set of fields in a data structure like a Trie. To understand how this is used, see: https://github.com/kubernetes-sigs/structured-merge-diff",
      "type": "object"
    },
```

the correct form should probably make use of `additionalProperties` to mark the value type:

```json
    "io.k8s.apimachinery.pkg.apis.meta.v1.Fields": {
      "description": "Fields stores a set of fields in a data structure like a Trie. To understand how this is used, see: https://github.com/kubernetes-sigs/structured-merge-diff",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Fields"
      }
    },
```

/cc @jennybuckley @apelisse 
/cc @sttts @roycaihw
Repository: pytorch
Issue: Know which function is used by conv and force to use a function
Labels: module: nn,module: convolution,triaged

I've been pointed to this line
https://github.com/pytorch/pytorch/blob/12528990f8c56deb7ce1c699e6da63d82c115968/aten/src/ATen/native/Convolution.cpp#L526

where we can see which choices we have when we call a convolution. However I am wondering if there is a way to actually know which function has been called. Concretely I'd like to know if I am actually using NNPack. (For context, I am trying to have fast conv layers on Raspberry Pi and installed Pytorch 1.1.0, default functions are very very slow.)

Thanks



## ❓ Questions and Help

### Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum:

- [Discussion Forum](https://discuss.pytorch.org/)
Repository: pytorch
Issue: libtorch new op
Labels: module: docs,module: cpp,triaged,module: custom-operators

hi, in my project I use libtorch.and there is an operation that libtorch does not support. and I want to 
implement the operation myself. and I search the document,I have not found any help. I just want to implement the forward pass, and backward pass. does there is some document, that help me add an new op for libtorch.
Repository: rust
Issue: slice::contains with borrowed data
Labels: T-libs-api,C-feature-request

`HashSet::contains` has the following type to allow e.g. searching in a `HashSet<String>` with an `&str`:
```rust
pub fn contains<Q: ?Sized>(&self, value: &Q) -> bool where
    T: Borrow<Q>,
    Q: Hash + Eq, 
```

However, `slice::contains` does not use `Borrow`, so to search in an `&[String]` one has to actually allocate a `String`:
```rust
pub fn contains(&self, x: &T) -> bool where
    T: PartialEq<T>, 
```

Is there a fundamental reason for this, or is this just an omission?
Repository: go
Issue: x/text/unicode/runenames: allow search of rune by name
Labels: NeedsInvestigation,FeatureRequest

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.6 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes?

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/miki/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/miki/go"
GOPROXY="https://proxy.golang.org"
GORACE=""
GOROOT="/opt/go"
GOTMPDIR=""
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build030318607=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

`x/text/unicode/runenames` provides a way to lookup rune name, I'd like to do the opposite and look for a rune by it's name.

### What did you expect to see?

A `Rune(name string) (rune, error)` function

### What did you see instead?

Nothing :)
Repository: godot
Issue: Webcam (PS3 Eye) causes mic input to spew WASAPI: unsupported channel count in microphone
Labels: bug,topic:core,confirmed,topic:audio

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** 3.1.1.stable.official, 3.2.dev.calinou.ce8e54133
<!-- Specify commit hash if non-official. -->

**OS/device including version:** Windows 10 Pro 1809
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:** With a PS3 Eye camera connected using libusb drivers, running any Godot program which uses mic input spews this error message:

```
ERROR: thread_func: WASAPI: unsupported channel count in microphone!
   At: drivers/wasapi/audio_driver_wasapi.cpp:715
```
<!-- What happened, and what was expected. -->


**Steps to reproduce:**
1. Plug in a PS3 Eye camera
2. Run the MicRecord demo
3. Click Record
4. Click Stop

**Minimal reproduction project:** MicRecord demo
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: flutter
Issue: ProxyValidator does not parse NO_PROXY correctly when looking for hosts
Labels: tool,t: flutter doctor,a: quality,P2,team-tool,triaged-tool

## Use case
`flutter doctor` was unable to detect the problem when I wrote `localhost;127.0.0.1` in `NO_PROXY`, note the semicolon instead of comma.


## Proposal
As there is no standard way of delimiting values in environment variables (for example, on Windows, `;` is usually used), clear instructions should be given about setting `NO_PROXY`.
Repository: TypeScript
Issue: Object.freeze after object creation doesn't error
Labels: Docs,PursuitFellowship

**TypeScript Version:**  3.5.1

**Search Terms:** Object.freeze, freeze, freezing, properties, object, objects, property

**Code**

```ts
const a = Object.freeze({a: 0});
a.a = 1; // Error: Cannot assign read-only property

const b = {b: 0};
Object.freeze(b);
b.b = 1; // No error?

const c = {c: {d: 0}};
Object.freeze(c.c);
c.c.d = 1; // No error?
```

**Expected behavior:**

`Cannot assign read-only property` errors for the two lines with "No error?" above.

**Actual behavior:**

No errors

**Playground Link:** https://www.typescriptlang.org/play/?removeComments=true#code/MYewdgzgLgBAhjAvDA8gIwFYFNhQHQBmATllgF5YAUA3nAFwwAMAvgJQDcAUHHgsgIzsYAemEwAokSIgiDAMJwwYELDgQIASwDmYGCTgATALTgANgE8YAB2lWsRKOc6dQkWGiQxqaBiy7psXEIScio0Dk40PA8BIVEYADkQGHtpIgB+Z1doGGBPamAGagNfZmZ-TBx8YlIKSmA8YAiGhoNPQRExJJSpGXSgA
Repository: kubernetes
Issue: Adaptive retry-after interval on rate limiting to prevent request overload
Labels: kind/bug,priority/important-soon,area/apiserver,sig/api-machinery,kind/feature,lifecycle/frozen

<!-- Please only use this template for submitting enhancement requests -->

**What would you like to be added**:
In our  cluster (1K Nodes/1W Pods), we found that a large number of logs with a return code of 429 will appear for a long time when kube-apiserver is started:

`I0704 17:28:00.800884 227416 maxinflight.go:111] GET /api/v1/services?resourceVersion=0: (7.054μs) 429 [[kubelet/7bff6911345 (linux/amd64) kubernetes/801b699] 10.10.10.10:41957]
`
In turn, the service will be unavailable for a long time, and such an error is more likely to occur in a large cluster.

The reason for this problem is that all clients need to re-list&watch when restarting, which causes the concurrent requests to be too many. After the flow control limit is exceeded, the _**429**_ response code is returned. At the same time, add Retry-After in the response header to tell client 1s and try again(FYI:https://github.com/kubernetes/kubernetes/blob/7bbc130f5e2f99e5d29dbb58e163c405cf6cef32/staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go#L37), but 1s obviously can not meet all the circumstances, which caused long-term overload of APIServer.

**Why is this needed**:

This is a very dangerous risk for the user, we need an adaptive flow control algorithm to deal with this problem.Just like **TODO** in the comment: _maybe make this dynamic? or user-adjustable?_

I think we need to raise its priority and solve it.

/area apiserver
/kind bug
/priority important-soon
/assign
Repository: rust
Issue: Trait resolution fails with unclear error when using function types as input parameters
Labels: C-enhancement,A-diagnostics,A-trait-system,T-compiler,A-suggestion-diagnostics,D-newcomer-roadblock

This works ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e0fd0844e20c87b6e28c8e246aad154c)):

```rust
trait Call<F> {
    type Ret;
    fn call(self, f: F) -> Self::Ret;
}

impl Call<f32> for f32 {
    type Ret = f32;
    fn call(self, f: f32) -> Self::Ret {
        f
    }
}
impl Call<i32> for f32 {
    type Ret = i32;
    fn call(self, f: i32) -> Self::Ret {
        f
    }
}

fn main() {
    let _ = (0_f32).call(0_i32);
}

```

but this fails ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb1c03e73ae9b722fb8af8b8f60482cb)):

```rust
trait Call<F> {
    type Ret;
    fn call(self, f: F) -> Self::Ret;
}

impl Call<fn(f32) -> f32> for f32 {
    type Ret = f32;
    fn call(self, f: fn(f32) -> f32) -> Self::Ret {
        f(self)
    }
}
impl Call<fn(f32) -> i32> for f32 {
    type Ret = i32;
    fn call(self, f: fn(f32) -> i32) -> Self::Ret {
        f(self)
    }
}

fn main() {
    fn u0(x: f32) -> f32 {
        x
    }
    let _ = (0_f32).call(u0);
}

```

with

```
error[E0277]: the trait bound `f32: Call<fn(f32) -> f32 {main::u0}>` is not satisfied
  --> src/main.rs:23:21
   |
23 |     let _ = (0_f32).call(u0);
   |                     ^^^^ the trait `Call<fn(f32) -> f32 {main::u0}>` is not implemented for `f32`
   |
   = help: the following implementations were found:
             <f32 as Call<fn(f32) -> f32>>
             <f32 as Call<fn(f32) -> i32>>

error: aborting due to previous error
```

I'm not sure if this is by design or not (AFAICT the trait bound is satisfied - EDIT: it is by design, see below), but the error message could be at least much clearer.