sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: `ctc_loss` will backward crash
Labels: module: autograd,triaged,module: edge cases

### 🐛 Describe the bug

`ctc_loss` will backward crash

First, it will succeed in the forward pass

```python
import torch

log_probs = torch.rand([50, 16, 20], dtype=torch.float32).requires_grad_()
targets = torch.randint(-2, 2, [16, 30], dtype=torch.int64)
input_lengths = torch.randint(-4, 1, [16], dtype=torch.int64)
target_lengths = torch.randint(-4, 4, [16], dtype=torch.int64)
blank = 0
reduction = "mean"
zero_infinity = False
res = torch.nn.functional.ctc_loss(log_probs, targets, input_lengths, target_lengths, blank=blank, reduction=reduction, zero_infinity=zero_infinity, )
# succeed
```

But it will crash when backwarding
```python
res.sum().backward()
# Segmentation fault (core dumped)
```

### Versions

pytorch: 1.11.0
Ubuntu: 20.04
Python: 3.9.5

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: pytorch
Issue: `pack_sequence` crash
Labels: triaged,module: edge cases

### 🐛 Describe the bug

`pack_sequence` crash

```python
import torch
sequences_0 = torch.rand([1, 16, 86], dtype=torch.float32)
sequences_1 = torch.rand([1, 85, 0], dtype=torch.float16)
sequences_2 = torch.randint(0, 2, [2, 84, 85], dtype=torch.bool)
sequences_3 = torch.randint(-8, 2, [0, 4, 85], dtype=torch.int8)
sequences = [sequences_0,sequences_1,sequences_2,sequences_3,]
enforce_sorted = 0
torch.nn.utils.rnn.pack_sequence(sequences, enforce_sorted=enforce_sorted, )
# Segmentation fault (core dumped)
```

### Versions

pytorch: 1.11.0
Repository: angular
Issue: Describe evergreen Update using tools like renovate
Labels: P4,area: docs

### Description

Often companies want to be able to have an evergreen environment with up-to-date dependencies to be able to fix issues and vulnerability ideally automatically by running update autonomous or at least providing automatic pull requests for such updates.

