sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: runtime/pprof: TestCPUProfileMultithreadMagnitude failures
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
post <- pkg == "runtime/pprof" && test == "TestCPUProfileMultithreadMagnitude"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/49340927128c06267bcf279b6f19b95a1aa6ba05)):

    --- FAIL: TestCPUProfileMultithreadMagnitude (1.02s)
        pprof_test.go:123: Running on Linux 4.18.0
        --- FAIL: TestCPUProfileMultithreadMagnitude/serial (0.54s)
            pprof_test.go:189: Running with 1 workers
            pprof_test.go:524: total 19 CPU profile samples collected:
                7: 0x1758ec (runtime/pprof.cpuHog0:61 runtime/pprof.cpuHog1:55) 0x175839 (runtime/pprof.cpuHogger:41) 0x176b1b (runtime/pprof.TestCPUProfileMultithreadMagnitude.func3.1.1.1:202) labels: map[]
    
                6: 0x85b40 (runtime.asyncPreempt:7) 0x1758eb (runtime/pprof.cpuHog0:60 runtime/pprof.cpuHog1:55) 0x175839 (runtime/pprof.cpuHogger:41) 0x176b1b (runtime/pprof.TestCPUProfileMultithreadMagnitude.func3.1.1.1:202) labels: map[]
    
                3: 0x85b40 (runtime.asyncPreempt:7) 0x1758f9 (runtime/pprof.cpuHog0:62 runtime/pprof.cpuHog1:55) 0x175839 (runtime/pprof.cpuHogger:41) 0x176b1b (runtime/pprof.TestCPUProfileMultithreadMagnitude.func3.1.1.1:202) labels: map[]
    
                3: 0x1758fa (runtime/pprof.cpuHog0:64 runtime/pprof.cpuHog1:55) 0x175839 (runtime/pprof.cpuHogger:41) 0x176b1b (runtime/pprof.TestCPUProfileMultithreadMagnitude.func3.1.1.1:202) labels: map[]
    
            pprof_test.go:595: runtime/pprof.cpuHog1: 19
            pprof_test.go:226: compare 90.268ms vs 190ms
            pprof_test.go:228: compare got CPU usage reports are too different (limit -40.0%, got -52.5%) want nil
        pprof_test.go:126: Failure of this test may indicate that your system suffers from a known Linux kernel bug fixed on newer kernels. See https://golang.org/issue/49065.


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: flutter
Issue: Give `StreamBuilder` ability to be lossless
Labels: framework,c: proposal,P3,team-framework,triaged-framework

The documentation for `StreamBuilder` clearly states that the `builder` isn't called 1-to-1 with the `Stream` and that its intention is to just display the latest snapshot.  However that doesn't stop people from assuming that it is 1-to-1 as evidenced in the StackOverflow answer here: https://stackoverflow.com/questions/64167602/create-list-view-with-stream-builder?newreg=44e616311fef471588b8f25184be3a6a.

I suspect the name of the class and its signature communicates that it may behave different than it does.  A more proper name may have been `LatestSnapshotBuilder`.  The punishment for using the API incorrectly is too high in this case.  Imagine shipping a product that behaves correctly on your internet then a user that has a fast internet connection uses it and data is missing from the list.

Since the fail case is so dire I think we should have an escape valve in the API design, a `bool` that guarantees that `StreamBuilder` calls the builder 1-to-1 with the stream events.  We could rename the class but that would probably be too disruptive.

Proposed API:
```dart
  const StreamBuilder({
    super.key,
    this.initialData,
    super.stream,
    required this.builder,
    bool isLossless = false,  // <-- new parameter
  });
```
Repository: flutter
Issue: Disable the input action button in the virtual keyboard when TextField is empty
Labels: a: text input,c: new feature,platform-ios,framework,c: proposal,P3,team-ios,triaged-ios

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

I'd like to disable the search button in the virtual keyboard when the TextField is empty:

<img src="https://user-images.githubusercontent.com/19899190/191801593-6520d524-cd29-4afc-8632-fa5748764ca5.png" width="300">

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

