sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Confusing error when impl is available only on RefCell contents
Labels: A-diagnostics,T-compiler,D-confusing,D-terse

Some Rust ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=227b1cd9bb00ec3fae00686900972efc)):
```rust
use std::cell::RefCell;

struct WorkDoer<'f, F> {
    f: &'f F,
}

impl<'f> WorkDoer<'f, i32> {
    fn do_work(&self) {}
}

fn main() {
    let f = RefCell::new(1i32);
    let work = WorkDoer { f: &f };
    work.do_work();
}
```
yields an error about no method `do_work` being found:
```
error[E0599]: no method named `do_work` found for struct `WorkDoer<'_, std::cell::RefCell<i32>>` in the current scope
  --> src/main.rs:14:10
   |
3  | struct WorkDoer<'f, F> {
   | ---------------------- method `do_work` not found for this
...
14 |     work.do_work();
   |          ^^^^^^^ method not found in `WorkDoer<'_, std::cell::RefCell<i32>>`
```
where `do_work` _does_ exist, but on a different type. Specifically, `WorkDoer<'_, i32>`.

In the above example, `WorkDoer` should be made from a borrow of the `RefCell`, like `WorkDoer { f: &*f.borrow() }`, which rustc is entirely happy to build. It would be _fantastic_ if rustc could suggest that the `borrow` would make a `do_work` available.

### Related messages
There's (what I think to be) a similar variation of this with a more generic `impl`:
```rust
use std::cell::RefCell;

struct WorkDoer<'f, F> {
    f: &'f F,
}

impl<'f, I: std::ops::Add> WorkDoer<'f, I> {
    fn do_work(&self) {}
}

fn main() {
    let f = RefCell::new(1i32);
    let work = WorkDoer { f: &f };
    work.do_work();
}
```
yielding a more informative error:
```
error[E0599]: no method named `do_work` found for struct `WorkDoer<'_, std::cell::RefCell<i32>>` in the current scope
   --> src/main.rs:14:10
    |
3   |   struct WorkDoer<'f, F> {
    |   ---------------------- method `do_work` not found for this
...
14  |       work.do_work();
    |            ^^^^^^^ method not found in `WorkDoer<'_, std::cell::RefCell<i32>>`
    |
    = note: the method `do_work` exists but the following trait bounds were not satisfied:
            `std::cell::RefCell<i32>: std::ops::Add`
```
but if the constraints become much more complex than `I: std::ops::Add` it can be very confusing to read through mismatched types only to realize you've forgotten to borrow the `RefCell`.

If `rustc` could observe that the inner type satisfies the constraints and makes `do_work` available, then suggest that change, it'd be kind of incredibly good and cool.

(this is a minimization of https://twitter.com/iximeow/status/1297651292148359170 which @estebank also asked me to file an issue about :) the aforementioned "try _borrowing the RefCell contents_" suggestion would be very handy here.)
Repository: ant-design
Issue: Timeline with label should be configurable to be left and right aligned
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Currently, when you have a timeline component and you don't specify a width it will default to being centered. 

### What does the proposed API look like?
Have an `align` prop that defaults to `center`, with additional options for `left` or `right`.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: terminal
Issue: Unable to specify file for ssh-keygen (can't enter text)
Labels: Help Wanted,Area-Input,Issue-Bug,Product-Terminal,Priority-2


# Environment

```none
Windows build number: 10.0.18362.0
Windows Terminal version: 1.2.2381.0
ssh-keygen 7.7.2.1 
```

# Steps to reproduce
1. Open a new powershell shell in Windows Terminal
2. run the `ssh-keygen` powershell command.

# Expected behavior
When prompted to specify the file to save the key in, I am able to enter text.

# Actual behavior
Typing does not produce visible text, and hitting enter does not cause ssh-keygen to continue. I am able to break execution with Control-z, however.

# Notes
ssh-keygen behaves as expected when run in a powershell shell in conhost.exe.
Repository: deno
Issue: Enable editing low level tls settings
Labels: cli,suggestion,tls

Since deno uses rustls which is more configurable than nodes openssl it would be good to expose some of the apis directly to js.

Settings that could be useful in changing the clienthello: ciphers, extensions, grease, elliptic curves/pformats, supported tls versions, etc...
Repository: godot
Issue: [Bullet] The Rigidbody cannot rotate after set the CollisionShape disabled first and enabled later
Labels: bug,topic:physics

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
v3.2.1


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows GLES3


**Issue description:**
<!-- What happened, and what was expected. -->
Disabling collision shape results in applying torque not working
https://github.com/godotengine/godot/issues/30551
The same issue was already fixed in 2D

**Steps to reproduce:**
1. Make RigidBody
2. Disable collision
3. Apply some nice torque impulse
4. Watch as it does not spin

**Minimal reproduction project:**
[RBNotRotatingMinimalReproducableProject.zip](https://github.com/godotengine/godot/files/5146630/RBNotRotatingMinimalReproducableProject.zip)

<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->


Current Workaround:
```
func _ready():
	saved_collision_mask = self.collision_mask
	saved_collision_layer = self.collision_layer
	self.collision_layer = 0
	self.collision_mask = 0
	yield(get_tree().create_timer(0.2), "timeout")
	self.collision_mask = saved_collision_mask
	self.collision_layer = saved_collision_layer
