sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: R3M: A Universal Visual Representation for Robot Manipulation
Labels: New model

# 🌟 New model addition

## Model description
We pre-train a visual representation using the Ego4D human video dataset using a combination of time-contrastive learning, video-language alignment,and an L1 penalty to encourage sparse and compact representations. The resulting representation, R3M, can be used as a frozen perception module for downstream policy learning. Across a suite of 12 simulated robot manipulation tasks, we find that R3M improves task success by over 20% compared to training from scratch and by over 10% compared to state-of-the-art visual representations like CLIP and MoCo. Furthermore, R3M enables a Franka Emika Panda arm to learn a range of manipulation tasks in a real, cluttered apartment given just 20 demonstrations.
<!-- Important information -->

## Open source status

* [x] the model implementation is available:(https://github.com/facebookresearch/r3m)
* [x] the model weights are available: https://github.com/facebookresearch/r3m/blob/main/r3m/example.py
* [x] who are the authors: @suraj-nair-1
Repository: go
Issue: cmd/compile: confusing error when trying to instantiate type parameter on other-package constraint with unexported fields
Labels: NeedsDecision,compiler/runtime

Consider the following 3-files program:

go.mod:
```
module example.com/mod

go 1.18
```

a/a.go
```
package a

type I interface {
	struct{ i int }
}

func F[T I]() {}

```

test.go
```
package main

import "example.com/mod/a"

func main() {
	a.F[struct{ i int }]()
}
```

With go1.18 and tip, the program does not compile:

```
 $ go build
# example.com/mod
.\test.go:6:6: struct{i int} does not implement a.I
```

playground link: https://go.dev/play/p/yvRVxYbdkpK

To to me it looks like it should(?). The same constraint and function work fine when they're part of the main package. Am I missing something?

EDIT: I had the wrong mental model, it's correct that this doesn't work but the error message is slightly confusing. See below.

cc @findleyr @griesemer @mdempsky
Repository: PowerToys
Issue: Feature Request: DXF preview
Labels: Idea-Enhancement,Product-File Explorer

### Description of the new feature / enhancement

The addition of SVG file preview has been extremely useful. Could this be expanded to include the DXF vector file format? 

### Scenario when this would be used?

Current process requires opening heavy supporting apps to preview the vector, such as Autodesk, Inkscape, Corel Draw, Illustrator, etc. Using the same mechanism as SVG file preview would offer similar benefits.

### Supporting information

DXF is an open-source vector file format created and supported by Autodesk.
Repository: yt-dlp
Issue: How to merge only video stream of a format
Labels: enhancement,core:post-processor

### Checklist

- [X] I'm asking a question and **not** reporting a bug/feature request
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions including closed ones

### Question

A while ago I added support for downloading the screen share video from zoom
so now I have available two formats to download
both formats have the same audio stream, but different video streams

I try to tell yt-dlp to merge both videos with `--video-multistreams`, but keep only one audio, so that I won't have a duplicate

it seems that yt-dlp does not want to do that
the only way I was able to have a video with both video streams, is when it had two audio streams too, via this command:
```
yt-dlp -f "mergeall" --video-multistreams --audio-multistreams "<url>"
```
all attempts I had that did not include `--audio-multistreams` as well, did not contain more then one video streams

is there no way to ignore a specific stream a format has?
I read the documentation a lot of times ant tried several format selection to no avail

### Verbose log

_No response_
Repository: go
Issue: x/vulndb: detect false positives based on imported by count
Labels: NeedsInvestigation,vulncheck or vulndb

One of the common sources of false positive reports is that a vulnerability is found in a Go module but is not importable. We could detect for this by checking the imported by count on pkg.go.dev. 

For example, in the case of https://github.com/golang/vulndb/issues/353, https://pkg.go.dev/github.com/go-gitea/gitea?tab=importedby shows 0 importers.

As a starting point, it would be helpful to add a link to pkg.go.dev/<path>?tab=importedby in the automated issue.
Repository: pytorch
Issue: Change the type hint for nn.Module.__call__ to be friendly to overrides.
Labels: module: nn,module: typing,triaged,enhancement

### 🚀 The feature, motivation and pitch

Currently, `nn.Module.__call__` has type hints defined using `__call__ : Callable[..., Any] = _call_impl`. However, this declared type makes it difficult for the user to override the type hint of `nn.Module.__call__` using inferred types. For example:

```python
from typing import Callable, TypeVar, cast

from torch import Tensor, nn

C = TypeVar("C", bound=Callable)


def proxy(f: C) -> C:
    return cast(C, lambda self, *x, **y: super(self.__class__, self).__call__(*x, **y))


class MyModule(nn.Module):
    def forward(self, x: Tensor, y: Tensor) -> Tensor:
        return x + y

    __call__ = proxy(forward)  # __call__ exists in nn.Module

    another_call = proxy(forward)  # another_call does not exist in nn.Module


x, y = Tensor(), Tensor()

model = MyModule()

z1 = model(x, y)  # Type hint of z1 is Any, same for model.__call__(x, y)

z2 = model.another_call(x, y)  # Type hint of z2 is Tensor
```

If you paste the above code in VSCode, you can see that the type for z1 is `Any` (wrong) while that for `z2` is Tensor (correct).

### Alternatives

Instead, if we remove the type annotations in `nn.Module` and do the following instead, the above example would work as expected.

```python
class Module:
    __call__ = _call_impl
    def _call_impl(self, *input: Any, **kwargs: Any) -> Any:
        # actual implementation
```

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @ezyang @malfet @rgommers @xuzhao9 @gramster
Repository: kubernetes
Issue: integration tests log many "http: TLS handshake error from 127.0.0.1:55336: EOF" errors
Labels: kind/bug,area/test,priority/important-soon,sig/api-machinery,priority/important-longterm,lifecycle/frozen

### What happened?

Ran
```
go test ./test/integration/apiserver/admissionwebhook -v -run TestWebhookAdmissionWithWatchCache
```

### What did you expect to happen?

tests run without TLS errors

### How can we reproduce it (as minimally and precisely as possible)?

Run integration tests

### Anything else we need to know?

This happened on go1.17 and go1.18, so it's not new, but indicates we either have a setup issue in our integration tests, or our logging is outputting errors in situations that should not error

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: transformers
Issue: Edgeformer
Labels: New model

# 🌟 New model addition

## Model description

[EdgeFormer: A Parameter-Efficient Transformer for On-Device Seq2seq Generation](https://arxiv.org/abs/2202.07959)

EdgeFormer: A Parameter-Efficient Transformer for On-Device Seq2seq Generation. Tao Ge and Furu Wei

March 2022: release code and pretrained checkpoints.

## Open source status

* [x] the model implementation is available: https://github.com/microsoft/unilm/blob/900f5416c8137a753b1c8f53cd5015d0ceca7061/edgelm/fairseq/models/transformer/transformer_legacy.py#L226
* [x] the model weights are available: https://github.com/microsoft/unilm/tree/900f5416c8137a753b1c8f53cd5015d0ceca7061/edgelm#pretrained-models
* [x] who are the authors: Maybe @gitnlp 

Happy to help with a model contribution here!
Repository: flutter
Issue: Lint all flutter/engine python files
Labels: team,P2,team-engine,triaged-engine

I would expect linter errors in the following change because I introduced and then deleted a variable; however the linter didn't fail:

https://github.com/flutter/engine/pull/32257/files#diff-98a462d2dd0d000715aaff99c8f4ed60efc2a4fab57cbe631db3818b9cca4a0a
Repository: godot
Issue: MeshInstance2D (with ArrayMesh) lags occasionally when adding surfaces
Labels: topic:core,needs testing,topic:dotnet,topic:2d,performance

### Godot version

3.4.4 stable mono

### System information

Windows 10, GLES2 / GLES3, GeForce RTX 2080 TI, 511.79

### Issue description

I am trying to generate a terrain using MeshInstance2D instead of a tilemap. I generate the terrain in 8x8 chunks and I use AddSurfaceFromArrays to add the surface data to my ArrayMesh.

Most of the calls are fine and takes 0 ms, just a few ticks. However occasionally it can take as long as 70 ms, it looks like some buffer overflows or so and then it gets flushed.

Example Log from program:

> 492: Adding Surfaces (Surfaces: 4, Vertex Count:11418) took 0 milliseconds (7302 ticks)
> 522: Adding Surfaces (Surfaces: 3, Vertex Count:5592) took 70 milliseconds (703189 ticks)
> 522: Adding Surfaces (Surfaces: 3, Vertex Count:6510) took 0 milliseconds (5595 ticks)
> [snipped out some here]
> 522: Adding Surfaces (Surfaces: 4, Vertex Count:17574) took 1 milliseconds (14659 ticks)
> 522: Adding Surfaces (Surfaces: 4, Vertex Count:15582) took 1 milliseconds (11847 ticks)
> 552: Adding Surfaces (Surfaces: 3, Vertex Count:5178) took 16 milliseconds (160357 ticks)
> 552: Adding Surfaces (Surfaces: 3, Vertex Count:5478) took 0 milliseconds (5478 ticks)
> 552: Adding Surfaces (Surfaces: 3, Vertex Count:4896) took 0 milliseconds (3831 ticks)

### Steps to reproduce

I attached a project, you just need to run it with 3.4.4 mono and start it. Instructions are on the label.

### Minimal reproduction project

[MeshInstance2DProblem.zip](https://github.com/godotengine/godot/files/8351842/MeshInstance2DProblem.zip)
Repository: godot
Issue: MeshInstance2D (with ArrayMesh) disappears randomly when camera moves past a certain X / Y coordinate
Labels: bug,topic:rendering,topic:2d

### Godot version

3.4.4 stable mono

### System information

Windows 10, GLES2 / GLES3, GeForce RTX 2080 TI, 511.79

### Issue description

I am trying to generate a terrain using MeshInstance2D instead of a tilemap. I generate the terrain in 8x8 chunks and I use AddSurfaceFromArrays to add the surface data to my ArrayMesh.

I already added a separate issue regarding some lag I am experiencing [here](https://github.com/godotengine/godot/issues/59517).

Another problem is that suddenly the mesh just disappears, I observe the following symptoms:

- Always happens at some X or Y coordinate (or both).
- Sometimes the different MeshInstance2D disappear at slightly different coordinates but they always do disappear
- Resizing godot (double clicking window title) makes them come back, even if I resize back to the original size.

[Here is a video](https://www.youtube.com/watch?v=bdGf67Fx2Ds&ab_channel=VegardBeider) showing the effect in action, the second part of the video shows the meshes disappearing at the same time. I have tried to disable 2D batching in the project and also tried with both GLES2 and GLES3. 

### Steps to reproduce

I attached a project, you just need to run it with 3.4.4 mono and start it. Instructions are in the label inside the project.

### Minimal reproduction project

[MeshInstance2DProblem.zip](https://github.com/godotengine/godot/files/8351864/MeshInstance2DProblem.zip)
Repository: go
Issue: proposal: errors: As with type parameters
Labels: Proposal,error-handling

Currently in 1.18 and before, when using the `errors.As` method, an error type you would like to write into must be predeclared before calling the function. For example:

```go
var myErr *MyCustomError
if errors.As(err, &myErr) {
  // handle myErr
}
```

This can makes control flow around handling errors "unergonomic".

I'd propose that a new, type parameterized method be added to the `errors` package in 1.19:

```go
func IsA[T error](err error) (T, bool) {
	var isErr T
	if errors.As(err, &isErr) {
		return isErr, true
	}

	var zero T
	return zero, false
}
```

This enables more "ergonomic" usage as follows:
```go
err := foo()
if err != nil {
	if myErr, ok := errors.IsA[*MyCustomError](err); ok {
		// handle myErr
	} else if otherErr, ok := errors.IsA[*OtherError](err); ok {
		// handle otherErr
	}

	// handle everything else
}
```
instead of
```go
err := foo()
if err != nil {
	var myErr *MyCustomError
	if errors.As(err, &myErr) {
		// handle customer error
	}

	var otherErr *OtherError
	if errors.As(err, &otherErr) {
		// handle other error
	}

	// handle everything else
}
````

This change would reduce the overall LOC needed for handling custom errors, imo improves readability of the function, as well as scopes the errors to the `if` blocks they are needed in.

Naming is hard so `IsA` might be better replaced with something else.
Repository: kubernetes
Issue: unstructuredJSONScheme#Decode is inconsistent about requiring Kind but not APIVersion
Labels: kind/bug,sig/api-machinery,priority/important-longterm,lifecycle/frozen,triage/accepted

### What happened?

While making decoding paths consistent for strict and non-strict server-side decoding, we ran into an inconsistency between different parts of the decoding stack.

When submitting an unstructured request for a custom resource, both apiVersion and kind are required in the request.

When unmarshaling json into an unstructured object, the decoder requires kind to be set, but not apiVersion: 
https://github.com/kubernetes/kubernetes/blob/fbcfa33018159c033aee77b0d5456df6771aa9b5/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go#L340-L342

Attempts to require apiVersion there as well exposed some places in unit tests that are not setting this. One of those places was kubectl edit tests, which replay real request/response fixtures.

Ideally, our decoding would consistently require kind and apiVersion, but we need to understand whether there are any currently working scenarios that are omitting apiVersion from unstructured data before we do so.

### What did you expect to happen?

kind and apiVersion are consistently required

### How can we reproduce it (as minimally and precisely as possible)?

n/a

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: flutter
Issue: [macos] "Cache SkSL can only be set before the GrContextOptions::fShaderCacheStrategy is set" when running with --cache-sksl
Labels: engine,platform-mac,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-engine,triaged-engine

If I run:

- `flutter create shadertest`
- `cd shadertest`
- `flutter run --profile -d macos --cache-sksl`

I see the following error in the output:

```
Building macOS application...                                           
[ERROR:flutter/common/graphics/persistent_cache.cc(55)] Cache SkSL can only be set before the GrContextOptions::fShaderCacheStrategy is set.
[ERROR:flutter/common/graphics/persistent_cache.cc(55)] Cache SkSL can only be set before the GrContextOptions::fShaderCacheStrategy is set.
```

This seems to prevent collecting of any shader data, because even on a real app where DevTools reports shader jank, pressing `M` after exercising the animations results in:

```
No data was received. To ensure SkSL data can be generated use a physical device then:
  1. Pass "--cache-sksl" as an argument to flutter run.
  2. Interact with the application to force shaders to be compiled.
```
Repository: go
Issue: x/tools/gopls: should suppress diagnostics when GOMODCACHE is under the repo root
Labels: gopls,Tools

Although running go 1.18, gopls shows error messages like:
2022/03/25 17:19:07 falling back to safe trimming due to type errors: [/usr/local/google/home/pjw/go/pkg/mod/github.com/google/go-cmp@v0.5.7/cmp/options.go:469:24: invalid operation: signed shift count iota (untyped int constant 0) requires go1.13 or later 

These are misleading (go1.13?) and unhelpful
Repository: electron
Issue: [Feature Request]: Steal focus only when window is active
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Hi all,

I am developing a clipboard app and I need a feature like described below:

- User has a focus and cursor blinking in input on (for ex.) the Whatsapp app
- When the user runs the clipboard app, it should be stealing the focus without losing the condition on the Whatsapp app
- When I quit the clipboard app, the focus proceeds to blink in the Whatsapp app

I am not sure if there is a covering solution to steal the focus for the case electron app is opened, and let the focus proceed where it left off.

### Proposed Solution

There is a method to steal focus programmatically:

`      app.focus({ steal: true });
`

This feature might be added to this part. (Like instead of having a boolean, we might have an enum option)

### Alternatives Considered

I tried to change these parts of my code but I got nothing :(

```
  let level = "normal";
  // Mac OS requires a different level for our drag/drop and overlay
  // functionality to work as expected.
  if (process.platform === "darwin") {
    level = "floating";
  }
  mainWindow.setAlwaysOnTop(true, level);
  mainWindow.webContents.openDevTools({ mode: 'undocked' });
```



### Additional Information

_No response_
Repository: flutter
Issue: Add headingRowColor to PaginatedDataTable
Labels: c: new feature,framework,f: material design,c: proposal,has partial patch,team-design,triaged-design

## Use case

Just like the normal DataTable, PaginatedDataTable should also make it possible to set the heading row color.

## Proposal

Add a paramater "headingRowColor" to PaginatedDataTable, similar to the one on DataTable.
Looks like PaginatedDataTable simply uses DataTable internally, so it might only have to be passed through to work.
Repository: pytorch
Issue: [bug] `torch.multinomial` should throw error as documented
Labels: triaged,topic: docs

### 🐛 Describe the bug

The [documentation](https://pytorch.org/docs/stable/generated/torch.multinomial.html) of `torch.multinomial()` says it should throw an error if the number of samples is equal to the number of inputs (for without replacement case).

Unlike that it successfully runs:
```python
>>> weights = torch.tensor([0, 10, 3, 0], dtype=torch.float)
>>> torch.multinomial(weights, 2)
tensor([2, 1])
>>> torch.multinomial(weights, 4)
tensor([1, 2, 0, 3])
>>> torch.multinomial(weights, 4, replacement=True)
tensor([1, 1, 1, 1])
```

### Versions

Master branch: `1.12.0a0+git2e22c66`


cc @kshitij12345
Repository: TypeScript
Issue: JavaScript intellisence shows Date.parse() description for function JSON.parse() when signature help is automatically invoked during surrounding of argument with both parentheses simultaneously
Labels: Bug,Domain: Signature Help

<!-- ⚠️⚠️ 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

<!-- 🪓 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.62.2
- OS Version: Windows 8.1

Steps to Reproduce:

1. Create a JavaScript file with the following content
```
function foobar(value) {
  let json = JSON.parsevalue;
}
```
1. The `()` are missing for the `parse` call on line 2
1. Select the text `value` and type `(` to surround it with `()` and fix the syntax error
1. VSCode now shows the following function tooltip:
```
JSON.parse(s: string): number
A date string

Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
```

This is the text for the function `Date.parse(s: string)`. It even uses the parameter name `s` instead of `text` that is shown in the correct tooltip for `JSON.parse(text:string, reviver?:.....)`