On iOS, this can be implemented via [enablesReturnKeyAutomatically](https://developer.apple.com/documentation/uikit/uitextinputtraits/1624432-enablesreturnkeyautomatically?language=objc).
Repository: storybook
Issue: "value" is mixed when migrate CSF
Labels: bug,needs triage

**Describe the bug**
After running the CSF migration command below,the xxxx.stories.tsx file has mixed "values".  
I investigated the reproducibility,and it seems that it happens when writing the `prettier-plugin-tailwindcss` plugin in prettier.config.js.

```zsh
npx sb@next migrate csf-2-to-3 --glob="**/*.stories.tsx"  
```

**To Reproduce**

The Reproduced repository is below.
https://github.com/yogarasu/test-migrate-csf


**System**

```
Environment Info:

  System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 18.9.0 - ~/.volta/tools/image/node/18.9.0/bin/node
    Yarn: 3.2.1 - ~/.volta/tools/image/yarn/1.22.18/bin/yarn
    npm: 8.19.1 - ~/.volta/tools/image/npm/8.19.1/bin/npm
  npmPackages:
    @storybook/addon-actions: ^6.5.12 => 6.5.12 
    @storybook/addon-docs: ^6.5.12 => 6.5.12 
    @storybook/addon-essentials: ^6.5.12 => 6.5.12 
    @storybook/addon-interactions: ^6.5.12 => 6.5.12 
    @storybook/addon-links: ^6.5.12 => 6.5.12 
    @storybook/builder-webpack4: ^6.5.12 => 6.5.12 
    @storybook/manager-webpack4: ^6.5.12 => 6.5.12 
    @storybook/react: ^6.5.12 => 6.5.12 
    @storybook/testing-library: ^0.0.13 => 0.0.13 
```

**Additional context**

I think the cause is in the plugin, but I don't know the details, so I created an issue just in case.
Repository: pytorch
Issue: `max_pool2d_with_indices(self, ...)` shouldn't need to save `self` for backward
Labels: module: autograd,triaged

## Issue description

`max_pool2d_with_indices(self, ...)` saves self for backward: https://github.com/pytorch/pytorch/blob/bcf93181a0ca5db75bd038db0d5f7e4cee733db7/tools/autograd/derivatives.yaml#L2208-L2209 .

It shouldn't be necessary to save the storage of self for backward. max_pool2d is an operation that takes a big tensor and select elements from it; the backward pass should just involve taking the grad_output and the indices and scattering it to a big tensor.


cc @ezyang @albanD @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: flutter
Issue: SemanticsActions need to be associated with a view
Labels: c: new feature,framework,engine,P3,a: multi window,team-engine,triaged-engine

SemanticsActions dispatched to the framework via the `PlatformDispatcher.onSemanticsAction` callback need to be associated with a view id in which the node the SemanticsAction needs to be performed on is located in.

Instead of extending the arguments list of `onSemanticsAction` by yet another argument, I suggest replacing `onSemanticsAction` with `onSemanticsActionEvent` which takes a SemanticsActionEvent object containing all arguments currently passed to `onSemanticsAction` + the view id.

Once the framework has been migrated to `onSemanticsActionEvent`, `onSemanticsAction` can be removed.
Repository: flutter
Issue: Add ability to run performance benchmarks on engine PR
Labels: c: new feature,engine,P3,team-engine,triaged-engine

We should add and document the ability to run the full gamut of performance benchmarks on an engine PR.

This came up when I created a potential performance improving PR that works indiscriminately across the whole codebase (https://github.com/flutter/engine/pull/36221/files).  We'd like to see the results of benchmark testing before landing it since its benefit is complicated by optimizations the compiler can take.

I talked with @dnfield and @christopherfujino and it sounds like there may be something close to this available where it is launched with `led`, but it may need to be cleaned up and documented.
Repository: flutter
Issue: [file_selector_windows] Migrate CPP implementation to Dart.
Labels: platform-windows,package,c: proposal,a: desktop,P3,p: file_selector,team-windows,triaged-windows

## Use case
The current file_selector_windows implementation has native code developed utilizing CPP. To expand the use of Dart, it would be nice to migrate the package to Dart using [Win32](https://pub.dev/packages/win32).

## Proposal

Rewrite the whole package, including tests and examples, using Dart and [Win32](https://pub.dev/packages/win32).
Repository: go
Issue: build: support emscripten compiler for cgo on wasm
Labels: NeedsInvestigation,arch-wasm

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

Hi there!
In reference to https://github.com/golang/go/issues/40543
> > is cgo will support for wasm in future?
>
> very unlikely as you would need a C to wasm compiler for you C dependencies.
> 
> I'm going to close this question as answered based on the answer from @randall77 above.

After a while of googling I found that `C to wasm compiler` already exists: https://emscripten.org/index.html

Is it possible to make CGO support webgl build target and allow to specify compiler e.g. with CC="..." and CXX="..." ?
Repository: go
Issue: x/website/_content/blog: defaulting to system theme
Labels: NeedsInvestigation

It looks like the Go blog now follows the system setting for dark or light mode. For blog posts that include diagrams, this means we have images with light backgrounds that really stand out against the dark page background, and in some cases have transparent backgrounds that break entirely. This might be one section of the site where it makes sense to keep the light theme by default; just wanted to raise this issue in case this behavior was not intended.

As an example, here's a screenshot of last year's survey results, which assumed a light theme: 
<img width="877" alt="image" src="https://user-images.githubusercontent.com/5544445/191835758-3dbad3b6-49f4-48ce-ad66-bc1b28888dcf.png">
Repository: godot
Issue: Window mouse hover doesn't work if window not focused / foreground
Labels: bug,topic:editor,usability,topic:gui

### Godot version

4.0.beta1

### System information

Windows 10

### Issue description

Mouse hover doesn't work on editor windows unless they are focused / in the foreground.

At least on Windows, mouse hover works on unfocused windows of all other applications in my quick testing (various browsers, explorer etc).


### Steps to reproduce

1. Start Godot editor
2. Select another window
3. Hover over the Godot editor window, observe hover input isn't triggered

### Minimal reproduction project

_No response_
Repository: realworld
Issue: [Feature Request]: SVG icon
Labels: hacktoberfest

### Relevant Scope

Frontend specs

### Description

I've see that in the [media](https://github.com/gothinkster/realworld/tree/main/media) directory are several sizes of the Real World icon, but are there any SVG?

### Describe the solution you'd like

A SVG icon version

### Describe alternatives you've considered

🤷🏽‍♂️
Repository: youtube-dl
Issue: Subtitle support for RTVE
Labels: 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 2021.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->
[I was told](https://github.com/ytdl-org/youtube-dl/issues/30148#issuecomment-1183048646) that I should create an issue for this so here it is:
youtube-dl generally seem to support downloading subtitles for videos as well so I guess that it would be nice if it would be possible to [fetch/embed the subtitles for RTVE as well](https://forum.videohelp.com/threads/380455-Downloading-subtitles-from-rtve-es). It seems that there was once [another Python script](https://github.com/tanty/rtve-subtitles) for this.

**PS:** Currently RTVE support is broken anyway but once [this PR](https://github.com/ytdl-org/youtube-dl/pull/31241) (or [this](https://github.com/ytdl-org/youtube-dl/pull/29818)? or [this](https://github.com/ytdl-org/youtube-dl/pull/29816)?) is merged it will probably work again, I guess (see also [this issue](https://github.com/ytdl-org/youtube-dl/issues/29613), [this issue](https://github.com/yt-dlp/yt-dlp/issues/3325) and [this issue](https://github.com/ytdl-org/youtube-dl/issues/29522))?
Repository: pytorch
Issue: Execute smoke test for Better Transformer feature 
Labels: module: ci,triaged

### 🚀 The feature, motivation and pitch

Run the smoke test with the RC binary (available on September 31) on A100 machines.


### Alternatives

_No response_

### Additional context

_No response_

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: TypeScript
Issue: Generics inferrence/inheritance for wrapper functions
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

generics infer

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).

## ⭐ Suggestion

> ⚠ I've been trying to search on this topic and unfortunately, a lot of the related discussions seem either old or not covering exactly the use case I had in mind. If there is already another issue tracking this, I apologize in advance.

Wrapper functions are pretty common to extend 3rd party APIs, and in some cases, you need to wrap functions that also contain generics.

Based on my research, the only way to extend those generics to that function is to "copy/paste" them into your wrapper's generic which can cause maintainability issues and add a lot of extra code.

## 📃 Motivating Example

I created this basic example that shows the current way wrapping a function can be done (as far as I am aware copy/paste is the only option):

https://tsplay.dev/m0AZrW

Based on this example, my questions would be:

 - Is there a way to infer the generic definition from `MyPropsFunc` to `MyPropsFuncWrapper` so we don't have to copy/paste it?

Something like:

`type MyPropsFuncWrapper<P infer MyPropsFunc> = (customProp: string, myPropsFuncImpl: MyPropsFunc<P>) => MyPropsFunc<P>`

- Alternatively, is there a way to specify the generic types (inline) on the `myPropsFuncImpl` callback function instead?

Something like:

```ts
type MyPropsFuncWrapper = (customProp: string, myPropsFuncImpl: MyPropsFunc) => MyPropsFunc
const myPropsFuncWrapperImpl: MyPropsFuncWrapper = (customProp, myPropsFuncImpl) => ...
const myPropsFuncImplWrapper = myPropsFuncWrapperImpl('my custom prop', <{ newProp: string }>(myProps) => { ...
```

I don't think it's possible but if it would be, it could also be an alternative solution for wrappers.

## 💻 Use Cases

I am sure there are many use cases, but one example would be Next.js' `getServerSideProps` function where you might want to automatically inject some elements using a wrapper function to avoid a lot of boilerplate code.
Repository: go
Issue: x/sys/windows: add GetConsoleWindow and ShowWindow functions
Labels: NeedsInvestigation,FeatureRequest,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.19.1 windows/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
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\REDACTED\AppData\Local\go-build
set GOENV=C:\Users\REDACTED\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\REDACTED\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\REDACTED\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.19.1
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\REDACTED\Documents\Go\isgame\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\REDACTED\AppData\Local\Temp\go-build2727472867=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?
https://go.dev/play/p/xw8vr2kFP-p
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->



### What did you expect to see?
Please may the [GetConsoleWindow](https://learn.microsoft.com/en-us/windows/console/getconsolewindow)  and [ShowWindow](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow) functions be added to the Golang [windows](https://pkg.go.dev/golang.org/x/sys/windows) package?


### What did you see instead?
The [GetConsoleWindow](https://learn.microsoft.com/en-us/windows/console/getconsolewindow)  and [ShowWindow](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow) functions aren't currently functions of the Golang [windows](https://pkg.go.dev/golang.org/x/sys/windows) package.
Repository: go
Issue: x/build: have darwin/arm64 builders on macOS 13 (Ventura)
Labels: OS-Darwin,Builders,NeedsInvestigation,new-builder,arch-arm64

Apple announced macOS 13 Ventura during WWDC 2022 earlier in the year. Its [preview page](https://www.apple.com/macos/macos-ventura-preview/) currently says "Coming this October", which is coming up. This is the tracking issue for a builder that provides coverage for it.

For arm64 specifically, I expect we can take out some of the existing macOS 11-12 builders from their pool and update them to test with 13.

CC @golang/release, @golang/darwin.
Repository: go
Issue: archive/tar, archive/zip: add ErrInsecurePath
Labels: Security,Proposal,Proposal-Accepted

This is an alternative fix for #25849, as proposed by @dsnet in https://github.com/golang/go/issues/25849#issuecomment-396685881.

The `archive/tar` and `archive/zip` readers return unsanitized paths from archives. Careless use of these paths leads to path traversal attacks.

* [CVE-2018-25046](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-25046)
* [CVE-2020-36560](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36560)
* [CVE-2020-36561](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36561)
* [CVE-2021-21272](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21272)
* [CVE-2020-36566](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36566)
* Probably a bunch more.

Proposal:

An insecure filename is an absolute path, or a path containing a relative path component (`../`).
When `tar.Reader.Next` reads a file with an insecure filename, it returns `tar.ErrInsecurePath`.
When `zip.NewReader` opens an archive containing an insecure filename, it returns `zip.ErrInsecurePath`.
In both cases, the function also returns a usable object (a `*tar.Header` or `*zip.Reader`).

In the case where the caller wants to handle archives with insecure filenames, they may ignore the `ErrInsecurePath` error and perform whatever sanitization they find appropriate. If the caller takes no action, they get an error when processing an unsafe archive.

The advantage over automatically sanitizing filenames is that we don't silently change the semantics of archives. A tar archive may legitimately contain absolute path names; silently converting these to relative names seems more surprising than reporting an error. In addition, there isn't always an obvious sanitized name--we probably want to reject the name `COM1` on Windows, but what would we rewrite it into?
Repository: pytorch
Issue: Measure impact of JIT decompositions, reconsider the design
Labels: oncall: jit

We landed https://github.com/pytorch/pytorch/pull/84976. What it does is:
- We have some decompositions written in Python.
- We want to use them from C++, in subsystems like forward-mode AD.
- The design we have is to TorchScript the Python so that it is callable from C++.

Unfortunately this has been causing some problems:
- TorchScript doesn't work with Python 3.11 so this blocks the Python 3.11 binaries (https://github.com/pytorch/pytorch/pull/85509#pullrequestreview-1117733698)
- flaky onnx failures might be related? https://github.com/pytorch/pytorch/issues/85445
- We are unsure of how much this adds to the startup time of `import torch`. Distributed folks may be sensitive to that.

Alternatively, it would not be too difficult to directly call the Python (from C++) instead of relying on TorchScript to shepherd the code through. This may be a better design in the long-term, the question is, should we do anything about this issue in the short term.

cc @soulitzer @malfet