```
Repository: godot
Issue: ResourceName is not printed
Labels: bug,topic:core

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3 RC4 mono

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Win10 64 home
nvidia gt440

**Issue description:**
<!-- What happened, and what was expected. -->
The name of the resource loaded in the AudioStremPlayer is not printed on the screen.

-This also happens in 3.2.2 mono
-This also happens with the texture of a node sprite
-This also happens with GDScript in 3.2.3 RC4

**Steps to reproduce:**
Create an AudioStreamPlayer node
Add an audio file
Print the resource name to the screen using "Stream.ResourceName"

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[bugResourceName.zip](https://github.com/godotengine/godot/files/5146712/bugResourceName.zip)
Repository: excalidraw
Issue: clearing color picker input should set color to transparent
Labels: discussion

Currently, clearing an input resets the color to current color (it leaves it unchanged).

I propose that it should instead set it to `transparent`.

**Use case:** you want to clicking make color transparent. This is especially needed for stroke colors where we don't list `transparent` among the color swatches (which we could, anyway).
Repository: vscode
Issue: Windows: VS Code File icons are missing
Labels: bug,help wanted,install-update,windows

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
.ipynb always has blank icon, even after setting file association like `*.ipynb  python`. I guess this is caused by vscode has no icon files for that.

is it possible to enhance the icon of the associated file or by some extensions?
Repository: three.js
Issue: DataTextureLoader: provide alternative function for parsing explicit databuffer.
Labels: Suggestion,Loaders

Parsing a simple buffer with a similar API as the common DataTexureLoader[.load](https://threejs.org/docs/#api/en/loaders/DataTextureLoader.load) is not standardly supported, however it would seem logical for allowing features like drag and drop and easy server-side loading of DataTextures.

An example of the current workflow for doing such can be observed in [webgl_materials_matcap](https://threejs.org/examples/?q=matca#webgl_materials_matcap).
[jade.exr](https://github.com/mrdoob/three.js/files/5146845/jade.zip) - open example file for testing - credits to [Michael Harmon](https://devtalk.blender.org/t/call-for-content-matcaps-source-file/9258/19).

https://github.com/mrdoob/three.js/blob/696d7836d1fc56c4702a475e6991c4adef7357f4/examples/webgl_materials_matcap.html#L178-L195

In order to allow drag-and-drop ( or similar instant parsing ) we are required to manually invoke the specific `loader.parser` and replicate the `onLoad` events of both `DataTextureLoader` and the loader itself.

Wouldn't it make sense to supply a simpler built-in function for such workflow? Or, perhaps, it is expected of the loader to always provide a structured object that can be immediately used, bypassing this:

https://github.com/mrdoob/three.js/blob/696d7836d1fc56c4702a475e6991c4adef7357f4/src/loaders/DataTextureLoader.js#L38-L85

If so, how would you suggest structuring such API? Would it make sense to supply a similar interface to other loaders? 

Credits to @WestLangley for the idea, I'm replicating and discussing it.
Repository: pytorch
Issue: Multi-machine multi-gpu training won't start on CNGrid
Labels: needs reproduction,oncall: distributed,triaged

## 🐛 Bug

I tried to train an object detector network using MMDetection 1.0 codebase based on pytorch 1.4, over a cluster (CNGrid) managed with slurm. I used the script provied by the codebase to launch multi-node-multi-gpu training. However, the process stuck at the begining where it tried to load pretrained backbone network weights. When I looked into the nodes allocated to me, I discovered a strange phenomenon: all gpus' util rates are 0% and all gpus' memory are barely used except gpu0 where around 1gb used; using 'top', I noticed a python process under my name gave 100% cpu usage all the time.
What's possibly happenning?

## To Reproduce

Steps to reproduce the behavior:

1.install pytorch 1.4, mmcv 0.2.12, mmdetection 1.0
2.launch a multi-node-multi-gpu training job using 'mmdetection/tools/slurm_train.sh on a cluster managed by slurm;
  I have attached an additional launch script which is simpler to use and do the same job at the bottom of this post; please extract them to mmdetection/tools and 'cd' to mmdetection root folder to execute the following command:
     $ ./tools/slurm_train_new.sh faster_rcnn_r101_fpn_1x 4
which will launch training of a faster rcnn network over 4 nodes.

## Expected behavior

The training proceed fluently, and the training status output is updated every 50 iterations.

## Environment

PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: CentOS Linux 7 (Core)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration:
GPU 0: Tesla V100-SXM2-16GB
GPU 1: Tesla V100-SXM2-16GB
GPU 2: Tesla V100-SXM2-16GB
GPU 3: Tesla V100-SXM2-16GB

Nvidia driver version: 440.64.00
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.17.0
[pip] torch==1.4.0
[pip] torchvision==0.4.0a0
[conda] _pytorch_select 0.2 gpu_0 defaults
[conda] blas 1.0 mkl defaults
[conda] mkl 2019.4 243 defaults
[conda] mkl-service 2.3.0 py37he904b0f_0 defaults
[conda] mkl_fft 1.0.15 py37ha843d7b_0 defaults
[conda] mkl_random 1.1.0 py37hd6b4f25_0 defaults
[conda] pytorch 1.2.0 cuda100py37h938c94c_0 defaults
[conda] torch 1.4.0 pypi_0 pypi
[conda] torchvision 0.4.0 cuda100py37hecfc37a_0 defaults

## Additional context
a cluster managed with slurm;
internet connection is required to download pretrained backbone weights in your case (in my case, the backbone weight file were already in the default folder, so the training stuck is not due to this).

[additional_launch_scripts.zip](https://github.com/pytorch/pytorch/files/5146965/additional_launch_scripts.zip)



cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jiayisuse @agolynski
Repository: godot
Issue: Issues when serializing an inner class extending Resource
Labels: bug,topic:core

**Godot version:**
v3.2.2

**Issue description:**

When serializing resources which are instances of an inner class the result can't be loaded again.

Note: there is already a warning in the documentation: [See the text box at the bottom](https://docs.godotengine.org/en/latest/getting_started/step_by_step/resources.html#2).

**Steps to reproduce:**

```gdscript
# resource.gd
extends Resource

