sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: out variant of many loss functions are not consistent with non-out variant when reduction is not none
Labels: module: cpp,module: nn,module: loss,triaged,module: reductions

## 🐛 Bug

The out variants of `l1_loss`, `mse_loss`, `smooth_l1_loss`  loss functions implement the reduction with `.mean(dim=0)` while non-out variants of the same loss functions implement the reduction with `.mean()` which should be the correct behavior.

## To Reproduce

```
auto input = torch::randn({5,6});
auto target = torch::randn({5,6});

auto result = torch::empty_like(input);
at::mse_loss_out(result, input, target);
auto output = at::mse_loss(input, target);

ASSERT_EQ(result.sizes(), output.sizes()); // This should fail because result has size {6} and out has size {}
```

## Expected behavior

They should be consistent

## Environment

PyTorch version: 1.8.0a0+3435892
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.1 LTS (x86_64)
GCC version: (Ubuntu 8.4.0-3ubuntu2) 8.4.0
Clang version: Could not collect
CMake version: version 3.16.3

Python version: 3.8 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce RTX 3070
Nvidia driver version: 455.38
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.4
[pip3] pytorch-sphinx-theme==0.0.19
[pip3] torch==1.8.0a0
[conda] numpy                     1.19.4                   pypi_0    pypi
[conda] pytorch-sphinx-theme      0.0.19                   pypi_0    pypi
[conda] torch                     1.8.0a0                   dev_0    <develop>



cc @yf225 @glaringlee @albanD @mruberry @jbschlosser
Repository: go
Issue: net/http: client should not include raw header values in error messages
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15.6 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/elibishop/Library/Caches/go-build"
GOENV="/Users/elibishop/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/elibishop/.gvm/pkgsets/go1.15.6/global/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/elibishop/.gvm/pkgsets/go1.15.6/global"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/elibishop/.gvm/gos/go1.15.6"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/elibishop/.gvm/gos/go1.15.6/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/elibishop/work/test/goheaderbug/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c8/g71crjpd18nc6jkdykcvp_ww0000gn/T/go-build182950335=/tmp/go-build -gno-record-gcc-switches -fno-common"

</pre></details>

### What did you do?

```go
package main

import (
	"fmt"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "http://worldtimeapi.org/api/timezone", nil)
	req.Header.Add("Authorization", "my-secret-key\n")
	_, err := http.DefaultClient.Do(req)
	fmt.Println(err)
}
```

### What did you expect to see?

Since a newline isn't a valid character in an HTTP header value, I would expect Go's HTTP client to return an error complaining about a bad header. And it does, but...

### What did you see instead?

`Get "http://worldtimeapi.org/api/timezone": net/http: invalid header field value "my-secret-key\n" for key Authorization`

I think it's highly undesirable to include the full actual header value in an error message like this, since it's very common to write the message for any I/O error into the application log. In this particular example it's especially inappropriate since this is specifically the `Authorization` header, whose value is virtually guaranteed to be sensitive information, but really any header value could be sensitive.

This is not a contrived example - one of our customers accidentally included a newline suffix in the API key they provided to our library, and they were very unhappy to see that the key ended up in their log because our code was logging I/O errors.
Repository: godot
Issue: mono glue not found
Labels: topic:buildsystem,topic:dotnet

**Godot version:**
4.0 master from 08.01

dunno if it's the right repo

**OS/device including version:**
win7 desktop


