sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: fx: unable to symbolically trace model with torch.full(Proxy)
Labels: triaged,module: fx

This is very much like https://github.com/pytorch/pytorch/issues/44887. There the solution was to use `new_ones` but unfortunately in my case that won't work.

My scenario is that I'm trying to initialize the first set of embeddings for an RNN decoder like this:

```python
start_tokens = torch.full(batch_size, sos_token, dtype=torch.int)
embeddings = self.embedding(start_tokens)
```
Here is the full stack trace:

```
Traceback (most recent call last):
  File "fx_quantization.py", line 105, in <module>
    model_q = prepare_fx(model_q, qconfig_dict)
  File "/home/alex/cpu-venv/lib/python3.8/site-packages/torch/quantization/quantize_fx.py", line 378, in prepare_fx
    return _prepare_fx(model, qconfig_dict, prepare_custom_config_dict)
  File "/home/alex/cpu-venv/lib/python3.8/site-packages/torch/quantization/quantize_fx.py", line 171, in _prepare_fx
    graph_module = GraphModule(model, tracer.trace(model))
  File "/home/alex/cpu-venv/lib/python3.8/site-packages/torch/fx/symbolic_trace.py", line 355, in trace
    self.create_node('output', 'output', (self.create_arg(fn(*args)),), {},
  File "fx_quantization.py", line 68, in forward
    outputs = self.decoder.predict(encoder_outputs, self.seq_length+2,
  File "/home/alex/model_definitions.py", line 214, in predict
    start_tokens = torch.full(batch_size, sos_token, dtype=torch.int)
TypeError: full() received an invalid combination of arguments - got (Proxy, int, dtype=torch.dtype), but expected one of:
 * (tuple of ints size, Number fill_value, *, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
 * (tuple of ints size, Number fill_value, *, tuple of names names, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
```

cc @ezyang
Repository: PowerToys
Issue: Use MOD_NOREPEAT along with RegisterHotKey
Labels: Area-Runner,Area-Quality

### Provide a description of the new feature / enhancement

If a hotkey registered with `RegisterHotKey` is pressed we can get a few notifications. If we specify the `MOD_NOREPEAT ` flag, then a user must release an action key and press it again to send a new notification.
Repository: youtube-dl
Issue: How to search for an exact phrase with ytsearch
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [ X] I'm asking a question
- [X ] I've looked through the README and FAQ for similar questions
- [ X] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

I'm trying to search for a specific phrase. According to what I've researched, it should be: youtube-dl ytsearchall:"Red Flowers"

What I found though is with multiple words, it doesn't bind them into the exact phrase. It will find all videos with "Red" and "Flowers", not just "Red Flowers". So a video that has a title "Red and Blue Flowers" will download, when I'm only specifically trying to search for "Red Flowers"

I've tried multiple ways of searching. Adding double quotes, single before double quotes, double before single, etc. But I can't seem to make it work.
Examples tried:
"'Red Flowers'"
'"Red Flowers"'
""Red Flowers""
'Red Flowers'
"Red Flowers"

Using quotes in the youtube search engine itself will show the correct results, so I feel like I'm doing something wrong, or missing something. (Or could this be a bug?)
Repository: ant-design
Issue: 放弃resize-observer-polyfill，使用https://github.com/juggle/resize-observer
Labels: help wanted,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.

