sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [typing] ModuleDict ctor has wrong signature
Labels: module: typing,triaged

## 🐛 Bug

It takes `Dict[str, Module]` but accepts `Dict[str, Optional[Module]]`
Repository: excalidraw
Issue: set up a `postinstall` script to copy `excalidraw-assets` to `public`
Labels: package:excalidraw

Provided `public` exists in root folder. It's super annoying having to manually copy from `node_modules/@excalidraw/excalidraw/dist`.

/cc @ad1992 thoughts?
Repository: excalidraw
Issue: Memory leak
Labels: bug

Unclear what the cause is yet, or what part of the app is affected.

repro: 

1. load https://dcych.csb.app/
2. switch between the scenes a couple times
3. check RAM (OS resource monitor), or chrome process monitor (Shift+Esc)
Repository: godot
Issue: `get_viewport().get_texture()` appears too bright when exported to HTML5 (GLES3)
Labels: bug,platform:web,topic:rendering,needs testing,topic:2d

### Godot version

3.3.2.stable.official

### System information

Windows 10, Chrome / Firefox, RTX 2080

### Issue description

I'm using get_viewport().get_texture() to capture the viewport to make a transition from a scene to another.

On Windows it works fine, but when using HTML5 export, the captured texture is way too bright:

![image](https://user-images.githubusercontent.com/1839757/124400722-f9890600-dd24-11eb-84be-e27cc148217c.png)

Occurs on Chrome and Firefox

### Steps to reproduce

Open minimal reproduction project and test on Windows and in Chrome

### Minimal reproduction project

[HTMLViewportTooBright.zip](https://github.com/godotengine/godot/files/6760676/HTMLViewportTooBright.zip)
Repository: node
Issue: Fix PATH under Windows
Labels: install

* **Version**: v16.2.0
* **Platform**: Microsoft Windows NT 10.0.19041.0 x64
* **Subsystem**: installer

### What steps will reproduce the bug?

Description in documentation [here](https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows).

### How often does it reproduce? Is there a required condition?

Description in documentation [here](https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows).

### What is the expected behavior?

Ordering of PATH should be handled by Node.js installer, not by manual action of user or third-party script.

### What do you see instead?

Documentation that recommends manually fixing PATH or to use a third-party script.

### Additional information

?
Repository: pytorch
Issue: Pytorch 1.5+ is slower than pytorch 1.3
Labels: needs reproduction,module: performance,triaged

Hi, I use solov2 for instance segmentation and I found that the inference speed of using pytorch 1.5+ is about 3 times slower than pytorch 1.3.

The codes are almost the same except changing AT_CHECK to TORCH_CHECK in pytorch 1.5+.

The base docker images are pytorch/pytorch:1.3-cuda10.1-cudnn7-devel , pytorch/pytorch:1.9.0-cuda11.1-cudnn8-devel and 1.6.0-cuda10.1-cudnn7-devel.
Repository: pytorch
Issue: error: invalid conversion in vec256_bfloat16.h
Labels: module: build,triaged

Excuse me,when I building libtorch using CMake,I met the following error:

In file included from ../aten/src/ATen/cpu/vec/vec256/vec256.h:12,
                 from ../aten/src/ATen/cpu/vec/vec.h:1,
                 from aten/src/ATen/native/cpu/FillKernel.cpp.AVX2.cpp:3:
../aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h: In member function ‘at::vec::{anonymous}::Vectorized<c10::BFloat16> at::vec::{anonymous}::Vectorized<c10::BFloat16>::acos() const’:
../aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:248:16: error: invalid conversion from ‘__m256 (*)(__m256)’ {aka ‘__vector(8) float (*)(__vector(8) float)’} to ‘const __m256 (*)(__m256)’ {aka ‘const __vector(8) float (*)(__vector(8) float)’} [-fpermissive]
     return map(Sleef_acosf8_u10);


### The command I used:
rm -rf build
mkdir build
cd build
cmake -G Ninja -DBUILD_SHARED_LIBS:BOOL=ON -DPYTHON_EXECUTABLE:PATH=/home/ps/anaconda3/envs/py37/bin/python3 -DCMAKE_BUILD_TYPE:STRING=Release ..
ninja

### Environment:
Ubuntu 18.04
pytorch-master
gcc-8.4 g++-8.4

How should I solve this problem?
Repository: deno
Issue: Permissions - enable glob patterns and relative paths for allow-lists (read/write)
Labels: suggestion

As I am getting comfortable writing modules and applications for Deno, it seems the permissions ability, despite being a big draw, is falling short of my anticipations. 

For example, take [`klick`](https://github.com/sramam/klick) - a snapshot library.

It needs permissions to read/write within a sub-directory. and that of a particular kind of file extension.

Ideally, I'd like to be able to use `--allow-read=./**/*.snapshot --allow-write=./**/*.snapshot`. 
Current implementation requires either absolute pathnames or `--allow-write` - which is essentially the whole system.
Absolute paths names, besides being really ugly, are not portable across system. So degrade the developer experience.
Glob-patterns that default to `${cwd}/*`  would be a very valuable constraint to add to the fs permissions. 

Perhaps similar sensible defaults for other permissions can be determined - I just haven't used them enough to have a good insight yet.
Repository: kubernetes
Issue: Fix TerminationGracePeriodSeconds is negative 
Labels: sig/node,kind/feature,lifecycle/frozen,needs-triage

<!-- Feature requests are unlikely to make progress as an issue.

Instead, please suggest enhancements by engaging with SIGs on slack and mailing lists.

A proposal that works through the design along with the implications of the change can be opened as a KEP:
https://git.k8s.io/enhancements/keps#kubernetes-enhancement-proposals-keps
-->

 * [x] Firstly release 1.22 #98866: 
     * Treat negative as 1 in delete path (pod/strategy.go, apiserver delete.go)
     * Allow delete with grace period 0 even if metadata period is negative (apiserver delete.go). This allows kubelet to delete pods.
     * Relax validation of immutable fields to allow it to be set to 1 if it was previously negative. This allows us to update read path in the next release. All consumers would also need to be able to handle this change in a sane manner.
 * [ ] Secondly release 1.27 #115606:
     * Treat negative as 1 (defaulting or conversion)
 * [ ] Thirdly:
     * Returning an error on Pod create could break things like Deployment updates. But if we update defaulting, then I think we won't hit this issue.

#### What would you like to be added:

https://github.com/kubernetes/kubernetes/pull/98866#issuecomment-849203505

#### Why is this needed:
Repository: pytorch
Issue: torch.quantization.fx.fuser forget to pass "additional_fuser_method_mapping" to fuse method
Labels: oncall: quantization,low priority,triaged,module: fx

## 🐛 Bug

Fuser class forget to get "additional_fuser_method_mapping" key from "fuse_custom_config_dict" and pass it to fuse method as the third param.

## To Reproduce

Steps to reproduce the behavior:

1. If anyone want to pass custom config by "additional_fuser_method_mapping", it will not working.


## Expected behavior

"additional_fuser_method_mapping" config should have effect.

## Environment

Pytorch >= 1.8


cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @ezyang @SherlockNoMad @EikanWang @wenzhe-nrv
Repository: angular
Issue: Enabling linker `sourceMapping` causes no sourcemaps to be emitted
Labels: type: bug/fix,area: compiler,P3,compiler: linker

<!--

Oh hi there!

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

-->


# Bug Report

### Affected Package
@angular/compiler-cli/linker

### Is this a regression?
No.


### Description
When using the `sourceMapping` linker option and Babel generates AST nodes that reference the external template files, babel will not emit any sourcemap.

## Minimal Reproduction
- git clone https://github.com/alan-agius4/LibExportTest2
- npm i
- ng build my-lib
- ng s


## Exception or Error
Sourcemaps for the library are not emitted.

## Your Environment

**Angular Version:**
<pre><code>
<!-- run `ng version` and paste output below -->
Angular CLI: 12.1.1
Node: 14.17.1
Package Manager: npm 6.14.13
OS: darwin x64

Angular: 12.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1201.1
@angular-devkit/build-angular   12.1.1
@angular-devkit/core            12.1.1
@angular-devkit/schematics      12.1.1
@schematics/angular             12.1.1
ng-packagr                      12.1.0
rxjs                            6.6.7
typescript                      4.3.5
</code></pre>

**Anything else relevant?**
CLI issue https://github.com/angular/angular-cli/issues/21271

It also appears that when this option is enabled the sourcemap is read directly from disk instead of using the sourcemap that is already in memory and accessible via the Babel API.

Couple of things I noticed while debugging this.

- The sourcemap happens to load because of the current fallback logic https://github.com/angular/angular/blob/a92a89b0eb127a59d7e071502b5850e57618ec2d/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.ts#L175-L182. This is because Webpack will remove `//# sourceMappingURL` from the source code when the a sourcemap is loaded.
- This also potential highlights a problem if the file/sourcemap is processed prior to the linker plugin, in which cases the sourcemap on disk would be out of sync. Therefore, IMHO the sourcemap provided via Babel API should be used instead of using what's on disk.
- In case one uses inline sourcemaps this logic will break, because there wouldn't be any sourcemapping information that the linker can read.
Repository: go
Issue: x/tools/gopls: field alignment warning has issues on custom types
Labels: NeedsInvestigation,gopls,Tools

<!--
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.16.5 linux/amd64
</pre>

<pre>
❯ gopls version
golang.org/x/tools/gopls v0.7.0
    golang.org/x/tools/gopls@v0.7.0 h1:JQBHW81Gsyim6iDjUwGoPeSpXrSqwen3isPJLfDfaYU=
</pre>

### 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="/home/karitham/.cache/go-build"
GOENV="/home/karitham/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/karitham/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/karitham/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.5"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3891545200=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

Have a struct with a custom type, for example

```go
// session/permission.go
type Permission int64

// ./session.go
type User struct {
	DeletedAt  sql.NullTime       `json:"deleted_at"`
	Email      string             `json:"email"`
	Name       string             `json:"name"`
	Password   string             `json:"password"`
	Permission session.Permission `json:"permission"`
	ID         int32              `json:"id"`
}
```

### What did you see?

`struct of size 72 could be 64`

### What did you expect to see instead?

No warning, since that same exact struct passes with <https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment>.

The warning also disappears if I replace my custom type with

```go
type User struct {
	DeletedAt  sql.NullTime `json:"deleted_at"`
	Email      string       `json:"email"`
	Name       string       `json:"name"`
	Password   string       `json:"password"`
	Permission int64        `json:"permission"`
	ID         int32        `json:"id"`
}
```

From my understanding, this issue only applied to types outside the standard library, since I get the issue on all the structs that contains custom types, either mines or from imported packages, such as <https://github.com/shopspring/decimal>'s decimal.Decimal
Repository: vscode
Issue: Interactive Window at the bottom of the screen
Labels: feature-request,interactive-window

<!-- ⚠️⚠️ 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. -->

Hi,

Thanks for creating this awesome coding environment!

One feature that I would like to be able to use is placing the Interactive Window at the bottom of the screen. For example, that it is a tab besides the [terminal, problems, output, debug console] options. This would be of value to me since sometimes I have to code on my laptop screen alone, and placing the python file and the interactive window screens side-to-side is not great for readability. This is especially the case if the Explorer view for files is also open, or when reading material on the a webpage that would be convenient to read side-by-side the vscode application.

Kind regards

Stefan
Repository: storybook
Issue: Nullable types
Labels: feature request,addon: controls

**Is your feature request related to a problem? Please describe**
I'm always frustrated when I need to set a control to `null`. 

**Describe the solution you'd like**
A *null* button next to each control type that has `nullable` enabled. Clicking the *null* button sets the value for the control to `null`.

**Describe alternatives you've considered**
None.

**Are you able to assist to bring the feature to reality?**
Nah.

**Additional context**
Nope.
Repository: rust
Issue: Feature Request: Focusing search results when directly navigating to rustdoc search
Labels: T-rustdoc,C-feature-request,A-rustdoc-search

When users type something like `!rust Box` into a search engine like DuckDuckGo, it will navigate you to the docs.rs std search like this: https://doc.rust-lang.org/std/?search=Box

The behavior I would like to see is that once I reach the search page, I can simply hit `Enter` to navigate to the first result: `std::boxed::Box`, or alternatively navigate between the different options just by immediately using the arrow keys -- i.e. not having to use the mouse. The current behavior is that I have to either click on the option I want with my mouse, or click into the search bar before I'm able to then use the arrow keys / `Enter` to get to my option.

Is it a possibility to make it so that when a search query page is directly navigated to, it can allow you to immediately interact with the search results via keyboard? Obviously we wouldn't want to steal input focus away from a user who is still typing their query in however, so that's an important distinction.

I'm also happy to have a go at implementing this feature myself, assuming this is something that people are happy to see integrated.

Cheers!
Repository: ant-design
Issue: Form.Item dependencies don't work when a partial resetFields is triggered
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.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-1gs2i?file=/index.js)

### Steps to reproduce
- Check hasName field to false.
- Click in "reset hasName" button

### What is expected?
The name field should be re-mount when the hasName value changes. The disabled state of name field should be synchronized with hasName form value.

### What is actually happening?
When `form.resetFields(["hasName"])` is called, the name field render is not updated.

| Environment | Info |
|---|---|
| antd | 4.16.6 |
| React | 17.0.2 |
| System | macOS Big Sur |
| Browser | Google Chrome 91.0.4472.114 (Official Build) (x86_64) |

---
Note that with `form.resetFields()` without params or changing the hasName value by radio field, the re-mount works.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Closures of different types that do not capture the environment are automatically coerced to function pointers
Labels: T-lang,C-bug

I tried this code:

```rust
fn returns_closure(maybe: bool) -> impl Fn(i32) -> i32 {
    if maybe {
        |x| x + 1
    } else {
        |y| y + 2
    }
}
```

I expected that the compilation would fail because the closures have different types:

```
error[E0308]: `if` and `else` have incompatible types
 --> src/main.rs:5:9
  |
2 | /     if maybe {
3 | |         |x| x + 1
  | |         --------- expected because of this
4 | |     } else {
5 | |         |y| y + 2
  | |         ^^^^^^^^^ expected closure, found a different closure
6 | |     }
  | |_____- `if` and `else` have incompatible types
  |
  = note: expected type `[closure@src/main.rs:3:9: 3:18]`
          found closure `[closure@src/main.rs:5:9: 5:18]`
```

Instead, the code compiles.

### Meta

#### Fails to compile (as expected)

`rustc +1.44 --version --verbose`:
```
rustc 1.44.1 (c7087fe00 2020-06-17)
binary: rustc
commit-hash: c7087fe00d2ba919df1d813c040a5d47e43b0fe7
commit-date: 2020-06-17
host: x86_64-apple-darwin
release: 1.44.1
LLVM version: 9.0
```

#### Compiles (unexpectedly)

`rustc +1.45 --version --verbose`:

```
rustc 1.45.2 (d3fb005a3 2020-07-31)
binary: rustc
commit-hash: d3fb005a39e62501b8b0b356166e515ae24e2e54
commit-date: 2020-07-31
host: x86_64-apple-darwin
release: 1.45.2
LLVM version: 10.0
```

`rustc +stable --version --verbose`
```
rustc 1.53.0 (53cb7b09b 2021-06-17)
binary: rustc
commit-hash: 53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b
commit-date: 2021-06-17
host: x86_64-apple-darwin
release: 1.53.0
LLVM version: 12.0.1
```

`rustc +nightly --version --verbose`
```
rustc 1.55.0-nightly (7c3872e6b 2021-06-24)
binary: rustc
commit-hash: 7c3872e6bfd555d2ad753ac1f871db3bd7f2a547
commit-date: 2021-06-24
host: x86_64-apple-darwin
release: 1.55.0-nightly
LLVM version: 12.0.1
```
Repository: terminal
Issue: Do the actually smart thing for `wt -w 0`
Labels: Product-Terminal,Issue-Task,Needs-Tag-Fix,Area-Remoting

### Windows Terminal version (or Windows build number)

Microsoft Windows NT 10.0.22000.0 (Windows 11 dev preview)

### Steps to reproduce

open quake window with windows + `

Run wt -w 0 nt



### Expected Behavior

Opens new tab in same window.

### Actual Behavior

Opens a new tab in a separate window → follow-up commands use that same window.


#### PS.
(if this is a dupe, I swear I searched)
Repository: pytorch
Issue: libtorch_cpu.so: undefined symbol: _ZN3c1010ThreadPool3runESt8functionIFvvEE
Labels: module: build,module: abi,triaged

It seem like the version of libtorch cause the error. But I test the different version of libtorch, and got the same error, how to solve it?
The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.0")
-- Caffe2: CUDA detected: 10.0
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.0
-- Found CUDNN: /usr/lib/x86_64-linux-gnu/libcudnn.so
-- Found cuDNN: v7.5.0 (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Autodetected CUDA architecture(s): 7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Found Torch: /project/libtorch-cxx11-abi-shared-with-deps-1.7.1+cu101/libtorch/lib/libtorch.so
-- Configuring done
-- Generating done
-- Build files have been written to:/project/Ultra-Fast-Lane-Detection/cpp/build
Scanning dependencies of target carimage_local
[ 50%] Building CXX object CMakeFiles/carimage_local.dir/src/maintest.cpp.o
[100%] Linking CXX executable carimage_local
[100%] Built target detect_project
./ detect_project: symbol lookup error: /project/libtorch-cxx11-abi-shared-with-deps-1.7.1+cu101/libtorch/lib/libtorch_cpu.so: undefined symbol: _ZN3c1010ThreadPool3runESt8functionIFvvEE