One very common tool for such update is [renovate](https://www.whitesourcesoftware.com/free-developer-tools/renovate/).

To help users setting up such tools, the angular docs should describe the steps needed/the commands to be executed to target such goal.

have a look at the related renovate issue/PR:

https://github.com/renovatebot/renovate/issues/4256
https://github.com/renovatebot/renovate/pull/7632

General steps:

- update and bundle all angular-related dependencies in the package.json/ lockfile
- install the dependencies
- execute migrations afterwards

 Example using renovate:

```json
{
  "postUpgradeTasks": {
    "commands": [
      "npm ci --ignore-scripts",
      "npx ng update {{{depName}}} --from={{{fromVersion}}} --to={{{toVersion}}} --migrateOnly --allowDirty --force"
    ],
    "fileFilters": ["**/**"]
  }
}
```


### What is the affected URL?

https://angular.io/cli/update

### Please provide the steps to reproduce the issue

_No response_

### Please provide the expected behavior vs the actual behavior you encountered

Evergreen updates execution process using automation tools is described 

### Please provide a screenshot if possible

_No response_

### Please provide the exception or error you saw

_No response_

### Is this a browser-specific issue? If so, please specify the device, browser, and version.

_No response_
Repository: ant-design
Issue: [New Component Request] The Contrast Component
Labels: ☘️ New Component,Inactive

### What problem does this feature solve?

A new component: contrast component.
We use the contrast component to compare some similar products or candidates.

I drew a diagram, it might look like this:

![contrast](https://user-images.githubusercontent.com/26793777/169943170-ed99bf42-d9fd-445c-9d6a-e63387e4ce51.png)


### What does the proposed API look like?

`<Contrast dataSource={} />`

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: `override` keyword not honored for methods of `Object` on classes with no `extends`, `Object` `super` members missing
Labels: Suggestion,Awaiting More Feedback

# Bug Report

All classes without an `extends` clause implicitly extend from `Object`. However the `override` keyword does not work when overriding members of `Object`, and I believe it should for consistency, semantics, and display of developer intent.


![image](https://user-images.githubusercontent.com/297678/169943969-67b6b638-a38f-4eeb-a412-18daf1be84fa.png)

Furthermore, TypeScript chooses to hide `super` members of `Object`, and the following valid JavaScript has an unexpected type error:

```js
class Foo {
  toString() {
      return super.toString() + ' ' + 123 // Error: 'super' can only be referenced in a derived class. (2335)
  }
}

new Foo().toString() // This works just fine in JavaScript.
```

The class is implicitly derived (from `Object`), and `super.toString` exists.

### 🔎 Search Terms


### 🕗 Version & Regression Information


I don't think it ever worked?

### ⏯ Playground Link


[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYGwhgzhAEBiD29oG8BQ1rwG4FMBOeAlgCY7QAu8AyuUQHYDmAFAJQrQD0H0AKgBaEYAWxxCARvmjAwdOvHLQ+YXNBnQA5NnxFS66EPjFCAM0KSJ0gK4QyhcjGDw65MITpuGU8FA0J4e4ngcGDkFHAAPchw6YlVQvklQSAgAOnQMDLwccks8OmgAIjFwPgL0gF9UStQ6HAB3OERWFMoaemYWIA)

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYGwhgzhAEBiD29oG8BQ1oBd4GVMCcBLAOwHMAKAShXQzvwFNMBXfY6CZgBwfwDpseImSrQA1NADkU8dACMAJgDM0APSroAUXz54+AFxTOPfNOBh28YiACe0AEYNojAGa8GxYAwAm0EtDBob15CADcfaFBICD5ocmUlAFZKWgBfVHTUYgYAdzhEKgFcAhIKanVoABUAC0IYHL0AaxgAK2YITGgXEid-ACkwULAcYCIuTD4gA)



### 🙁 Actual behavior

No type information is present for inherited `Object` members inside a class without `extends`. 

Possibly related: even on any plain object like a POJO, intellisense in VS Code does not show helpful autocompletion for `Object` members.

### 🙂 Expected behavior

It should show the full picture, because it is valid JavaScript.
Repository: pytorch
Issue: [Optimizer Overlap] Custom optimizer registration
Labels: oncall: distributed,triaged,module: ddp

### 🚀 The feature, motivation and pitch

Currently, DDP optimizer overlap only supports a subset of commonly used torch.optim.Optimizers. However, torchrec has the use case of using their own custom implemented optimizers, so we should add support for a registry + API to add to this registry to allow users to register their own custom optimizers to be overlapped with DDP.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501
Repository: rust
Issue: #[derive(Debug)] fails when a generic parameter shares the name of the generic type
Labels: A-macros,T-compiler,C-bug,T-libs

<!--
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:

```rust
#[derive(Debug)]
pub struct Irrelevant<Irrelevant> {
    irrelevant: Irrelevant,
}
```

I expected to see this happen:
Code should compile normally as expected, with a correct `fmt::Debug` implementation. Omitting the derive shows that rustc accepts this as valid and intelligible code. We know that rustc is interpreting the type of `irrelevant` as the type parameter and not the parent struct, as the latter would produce an error since it would produce a recursive type with infinite size which would cause an error. As rustc defines the rust language, the derive macro should also handle this code correctly.

Instead, this happened:
Compilation errors with the following diagnostic:
```
error[E0574]: expected struct, variant or union type, found type parameter `Irrelevant`
 --> main.rs:3:10
  |
3 | #[derive(Debug)]
  |          ^^^^^ not a struct, variant or union type
  |
  = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0109]: type arguments are not allowed for this type
 --> main.rs:4:23
  |
3 | #[derive(Debug)]
  |          ----- in this derive macro expansion
4 | pub struct Irrelevant<Irrelevant> {
  |                       ^^^^^^^^^^ type argument not allowed
  |
  = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

I tested this and got the same result on the following versions:
```
rustc 1.61.0 (fe5b13d68 2022-05-18)
binary: rustc
commit-hash: fe5b13d681f25ee6474be29d748c65adcd91f69e
commit-date: 2022-05-18
host: x86_64-unknown-linux-gnu
release: 1.61.0
LLVM version: 14.0.0
```
```
rustc 1.63.0-nightly (ee160f2f5 2022-05-23)
binary: rustc
commit-hash: ee160f2f5e73b6f5954bc33f059c316d9e8582c4
commit-date: 2022-05-23
host: x86_64-unknown-linux-gnu
release: 1.63.0-nightly
LLVM version: 14.0.4
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: pytorch
Issue: [Optimizer Overlap] Parameter group support
Labels: oncall: distributed,triaged,module: ddp

### 🚀 The feature, motivation and pitch

We should investigate and fix any missing gaps with parameter group support in DDP's support for overlapped optimizers. Currently, we do not have unittests for optimizer overlap with parameter groups. 

We probably will scope this to only specifying parameter groups at construction time and not support `add_param_group` API. The reason is that these functional optimizers are supposed to be mostly transparent to user; user does not directly construct or access them and they work through DDP communication hook internals.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501
Repository: flutter
Issue: Class does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView
Labels: c: crash,platform-android,engine,d: api docs,a: platform-views,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-android,triaged-android

I have this compile error after following the guide in https://docs.flutter.dev/development/platform-integration/platform-views

I have tried using Flutter v3.0.1 and v2.13.0-0.4.pre to test but still the same error.

Error is shown that:
> e: C:\Users\wongc\Documents\Agmo_Studio_Project\ble_poc\android\app\src\main\kotlin\com\example\ble_poc\MapViewFactory.kt: (9, 1): Class 'MapViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
e: C:\Users\wongc\Documents\Agmo_Studio_Project\ble_poc\android\app\src\main\kotlin\com\example\ble_poc\MapViewFactory.kt: (10, 5): 'create' overrides nothing

**MainActivity.kt**
```
package com.example.ble_poc

import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine

class MainActivity : FlutterActivity() {
    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        flutterEngine
                .platformViewsController
                .registry
                .registerViewFactory("mappedin", MapViewFactory())
    }
}
```

**MapView.kt**
```
package com.example.ble_poc

import android.content.Context
import android.graphics.Color
import android.view.View
import android.widget.TextView
import io.flutter.plugin.platform.PlatformView

internal class MapView(context: Context, id: Int, creationParams: Map<String?, Any?>?) : PlatformView {
    private val textView: TextView

    override fun getView(): View {
        return textView
    }

    override fun dispose() {}

    init {
        textView = TextView(context)
        textView.textSize = 72f
        textView.setBackgroundColor(Color.rgb(255, 255, 255))
        textView.text = "Rendered on a native Android view (id: $id)"
    }
}
```
**MapViewFactory**
```
package com.example.ble_poc

import android.content.Context
import android.view.View
import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory

class MapViewFactory : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
    override fun create(context: Context, viewId: Int, args: Any?): PlatformView {
        val creationParams = args as Map<String?, Any?>?
        return MapView(context, viewId, creationParams)
    }
}
```

Is this an error on Flutter side?
Repository: go
Issue: proposal: sync: add package sync/workerpool
Labels: Proposal

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

# sync/workerpool

This package would provide a standardized concurrent worker pool implementation with a simple task interface.

```go
package workerpool

type Task interface {
	Invoke(ctx context.Context) error
}

type WorkerPool struct {}

func New(n int64) WorkerPool
func (p *WorkerPool) Push(t Task, opts ...TaskOption)
func (p *WorkerPool) Run(ctx context.Context)
func (p WorkerPool) Wait()
```

## Example

```go
package main

import (
    "context"
    "golang.org/x/sync/workerpool"
)

func main() {

    wp := workerpool.New(2)
    ctx, cancel := context.WithCancel(context.Background())
    
    go wp.Run(ctx) // runs until context is cancelled

    // wp.Push(Task 1)
    // wp.Push(Task 2)

    wp.Wait() // blocks until all pending tasks are complete, but does not stop workerpool goroutine
    cancel() // stops the workerpool

    // wait for the workerpool to be stopped
    select {
    case <-ctx.Done():
    }

}
```

## Reasoning

While there are many overly simplistic examples published on the internet, the problem space gains difficulty quickly when trying to write a more robust custom implementation. I believe the community would benefit greatly by having such a robust implementation widely available in the standard library. 

I've written [github.com/tniswong/workerpool](https://pkg.go.dev/github.com/tniswong/workerpool) as a draft design that I offer up as a candidate implementation. This design uses `golang.org/x/sync/semaphore` for bounding the concurrent workers.

## Design Notes

- Uses `context.Context` for both `WorkerPool.Run(context.Context)` and `Task.Invoke(context.Context)`
- The task queue has no code-defined size limitations
- Tasks are responsible for collecting their own results upon completion (if applicable)
- `Push()` is concurrency safe
- `Push()` can be supplied options to specify task invocation behavior such as Retry (restart the task if it returned an error) and RetryMax (restart the task unless it returns an error more than n times)
- ~~Does not invoke queued tasks when context is cancelled~~ When Run(ctxt) is ctxt cancelled, remaining jobs are invoked with the cancelled context to clear out the work queue.
- No hanging worker threads to clean up thanks to the semaphore
- `Run()` runs until the context is cancelled

## References

https://brandur.org/go-worker-pool
https://gobyexample.com/worker-pools
https://itnext.io/explain-to-me-go-concurrency-worker-pool-pattern-like-im-five-e5f1be71e2b0
https://medium.com/code-chasm/go-concurrency-pattern-worker-pool-a437117025b1
https://golangbot.com/buffered-channels-worker-pools/

https://github.com/gammazero/workerpool
https://github.com/alitto/pond
https://github.com/cilium/workerpool
https://github.com/vardius/worker-pool
Repository: vscode
Issue: [CustomTextEditor extensions] A second duplicate editor tab opens when doing "Reopen with... Cat Scratch" on **untitled** file, then making any change using the custom editor
Labels: bug,custom-editors

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.67.2
- OS Version: Windows 10

When doing "Reopen with... Cat Scratch" on **untitled** file, when making any change using the custom editor, an additional new tab opens with the same document, but using the default text editor.

Steps to Reproduce:

1. Open the https://github.com/microsoft/vscode-extension-samples/tree/0d36653b0da5041f49fe049e34f6d8671f8e1002/custom-editor-sample
3. Press F5 to debug the extension.
4. Double-click on the tab bar to open new "Untitled 1" tab.
6. Use  "Reopen with..." / "Cat Scratch" on the "Untitled 1" file.
10. Click the "Add scratch' button.
11. A new 2nd tab opens with the "Untitled 1", but with the default text editor showing the JSON CatScratch data. That tab remains in sync with the custom editor tab.

I expect editing custom document to not result in spontaneously opening the default text editor.

https://user-images.githubusercontent.com/1829149/169727649-f22a7ae9-a680-49fa-a0b2-1a1310485be0.mp4
Repository: godot
Issue: Scale of Godot's UI randomly changes
Labels: bug,platform:macos,topic:editor,confirmed

### Godot version

3.4.4 stable official

### System information

Mac mini 2014, Catalina, Intel core i5 2.8 ghz, Intel Iris 1536

### Issue description

I have been having an issue where if I go out of godot for some time, it will randomly change the UI scale to be 2x finer, like this:
![Screen Shot 2022-05-24 at 2 12 59 AM](https://user-images.githubusercontent.com/106148158/169996173-ba57c60f-d147-46bf-9d1e-9bc62ee8a12b.png)
It makes the editor really hard to read & is really annoying. I can fix it by changing the display scale in Preferences, but it would still read 100% (which of course looks fine initially, but this is changing it to be something else.) Also it resets the window size, which means I have to resize it again to see the tutorial I'm trying to follow.

### Steps to reproduce

I haven't actually reproduced it for the screenshot (btw it's full screen in 1080p display setting mode in case it matters), but believe me it's happened several times. I can tell you to try going out of godot while open, or step away from the computer, come back, see what happens, but that's all. Doesn't matter what project, it seems to be a basic UI issue at the core of the engine.

### Minimal reproduction project

_No response_
Repository: create-react-app
Issue: How to configure webpack for create-react-app #
Labels: needs triage

I want to configure webpack for create-react-app .
I am using sass and other packages as well.

Is there any way to create the plugin plain names without hashing ?
Repository: react
Issue: [DevTools Bug] Cannot remove node "276" because no matching node was found in the Store.
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://github.com/Fast-Pace-Transfer/analytics-dashboard-ui

### Repro steps

I am trying save a randomly generated set of colors with matching countries as an object in the local storage
from a context
So it doesn't change colors after a manual refresh

### How often does this bug happen?

Only once

### DevTools package (automated)

react-devtools-extensions

### DevTools version (automated)

4.24.6-ca7a38ae4

### Error message (automated)

Cannot remove node "276" because no matching node was found in the Store.

### Error call stack (automated)

```text
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26518:43
    at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24436:22)
    at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24605:14
    at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:54547:39)
```


### Error component stack (automated)

_No response_

### GitHub query string (automated)

```text
https://api.github.com/search/issues?q=Cannot remove node  because no matching node was found in the Store. in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
```
Repository: pytorch
Issue: [chalf] reference_testing: low quality test for fast growing ops
Labels: triaged,module: complex,module: half

### 🐛 Describe the bug

In PR https://github.com/pytorch/pytorch/pull/77640: 
Since range of chalf is much less compared to cfloat, we get `inf`s easily (eg. with `pow`, `exp`), so we cast `cfloat` back to `chalf`.

However, this is might mask an actual issue as we don't control the percent of input that will be valid. The correct approach would be to sample input which are valid given the range of `chalf`.

One of the approach would be to add extra meta-data to OpInfo.

cc: @ngimel @mruberry @anjali411 

### Versions

master

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved
Repository: flutter
Issue: Improve readability of repo code
Labels: framework,f: material design,team-design,triaged-design

There are ways to make the libraries more readable and idiomatic while staying within the bounds of the [repo style guide](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo). 

Since the primary readers of Flutter code are Flutter app developers, and since all Flutter apps created since `2.3.0` use [`flutter_lints`](https://pub.dev/packages/flutter_lints), we should too, when able.

- [x] [`curly_braces_in_flow_control_structures`](https://dart-lang.github.io/linter/lints/curly_braces_in_flow_control_structures.html)
  - [x] https://github.com/flutter/flutter/pull/104499
  - [x] https://github.com/flutter/flutter/pull/104612
  - [x] https://github.com/flutter/flutter/pull/104609
  - [x] https://github.com/flutter/flutter/pull/104610
  - [x] https://github.com/flutter/flutter/pull/104611
  - [x] https://github.com/flutter/flutter/pull/104616
  - [x] https://github.com/flutter/flutter/pull/104629
  - [x] https://github.com/flutter/flutter/pull/104617
  - [x] https://github.com/flutter/flutter/pull/104921
  - [ ] https://github.com/flutter/flutter/pull/105113