export var name : String
```

```gdscript
tool
extends EditorScript

class TestResource extends Resource:
	export var name : String

func _run():
	var resource = preload("res://resource.gd").new()
	ResourceSaver.save("res://resource.tres", resource)
	
	var inner_resource = TestResource.new()
	ResourceSaver.save("res://inner_resource.tres", inner_resource)

	print(load("res://resource.tres").name)
	# prints the name
	print(load("res://inner_resource.tres").name)
	# Invalid get index 'name' (on base: 'Resource (inner_resource.tres::1)'

```

In the inspector, `resource.tres` will be editable, while `inner_resource.tres` is empty:

![image](https://user-images.githubusercontent.com/28286961/91663985-725b7800-eaec-11ea-9c65-2c729bab833b.png)

**`resource.tres`**:

```
[gd_resource type="Resource" load_steps=2 format=2]

[ext_resource path="res://resource.gd" type="Script" id=1]

[resource]
script = ExtResource( 1 )
name = ""
```

**`inner_resource.tres`**:

```
[gd_resource type="Resource" load_steps=2 format=2]

[sub_resource type="GDScript" id=1]

[resource]
script = SubResource( 1 )
name = ""
```

**Minimal reproduction project:**

[InnerClassResourceExample.zip](https://github.com/godotengine/godot/files/5147106/InnerClassResourceExample.zip)
Repository: rust
Issue: Cannot infer type when indexing an array inside closure with an argument
Labels: A-inference,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=25b1f2e69b52049319de33877b9b4981)):

```rust
fn main() {
    let a: [i64; 1] = [0];
    let f = |p| {
        a[p].pow(1)
    };
    let c: i64 = f(0);
}
```

I expected to see this happen: no errors

Instead, this happened:
```
error[E0282]: type annotations needed
 --> src/main.rs:4:9
  |
4 |         a[p].pow(1)
  |         ^^^^ cannot infer type
  |
  = note: type must be known at this point