### Reproduction link
[https://github.com/que-etc/resize-observer-polyfill/issues/80 ](https://github.com/que-etc/resize-observer-polyfill/issues/80 )

### Steps to reproduce
无

### What is expected?
现在在Typescript4.2以上的版本都会报错 https://github.com/que-etc/resize-observer-polyfill/issues/80 

### What is actually happening?
使用 https://github.com/juggle/resize-observer 可以解决问题，因为resize-observer-polyfill作者已经3年不维护了，github活跃度为0，相反https://github.com/juggle/resize-observer 项目活跃度非常高

| Environment | Info |
|---|---|
| antd | 4.15.6 |
| React | 16.x |
| System | osx |
| Browser | chrome |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: Image widget FilterQuality is confusing
Labels: a: images,c: rendering,has reproducible steps,P3,found in release: 2.2,found in release: 2.3,team-engine,triaged-engine

| Flutter | regular HTML |
| :-------: | :----------------: |
| ![image](https://user-images.githubusercontent.com/19204050/118847858-b500f280-b8bd-11eb-9c8c-b72fd7f618e1.png) | ![image](https://user-images.githubusercontent.com/19204050/118848216-11641200-b8be-11eb-8333-5a4480b1db19.png) |
| ![image](https://user-images.githubusercontent.com/19204050/118848404-407a8380-b8be-11eb-9a96-ea3aebdcedb3.png) | ![image](https://user-images.githubusercontent.com/19204050/118848669-7b7cb700-b8be-11eb-9b79-a035e320063d.png) |




## Steps to Reproduce

```dart
SizedBox(
  height: 44,
  child: Center(
    child: Image.network(
      'https://i.imgur.com/6V1VuQ9.png',
      height: 30,
    ),
  ),
)
```

`flutter build web --web-renderer=canvaskit`

```
[✓] Flutter (Channel origin/dev, 2.3.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.985], locale en-150)
    • Flutter version 2.3.0-1.0.pre at
    • Upstream repository remotes
    • Framework revision d97f41caed (3 weeks ago), 2021-04-30 12:35:21 -0700
    • Engine revision e7939e091e
    • Dart version 2.14.0 (build 2.14.0-48.0.dev)
```
Repository: excalidraw
Issue: SVG export error
Labels: bug

[example.zip](https://github.com/excalidraw/excalidraw/files/6510625/example.zip)
![image](https://user-images.githubusercontent.com/14358394/118856447-3fa21b80-b8d7-11eb-81bb-4f761d6e358f.png)
![image](https://user-images.githubusercontent.com/14358394/118856221-0073ca80-b8d7-11eb-95bd-028ec8dd5b81.png)
Repository: go
Issue: runtime: pMask index out of range errors
Labels: NeedsInvestigation

We're seeing some index out of range panics on the builders and internally that look like:

[2021-04-28T16:06:21-cbb3f09/freebsd-amd64-race](https://build.golang.org/log/ac842187e810e3246894a023b7d7171c9acfea6f)

If I were to guess, they're related to some of the scheduler changes that happened this cycle.

CC @prattmic
Repository: pytorch
Issue: link error on BatchNormImplBase<D, Derived>::pretty_print  when using icpc 
Labels: triaged,module: undefined reference

## 🐛 Bug

The file torch/csrc/api/src/nn/modules/batchnorm.cpp includes a template class member function as below:
 
`template <size_t D, typename Derived>
void BatchNormImplBase<D, Derived>::pretty_print(std::ostream& stream) const {
  stream << std::boolalpha
         << "torch::nn::BatchNorm" << D << "d("
         << this->options.num_features() << ", "
         << "eps=" << this->options.eps() << ", "
         << "momentum=" << this->options.momentum().value() << ", "
         << "affine=" << this->options.affine() << ", "
         << "track_running_stats=" << this->options.track_running_stats() << ")";
}`

Other members of the class BatchNormImplBase are defined in .h file, and only this ### **pretty_print** function is defined in a .cpp file.

When I use BatchNorm layer, and I do not call this **pretty_print** function in my application, the function seems not instantiated properly.  g++/gcc ignores this, but icpc linker recognizes this as a link error.

The message is listed below:

(.data._ZTVN5torch2nn17BatchNormImplBaseILm2ENS0_15BatchNorm2dImplEEE[_ZTVN5torch2nn17BatchNormImplBaseILm2ENS0_15BatchNorm2dImplEEE]+0x48): undefined reference to `torch::nn::BatchNormImplBase<2ul, torch::nn::BatchNorm2dImpl>::pretty_print(std::ostream&) const'

/u/shlong/dlxpp/sas_torch/obj/laxnd/yolo5_modules.o:(.data._ZTVN5torch2nn17BatchNormImplBaseILm2ENS0_15BatchNorm2dImplEEE[_ZTVN5torch2nn17BatchNormImplBaseILm2ENS0_15BatchNorm2dImplEEE]+0x138): undefined reference to `virtual thunk to torch::nn::BatchNormImplBase<2ul, torch::nn::BatchNorm2dImpl>::pretty_print(std::ostream&) const'
Repository: neovim
Issue: checkhealth inside tmux chokes on broken tmux binary
Labels: bug,runtime

### In short
`:checkhealth` inside tmux runs `tmux show-option -qvg escape-time`. On my system (tmux version 2.6) this command hangs and enter some really strange unresponsive state where stuff like ctrl-c/d just prints code to the terminal instead of exiting this state. This causes neovim `:checkhealth` to run indefinitely. 

### More details
- `nvim --version`: NVIM v0.5.0-dev+1233-g82ac44d01
- Operating system/version: Ubuntu 18.04
- Terminal name/version: Wezterm connected in ssh mode
- `$TERM`: screen-256color
- `echo $0`: -bash
- `tmux -V`: Both "tmux2.6" and "tmux 3.1b"

### Steps to reproduce
I first noticed this issue because I have a strange tmux2.6 behavior, see [this superuser question](https://superuser.com/questions/1648417/tmux-list-sets-my-shell-in-an-unresponsive-state). For example running `tmux show-option -qvg escape-time` (which is one of the commands that `:checkhealth` runs) with my broken tmux2.6 enters an unresponsive state which I have no idea how o exit.

So then when `:checkhealth` is performed the tmux command that is checked likely hangs and so hangs nvim.

A more reproducible way is to replace `tmux` with something really bad, like `yes`
```
mv /usr/bin/tmux /usr/bin/tmux.hidden
cp /usr/bin/yes /usr/bin/tmux
tmux.hidden
nvim -u NORC
:checkhealth
```

### Actual behaviour 1 (with yes camouflaging as tmux)
Hitting ctrl-c while waiting for checkhealth to complete
```
Running healthchecks...munmap_chunk(): invalid pointer
                                                      Aborted (core dumped)
```
### Actual behaviour 2 (with yes camouflaging as tmux)
Waiting 1 minute for checkhealth to complete resulted in
```
Running healthchecks...Killed
```
and then being back at the terminal prompt with neovim killed. After this the STDIN is also broken/unavailable:
```
> cat
cat: -: Resource temporarily unavailable
```

### Actual behavior 3 (with (broken?) tmux2.6 as tmux)
After doing `:checkhealth` neovim is unresponsive forever (>5 minutes) and after pressing ctrl-c exactly 4 times, it gets unstuck and the checkhealth output for tmux looks like this:
```
## tmux
  - ERROR: command failed: tmux show-option -qvg escape-time

  - ERROR: command failed: tmux show-option -qvg focus-events

  - INFO: Checking stuff
  - INFO: $TERM: screen-256color
  - ERROR: command failed: tmux show-option -qvgs default-terminal
```

### Expected behaviour
Robust reaction to long-running or crashing tmux. Neovim should have a quick timeout on all commands it tests.
Repository: terminal
Issue: Retro Terminal Effect looks bad with 125% screen scaling
Labels: Help Wanted,Area-Rendering,Issue-Bug,Product-Terminal,Priority-3

### Windows Terminal version (or Windows build number)

 1.7.1033.0

### Other Software

_No response_

### Steps to reproduce

The Retro Terminal Effect looks very nice with 100% screen scaling (selected in Windows Screen settings), but looks a little bit off when screen scaling is set to 125% (which is the default on my 1920*1080 laptop screen). With 100% screen scaling, the "scan lines" look evenly distributed, but they do not with 125% scaling. I'm attaching screenshots with both scaling factors in the "Expected behavior" and "Actual behavior" sections for comparison.

### Expected Behavior

The expected behavior would be evenly distributed scan lines at any screen scaling setting, as seen on this screenshot at 100% scaling: 
![100 percent scaling](https://user-images.githubusercontent.com/27691677/118873259-84b65580-b8b7-11eb-9b73-04473fabac2d.png)


### Actual Behavior

The scan lines look uneven at 125% screen scaling, as seen on this screenshot:
![125 percent scaling](https://user-images.githubusercontent.com/27691677/118873333-a0216080-b8b7-11eb-93bf-50ff50e6e626.png)
Repository: pytorch
Issue: Some cuda objects take very long time to build
Labels: module: build,module: cuda,triaged,enhancement

## 🚀 Feature

Some cuda objects take very long time to build. It would be nice to speed up those build, e.g. split into multiple source files.

- **726.0s** aten/src/ATen/native/cuda/torch_cuda_generated_PowKernel.cu.o
- **161.0s** aten/src/ATen/native/cuda/torch_cuda_generated_UnaryGammaKernels.cu.o
- **72.0s** aten/src/ATen/native/cuda/torch_cuda_generated_IndexKernel.cu.o
- **53.0s** aten/src/ATen/native/cuda/torch_cuda_generated_TensorTopK.cu.o
- **52.0s** aten/src/ATen/native/cuda/torch_cuda_generated_BinaryMiscBackwardOpsKernels.cu.o

Tested on Intel i9-7900x CPU, cuda 11.3 on Linux, at commit 4d7abdbdadd440cb4b8412f1e309cae14a687b49. Built with ninja.

cc @malfet @seemethere @walterddr @ngimel @ptrblck
Repository: TypeScript
Issue: normalizeSlashes should probably no-op on *nix
Labels: Needs Investigation,Domain: Performance

As @dmichon-msft [pointed out](https://github.com/microsoft/TypeScript/pull/44100/files#r634724812), Linux file names can contain backslashes, so indiscriminately converting them into forward slashes is probably a bad idea.  Redefining `normalizeSlashes` as the identity function on non-Windows platforms would also be a perf win, since it's very hot code.  The biggest concern is that someone might be depending on this (e.g. I think you can use backslashes in paths in tsconfig.json).
Repository: go
Issue: cmd/go: "cannot find module providing package" errors stutter on package name
Labels: NeedsInvestigation,GoCommand,modules

```
$ go mod tidy
go: finding module for package example.net/m
example.com/pkg imports
        example.net/m: cannot find module providing package example.net/m: no modules on example.net

-- go.mod --
module example.com

go 1.17
-- pkg/example.go --
package example

import _ "example.net/m"
```

This error message is suboptimal: it gives a package import stack ending with `example.net/m`, but then includes the redundant substring `package example.net/m` in the error message.

CC @jayconrod @matloob
Repository: terminal
Issue: til::rle - Add debug checks to containers and iterators
Labels: Product-Meta,Issue-Task,Area-CodeHealth

# Description of the new feature/enhancement

The following would be "nice to haves" for `til::rle`:
* [ ] debug assertions to ensure no zero-length runs are inserted (this would break `til::rle::scanner`)
* [ ] checked iterators
Repository: pytorch
Issue: [rfc] Bug developers about release notes for new APIs
Labels: triaged,better-engineering

Right now it's very easy to add (or remove!) a public API to `torch` without anyone noticing. #58610 has a proof-of-concept script that walks all the reachable APIs in `torch` and prints them out. We could keep a log of these on master in S3 then diff that against PRs. This would then give us a listing of new APIs per PR. We could then take it a step further and error out unless the commit message contains something like:

```
### Release Notes
* <insert text here>
```

This would help on gathering release notes for releases and prevent devs from accidentally adding public APIs

cc @pytorch/pytorch-dev-infra
Repository: pytorch
Issue: GPU 0 context created on GPU 1 worker when using pin_memory=True
Labels: module: dataloader,module: cuda,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
While trying to enable pin_memory=True on fairseq (https://github.com/pytorch/fairseq/pull/3560) I noticed that a GPU 0 context was being created on the GPU 1 worker. I eventually root caused this to the following code in dataloader.py:

https://github.com/pytorch/pytorch/blob/8cf85a1152952af3c25f3ea6eee904d4af02fb1f/torch/utils/data/dataloader.py#L930

The problem is that fairseq is creating a worker thread which as a side-effect of iterating creates the pin_memory thread.

https://github.com/pytorch/fairseq/blob/d6855baec88f99ac776962027b91d404fe917eea/fairseq/data/iterators.py#L548

The worker thread gets the default device of GPU0. I worked around by calling `torch.cuda.set_device()`. This was a hard bug to track down. Not sure how to avoid this. Perhaps torch could add a threading wrapper similar to `torch.multiprocessing` that would ensure default device is consistent across threads.

Note: The GPU 1 worker immediately calls `torch.set_device()` after process creation. The problem is that sub-threads do not inherit the context of the main thread.

## To Reproduce

Steps to reproduce the behavior:

1.
1.
1.

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0):
 - OS (e.g., Linux):
 - How you installed PyTorch (`conda`, `pip`, source):
 - Build command you used (if compiling from source):
 - Python version:
 - CUDA/cuDNN version:
 - GPU models and configuration:
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @ngimel @SsnL @VitalyFedyunin @ejguan
Repository: godot
Issue: Black screen after toggling Full Screen on and off in Windows 10
Labels: bug,platform:windows,topic:rendering,topic:editor,needs testing

**Godot version:**
3.3.1 32 and 64 bit
It also happens in: 3.2.3 64 bit, 3.3 64 bit

**OS/device including version:**
Windows 10 Pro 20H2 19042.985
AMD Ryzen 9 5900X
32GB Ram
Nvidia GTX 780   Driver version 466.47
Happens with both GLES2 and GLES3

So far I've only reproduced it on 1 computer, it did not happen on 4 others.

**Issue description:**
After toggling full screen mode on and off  the screen goes completely black


**Steps to reproduce:**
Run Godot and click New Project
Press Shift + F11 in the Editor to go to Full Screen
Press Shift + F11 again to exit
Result: The screen is now completely black

Pressing Alt + Tab, Windows Key, Alt + F4 does nothing, the screen is still black.

If you press Ctrl+Alt+Del it does show the windows full screen menu, then press cancel, everything draws normally.
From now on pressing Shift + F11 multiple times does work correctly.


**Minimal reproduction project:**
No Project needed, it's reproducible in the editor, and happens in games.
Repository: rust
Issue: rustdoc: confusing sidebar for items with multiple impls (like `Any`)
Labels: T-rustdoc,A-rustdoc-ui

The sidebar for `Any` has three definitions of each of its methods:

<img width=150 src=https://user-images.githubusercontent.com/220205/118901372-f39baa80-b8c7-11eb-8338-52a43da09aff.png>

If you click through to, say, each of the definitions of `downcast_mut`, it's not clear what the distinction between them is:

![image](https://user-images.githubusercontent.com/220205/118901445-2776d000-b8c8-11eb-9b58-7e3d94af3502.png)

![image](https://user-images.githubusercontent.com/220205/118901467-3493bf00-b8c8-11eb-8ea7-aa679919aa80.png)

![image](https://user-images.githubusercontent.com/220205/118901484-3d849080-b8c8-11eb-9d30-25f13c1d2389.png)

---

If you collapse all the methods, it's becomes a bit clearer: `Any` has three different implementation blocks:

```
impl dyn Any + 'static
impl dyn Any + 'static + Send
impl dyn Any + 'static + Send + Sync
```

One thing that could help a little would be to tweak the sidebar sorting so methods from different impls are grouped together. Perhaps even better would be to put horizontal bars between impls in the sidebar.

It would also be nice to have more context when you jump directly to one method of a struct that has multiple impls. The context should ideally indicate "this is for impl X; there are N impls for this struct," but I'm not sure exactly how it should look.
Repository: rust
Issue: Unstable fingerprints: defined_lang_items
Labels: A-testsuite,T-bootstrap,C-bug

Unfortunately, don't really have much on this. Encountered when rebasing a rustc branch onto the current master and running tests. Tests where error happened:
- ui/associated-type-bounds/traits-assoc-type-macros.rs
- ui/async-await/issues/issue-64964.rs

Error:
```
thread 'rustc' panicked at 'Found unstable fingerprints for defined_lang_items(std[f5e7]): [(DefId(1:426 ~ std[f5e7]::f32::{impl#0}), 27), (DefId(1:519 ~ std[f5e7]::f64::{impl#0}), 28), (DefId(1:9591 ~ std[f5e7]::panicking::begin_panic_handler), 91), (DefId(1:9615 ~ std[f5e7]::panicking::begin_panic), 92), (DefId(1:9454 ~ std[f5e7]::alloc::rust_oom), 96), (DefId(1:9655 ~ std[f5e7]::rt::lang_start), 98), (DefId(1:7150 ~ std[f5e7]::process::Termination), 106), (DefId(1:6426 ~ std[f5e7]::panic::UnwindSafe), 134), (DefId(1:6427 ~ std[f5e7]::panic::RefUnwindSafe), 135)]', /home/hueyj/temp/rust/rust/compiler/rustc_query_system/src/query/plumbing.rs:619:9
```
Repository: ant-design
Issue: Add a more eye-catching indicator to the progress component
Labels: help wanted,💡 Feature Request,Inactive

- [ ] 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?
improve user experience by displaying a more eye-catching progress item

Please see example image:

![antdesignprogress](https://user-images.githubusercontent.com/72045538/118907813-34a6b580-b8ee-11eb-8ad7-5ee4bf795c1e.jpg)

### What does the proposed API look like?

add property "dot":

```
<Progress 
    percent={80} 
    dot={true}
    width={64} 
    type="dashboard" 
/>

<Progress 
    percent={80} 
    dot={{ size: 8 }}
    width={64} 
    type="dashboard" 
/>
```


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: [Google One Tap SignIn] Support this feature from flutter
Labels: c: new feature,platform-android,p: google_sign_in,package,c: proposal,P3,team-android,triaged-android

## Use case

I want to suggest to my users to sign in with Google when the app starts, like this:

![image](https://user-images.githubusercontent.com/76348/118915629-f233a780-b8f2-11eb-9a7b-3ee0f077517c.png)

## Proposal
Maybe adding a method `startOneTapSignIn` that starts it and returns the same as current `signIn` method

```dart
final _googleSignIn =
        GoogleSignIn(scopes: ['email'], clientId: oauthClientId);

final result = await _googleSignIn.startOneTapSignIn();
```