**Issue description:**
![image](https://user-images.githubusercontent.com/26692947/104227057-da867700-5459-11eb-8dc5-cd7dc0c190e7.png)

although it is present

![image](https://user-images.githubusercontent.com/26692947/104227663-ce4ee980-545a-11eb-9ac5-b67c1f4ca2ce.png)



**Steps to reproduce:**
do it as said in the docs
Repository: godot
Issue: SetAnimationSpeed problem
Labels: bug,discussion,topic:core,confirmed

<!-- 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.4 beta 5 mono

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
win10 home 64

**Issue description:**
<!-- What happened, and what was expected. -->

Setting the speed animation in each frame causes animation freezes.
In this code you can press the up and down arrows continuously to set animation speeds quickly, in some moments, when the speed is set to the maximum, the sprite stays totally stopped for a few moments (sometimes longer and other times less weather).

In this gif the value at which the animation is set is printed in each frame, you can clearly see how the sprite stops at certain times even though its animation is set at a high speed.
![gif](https://user-images.githubusercontent.com/19652075/104230786-4f53b400-544e-11eb-8f3e-e2cd7fcb48cb.gif)

![3](https://user-images.githubusercontent.com/19652075/104231331-149e4b80-544f-11eb-947a-97b2db3b76f7.png)

**Steps to reproduce:**
Press the up and down cursors and assign different speeds to the animation, observe how the animation plays and how it stops at certain moments that it should not, since it has assigned a speed different from 0.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[testAnimSpeed.zip](https://github.com/godotengine/godot/files/5798033/testAnimSpeed.zip)
Repository: rust
Issue: Aligned-in-packed restriction can be circumvented with generic parameters
Labels: T-lang,T-compiler,C-bug,A-layout,A-align,A-repr-packed

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=596ca7ba423417b421439fa86cc57e9c

See also https://github.com/rust-lang/rfcs/issues/3060

The effective layout seems to correspond to the layout used on non-MS platforms. This is quite useful to circumvent the restriction and I'll have to make use of it to interact with certain C apis as described in the RFC issue. So please don't remove it.
Repository: transformers
Issue: Siamese Multi-depth Transformer-based Hierarchical Encoder
Labels: New model,Feature request

# 🌟 New model addition

## Model description
Recently Google is published paper titled ["Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matching"](https://arxiv.org/abs/2004.12297). And according to paper for long-form document matching SMITH model outperforms the previous state-of-the-art models including hierarchical attention, multi-depth attention-based hierarchical recurrent neural network, and BERT.

I feel it is will add value to already awesome transformers models collection :slightly_smiling_face:

<!-- Important information -->

## Open source status

* [X] the model implementation is available: https://github.com/google-research/google-research/tree/master/smith
* [X] the model weights are available: [SMITH-WP+SP model checkpoint](http://storage.googleapis.com/gresearch/smith_gwikimatch/smith_wsp_pretrain_ckpt_opensource.zip) and [GWikiMatch data](http://storage.googleapis.com/gresearch/smith_gwikimatch/gwikimatch_open_source.zip)
* [X] who are the authors: https://github.com/yangliuy, https://github.com/eladeban
Repository: flutter
Issue: Investigate reducing number of stack frames used to render non-UI widgets
Labels: c: crash,framework,P3,team-framework,triaged-framework

Spawned from https://github.com/flutter/flutter/issues/72167

The app that experienced the stack overflow (causing the bug to be reported) had ~160 nested Provider widgets sitting on top of their widget tree.  One idea that was floated is to shrink the number of frames used up by non-UI widgets like `InheritedWidget`, `Provider`, etc.  We should investigate this option.
Repository: pytorch
Issue: ValueError: optimizer got an empty parameter list
Labels: module: optimizer,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

```python3
import torch

class Model(torch.nn.Module):
    pass

model = Model()
optim = torch.optim.Adam(model.parameters())
```

raises

```
ValueError: optimizer got an empty parameter list
```

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

Sometimes models happen to have no PyTorch parameters, possibly due to an automated construction or modification process. They should be treated [uniformly](https://github.com/pytorch/pytorch/issues/4582#issuecomment-755944010), not as a special case.

## Environment

```
Collecting environment information...
PyTorch version: 1.7.0
Is debug build: True
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 11.1 (x86_64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.28)
CMake version: version 3.19.2

Python version: 3.8 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.7.0
[pip3] torch-summary==1.4.3
[pip3] torchvision==0.8.1
[conda] numpy                     1.18.5                   pypi_0    pypi
[conda] torch                     1.7.0                    pypi_0    pypi
[conda] torch-summary             1.4.3                    pypi_0    pypi
[conda] torchvision               0.8.1                    pypi_0    pypi
```

cc @vincentqb
Repository: godot
Issue: Unused signal warning when using ternary if-expression in emit_signal argument
Labels: bug,topic:gdscript,topic:editor

**Godot version:**
3.2.4 Beta 4

**OS/device including version:**
Win 10

**Issue description:**
More a mild annoyance than a bug: The ternary if-expression in the statement

    emit_signal("level_completed" if (game_state == COMPLETED) else "level_failed")

works fine, but is incorrectly evaluated in the editor, leading to a warning claiming neither "level_completed" nor "level_failed" are ever emitted:

![image](https://user-images.githubusercontent.com/22897030/104248042-170d9f00-5469-11eb-8319-e4c9a9da1463.png)

**Steps to reproduce:**
1) Declare two signals
2) Use emit_signal with a ternary if-expression as shown above
Repository: PowerToys
Issue: Filename spellcheck
Labels: Idea-New PowerToy,Product-PowerRename,Product-File Explorer

Was using power rename and noticed a bunch of files had spelling mistakes so I was thinking a way to bulk spell check filenames might be nice with the user able to correct the detected errors by typing in a new  filename for detected errors or use a suggested auto correct

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: PowerToys
Issue: A better Problem Steps Recorder
Labels: Idea-New PowerToy

**Status Quo:**
- Currently **Windows Feedback Hub** is using Problem Steps Recorder (PSR) to record screenshots to gather examples on issue report, see screenshot below.
- **Microsoft Support** (or external contractors as Convergys) for on-premises products and M365 / Azure does rely on PSR all the time.

**Problem:**
- PSR is creating MHT files only
- PSR by default set to record only 25 steps (can be adjusted but not very visibly to the user
- it is a quite unreliable tool, especially with multiple screens and recognition
- MHT files are not supported (due security reaons I have read) by modern browser like Edge Chromium, Firefox or other Chromium based Browsers
- Internet Explorer is the only Browser able to open MHT files but this one is deprecated as well and should be phased out soon
- PSR and Internet Explorer are already on the list of "optional features" in Windows Settings, and IE is actively removed in home and business.

**Proposal:**
- include a PSR like tool 
- make it compatible to save as animated gif or other formats
- make it possible to select one or more screens and areas, similar to snip and sketch
- if PM find this unsuitable for Powertoys, as Feedback Hub needs it and so insiders and W10 users would need to install Powertoys only for the matter of recording steps, please consider to pass this idea on to Windows Team around Jennifer G. to include this feature into Snip and Sketch directly. 

**Technical Requirements:**
it is important that the new tool does work with Windows Server 2019 or later, Windows Server for Azure Stack HCI, Hyper-V Server
it is important that the new tool does work with Windows Server 2019 Core or later

Because otherwise steps could not be recorded for infracstructure services, VMs, Microsoft Server Products just as Exchange. 

Reasons: Store based Apps do not exist such as Snip and Sketch app, as well as Windows Feedback Hub app does not exist on Windows Server. 
Therefore the integration into Powertoys as an MSI based application might be a good solution.

- tool feature references:
> Carnac
> Screen2Gif

- remote related discussion (twitter)
https://twitter.com/tweet_alqamar/status/1301259072168235008

- related screenshots
reproduce / record where PSR is used in Feedback hub
![image](https://user-images.githubusercontent.com/45657752/104252186-a919a580-5471-11eb-90c6-fc8fd61f5d8f.png)
legacy PSR Tool
![image](https://user-images.githubusercontent.com/45657752/104252993-bb94de80-5473-11eb-93dc-1393ab063692.png)

legacy PSR Tool rather hidden options to record more steps
![image](https://user-images.githubusercontent.com/45657752/104253135-129ab380-5474-11eb-9f7a-7362367a5099.png)

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: godot
Issue: get_point_left_tangent broken?
Labels: bug,topic:core,documentation

**Godot version:** 3.2.3 official



**OS/device including version:** MacOS 11.1 (Big Sur)



**Issue description:**
 in class Curve instances, get_point_left_tangent returns tan(angle) instead of the angle in degrees as specified in the doc: https://docs.godotengine.org/en/stable/classes/class_curve.html#class-curve-method-get-point-left-tangent



**Steps to reproduce :**
Add a node with a variable curve exported, modify to ease in (left click -> charge -> ease in. Try to make the second point angle to horizontal axis 45°. Print get_point_left_tangent(1), it should be 45° following doc, but isn't. However if you print 180*atan(lAgl)/PI it works as expected in the doc.


**Minimal reproduction project:**
[tangentAngleBug.zip](https://github.com/godotengine/godot/files/5799025/tangentAngleBug.zip)
Repository: rust
Issue: Mention expectation of `{` for parse error immediately after `async` in expressions
Labels: C-enhancement,A-diagnostics,A-parser,P-low,T-compiler,D-papercut

The following code

https://github.com/rust-lang/rust/blob/fe531d5a5f1404281e3fb237daaf87b8180bd13d/src/test/ui/parser/block-no-opening-brace.stderr#L34-L40

should also mention an expectation for an open brace `{`, and potentially even suggesting a new block, like the other test cases in that file.
Repository: PowerToys
Issue: integration of DISM info
Labels: Idea-Enhancement,Product-File Explorer,Product-File Actions Menu

**status quo:**
Gathering information from CAB or DISM files using dism is not very comfortable because of the syntax. 
Especially if you often have to deal with WIM, CAB or ESD files such as people assigned to roles or tasks making the enterprise or home to StayCurrent in manner of SaaS.

**feature request:**
integrate DISM info into Powertoys 

There is this code snippet, which I hope you can include into Powertoys with the permission of the original creator, similar as you did with ImageResizer

https://pastebin.com/MuAZGUyj

legal requirements:
ask the owner

technical requirements:
none I can think of, MSI / MSIX setup can integrate Regkeys and also remove them safely with the package.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: TypeScript
Issue: Document WebGLContextAttributes
Labels: Bug,Help Wanted,Domain: lib.d.ts

# lib Update Request

## Configuration Check

My compilation *target* is `ES2015` and my *lib* is `the default`.

## Missing / Incorrect Definition

Missing documentation in `interface WebGLContextAttributes` [lib.dom.d.ts, line 1960](https://github.com/microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L1960)

## Sample Code

The missing documentation results in gaps in auto-generated documentation for rendering libraries, i.e [Babylon.js - EngineOptions](https://doc.babylonjs.com/typedoc/interfaces/babylon.engineoptions).

## Documentation Link

WebGLContextAttributes definitions can be found at [WebGL Context Creation Spec](https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2.1).
Repository: ant-design
Issue: Select component requires tapping twice on tablet
Labels: Inactive,📱Mobile Device

- [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://ant.design/components/select/](https://ant.design/components/select/)

### Steps to reproduce
1) Using a Tablet (iPad), navigate to Select component
2) Look for :
        Select with search field
        Search the options while expanded.
3) Tap on Select a Person
4) Tap on any options (Nothing happens, it's not being selected and menu doesn't dismisses)
5) Tap on the same option again (Menu dismisses)

### What is expected?
Should not require user to tap twice

### What is actually happening?
Requires user tapping twice

| Environment | Info |
|---|---|
| antd | 4.8.0 |
| React | 16.13.1 |
| System | MacOS |
| Browser | Chrome |

---
I am aware that there's a "Mode" for multiple | tags, but i am trying to do a drop down select for single


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: 'Resources To Open In New Inspector' - 'Resource' as entry misbehaving
Labels: bug,topic:editor

<!-- 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.stable.mono.official

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Win10

**Issue description:**
<!-- What happened, and what was expected. -->
Currently the inspector for sub-resources (resources inside other objects or arrays) is bugged (looks different to the normal inspector and has missing entries).
Through tests i discovered that submitting the sub-resource for editing to the inspector through the editorinterface is a possibility to display the correct inspector interface for even the sub-resource (as it's now displayed in full). 

The editor-setting under 'Interface/Inspector/Resources To Open In New Inspector' is there, as i understand it, to make certain resources not foldouts but also be submitted to the inspector panel directly. But this doesn't work for 'Resource' itself (for sub-resources).
After putting that in, clicking a sub-rresource just does nothing anymore (it's neither expanded, nor is it opened in a new inspector).

**Steps to reproduce:**
Create an array of resources somewhere, create a resource in it, enter 'Resource' in the mentioned editor setting, then click the resource inside that array.
Repository: rust
Issue: "Unused macro" lint still fires when a private macro 2.0 is used in a public macro 2.0
Labels: A-lints,A-visibility,A-macros,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=nightly&mode=debug&edition=2018&gist=5a4cf00d0900820bf46f9759fc2c5f4d)):

```rust
#![feature(decl_macro)]

macro inner {
    () => {
        // private implementation
    }
}

pub macro public {
    () => {
        $crate::inner!()
    }
}

// ...more macros that use inner()...
```

I expected to see this happen: the code compiles with no errors or warnings.

Instead, this happened: the "unused macro definition" lint is tripped:
```
warning: unused macro definition
 --> src/lib.rs:3:1
  |
3 | / macro inner {
4 | |     () => {
5 | |         // private implementation...
6 | |     }
7 | | }
  | |_^
  |
  = note: `#[warn(unused_macros)]` on by default
```

It appears that the lint is not satisfied unless there are uses of it in the same crate; in other words, using `public!` in another crate doesn't satisfy the lint.

### 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`:
```
cargo 1.50.0-nightly (75d5d8cff 2020-12-22)
release: 1.50.0
commit-hash: 75d5d8cffe3464631f82dcd3c470b78dc1dda8bb
commit-date: 2020-12-22
```

@rustbot modify labels: +A-lint +A-macros-2.0 +A-visibility