```

Replacing it with `a[0]` compiles, removing `.pow(1)` also compiles. Extracting `a[p]` into a variable as so:
```rust
let x = a[p];
x.pow(1)
```
also results in an error suggesting giving `x` an explicit type. Giving `x` an explicit `i64` type also compiles.

### 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.
-->

`rustc --version --verbose`:
```
rustc 1.46.0 (04488afe3 2020-08-24)
binary: rustc
commit-hash: 04488afe34512aa4c33566eb16d8c912a3ae04f9
commit-date: 2020-08-24
host: x86_64-unknown-linux-gnu
release: 1.46.0
LLVM version: 10.0
```

Same issue on beta and nightly.
Repository: pytorch
Issue: Allow custom kwargs for forward method of nn.TransformerEncoderLayer, nn.TransformerDecoderLayer.
Labels: feature,module: nn,triaged

## 🚀 Feature

A simple feature to allow passing custom keyword arguments for `nn.TransformerEncoderLayer` and `nn.TransformerDecoderLayer`. Ideally, users should be able to flexibly use `custom_encoder` and `custom_decoder` arguments of `nn.Transformer` which can accept arguments of any arbitrary name.

## Motivation

Currently, the `forward` method of any custom encoders and decoders require to follow the exact API of `nn.TransformerEncoder` and `nn.TransformerDecoder` — what if custom transformer layers require some extra input tensors? For example, [DETR](https://github.com/facebookresearch/detr) injects sinusoidal positional embedding at every encoder layer. To enable this feature, one needs to reimplement/copy-paste large chunks of the codebase, [like DETR does here](https://github.com/facebookresearch/detr/blob/master/models/transformer.py)

## Pitch

Let the `torch.nn.modules.transformer` Transformer modules follow this common API:

```python
class Transformer(nn.Module):
    def __init__(self, *existing_pytorch_args):
        # ... existing method body.

    def forward(self, *existing_args,  **encoder_kwargs, **decoder_kwargs):
        # Separate encoder_kwargs and decoder_kargs by checking "encoder_" and "decoder_"
        # prefix. We can use `inpect.signature()` for this.
        memory = self.encoder(..., **encoder_kwargs)
        output = self.decoder(..., **decoder_kwargs)
```

Similarly, `nn.TransformerEncoder` should allow `**encoder_layer_kwargs` and `nn.TransformerDecoderLayer` should allow `**decoder_layer_kwargs`.


cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @zhangguanheng66
Repository: youtube-dl
Issue: 1905.com video download support
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 2020.07.28. 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
- [ ] I've verified that I'm running youtube-dl version **2020.07.28**
- [ ] I've checked that all provided URLs are alive and playable in a browser
- [ ] I've checked that none of provided URLs violate any copyrights
- [ ] 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.
-->

- Single video: https://www.1905.com/vod/play/85596.shtml


## 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: material-ui
Issue: Who's using Material UI? ✨
Labels: discussion

If your company is using Material UI (or Joy UI, Base UI, or MUI System) either publicly or internally, we would love to know about it 😍! This is a continuation of the [same thread](https://spectrum.chat/material-ui/general/whos-using-material-ui~00e6687a-9b2d-454f-97a6-950d9fde71cf) that we used to host on Spectrum. 

- Product:
- The problem solved:
- Company or organization:
- Link:
- Screenshot:

We use these inputs to find new projects for the [Showcase](https://mui-org.notion.site/Showcase-8ab60cbd5afc45729c60d9fcf00e8838).
Repository: pytorch
Issue: torch.bincount beyond 1d arrays
Labels: triaged,enhancement

## 🚀 Feature
Currently `torch.bincount` only works over 1d arrays. It would be good to have it working also on tensors of arbitrary shape. This feature for example is available in Tensorflow, where you can specify the dimension on which to apply `bincount`.

## Motivation

In [Hummingbird](https://github.com/microsoft/hummingbird/) we are using `torch.mode` for multiclass SVM. However (1) `torch.mode` does not work on GPU and (2) TVM does not support mode but they are willing to add bincount. More in [this] (https://github.com/microsoft/hummingbird/issues/232#issuecomment-682284632) discussion.

## Pitch

Having `torc.bincount` accepting a dim argument where you can specify on which dimension to apply bincount.
Repository: youtube-dl
Issue: Support for BrandNewTube website
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 2020.07.28. 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 **2020.07.28**
- [ 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.
-->

- Single video: https://brandnewtube.com/watch/sonia-amp-shaun-08-live-streaming-6-9-pm-uk_RtZpsI97YgpnnP4.html
- Single video: 
- Playlist: 

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

I am asking for the support of a website that seems to be getting rather popular as an alternative to Youtube. It is called Brand New Tube and can be found at https://brandnewtube.com