sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: ignore_index for nn_mse_loss
Labels: module: nn,module: loss,triaged,needs design,function request

Let's say I'm training a multi-output regression model, such as a continuous value at different discrete time points.  For some replicates, that random variable was observed at some time points but not others.  I can't throw out all replicates with partial missingness since pretty much every replicate has at least some unobserved time points.

Broadly speaking, I'm requesting the ability to specify certain values in the output which should be ignored for the purpose of backpropagating/updating. 

It seems like this feature is implemented for nn.CrossEntropyLoss via the ignore_index parameter. Unless I'm mistaken, implementing a similar parameter for nn_mse_loss would solve my problem--ie, missing values could be set to values outside the range of the data (e.g. -9999) and then setting ignore_index=-9999. 
The problem with this approach is that any default value for ignore_index in the context of nn_mse_loss could conceivably cause problems for someone's dataset (unlike in the context of crossentropyloss where data is expected to be binary or maybe between 0 and 1 so the default value of -100 doesn't cause problems). So some additional thought to the interface is needed but other than that this seems like a straightforward task.

cc @albanD @mruberry @jbschlosser
Repository: create-react-app
Issue: Hot update failure
Labels: needs triage,issue: bug report

### Describe the bug
> Steps to reproduce

### Environment

Environment Info:

  current version of create-react-app: 4.0.1
  running from /Users/theoton/.config/yarn/global/node_modules/create-react-app

  System:
    OS: macOS 11.1
    CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
  Binaries:
    Node: 15.5.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.3.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 87.0.4280.141
    Edge: 87.0.664.75
    Firefox: Not Found
    Safari: 14.0.2
  npmPackages:
    react: ^17.0.1 => 17.0.1 
    react-dom: ^17.0.1 => 17.0.1 
    react-scripts: 4.0.1 => 4.0.1 
  npmGlobalPackages:
    create-react-app: Not Found

### Steps to reproduce

1. npx create-react-app my-app --template=typescripts
2. cd my-app
3. yarn start
4. change App.tsx (no problem)
5. change App.tsx (no problem)
6. change index.tsx （hot updates will be invalid）
.....

**Start by modifying files outside of React components, hot updates will be invalid**

![image](https://user-images.githubusercontent.com/18453647/104997362-6f91fd00-5a64-11eb-82f1-7cefecd33261.png)

### Reproducible demo

Follow the steps above to create a new one
Repository: opencv
Issue: .__module__ return None instead of the package name
Labels: category: python bindings,priority: low

##### System information (version)
<!-- Example
- OpenCV => 4.5.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

- OpenCV => 4.5.1
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Pycharm 2020.2.3 ; Python 3.8.5

##### Detailed description

In python, when calling .\_\_module\_\_ with any functions from the cv2 package it returns None. It seems that opencv functions are considered as built-in function. 
<!-- your description -->

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

```.py
import cv2
print(cv2.GaussianBlur.__module__)
print(cv2.GaussianBlur)
```

##### Issue submission checklist

 - [X] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [X] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [X] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [X] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->
Repository: godot
Issue: TextEdit window on iOS doesn't accept swipe text input
Labels: bug,platform:ios,topic:input,topic:gui

Godot version:

v3.2.3.stable.official (Mac via Steam)

OS/device including version:

Running Godot on Mac Mini M1, OS ver 11.1, Testing on IPhone 12 Pro

Issue description:

iOS and Android both allow swiping gestures on their keyboards to allow the user to input text as complete words rather than a combination of separate key inputs. However when attempting to input words in to a TextEdit node using this method the node will only display one letter of the swiped word on the first attempt and subsequent attempts will only create a space. 

A Youtube video of swipe text input if unfamiliar:
https://youtu.be/-4dSe5U1f_g?t=54

Steps to reproduce:

Build a Godot project for iOS with a TextEdit node.
Launch app on iOS and attempt to enter text in to the TextEdit box using swipe gestures on the iOS keyboard.

Expected result:
The TextEdit node would accept the complete word swiped on the keyboard.

Minimal repro project with TextEdit node and iOS export preset:
[SwipeEditText.zip](https://github.com/godotengine/godot/files/5837823/SwipeEditText.zip)
Repository: scrcpy
Issue: Feature Request: unlock apps using biometric sensor (fingerprint)
Labels: feature request

 - [x] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.

**Is your feature request related to a problem? Please describe.**
Well, many new phones allow unlocking apps with fingerprints. messaging apps like signal and WhatsApp use it to secure the messages. at the moment, they don't support a secondary way of unlocking the app, meaning one either uses the biometric sensor or is stuck with the lock screen. 

**Describe the solution you'd like**
I tried to figure out if there is a way to create a fake fingerprint and assign it to a key combination or whatever, and then use an ADB command to unlock the phone. unfortunately, this seems to be impossible on real devices and only works on emulators (explained [here](https://medium.com/@thaveeshadarshana/biometric-scenario-automation-using-adb-commands-11e453986c8e) for example); which makes sense due to security risks this would cause.  
so one question might be if this feature is implementable at all!

**Describe alternatives you've considered**
well, the only feasible alternative at the moment would be to disable the fingerprint lock; or, well, take the phone in the hand each time and unlock it manually; which is kind of counterproductive!
Repository: pytorch
Issue: dependency_links is deprecated 
Labels: module: build,module: docs,triaged

## 📚 Documentation
According to dependency_links https://setuptools.readthedocs.io/en/latest/references/keywords.html#dependency_links is deprecated from setup.py and also from pip. 
Therefor any module depends on `dependency_links ` of `pytorch`, like that one mentioned on pytorch home page, cannot be installed.

1. Maybe it worth changing the document on home page? 
1. What is the best practice to include torch as module dependency in setup.py?

<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->


cc @malfet @seemethere @walterddr @jlin27 @mruberry
Repository: material-ui
Issue: [i18n] Format numbers according to locale
Labels: new feature,component: table,package: base-ui,l10n,i18n,component: TablePagination

Very large numbers are left unformatted in TablePagination, for example:

![image](https://user-images.githubusercontent.com/786691/105033219-67e54f00-5a8a-11eb-8f34-8efbd3fb8500.png)

```js
<TablePagination
  rowsPerPageOptions={[25, 50, 100]}
  component="div"
  count={103177}
  rowsPerPage={25}
  page={0}
/>

```
Probably it should get formatted via `Number.prototype.toLocaleString()`

### Benchmarks

- https://react-spectrum.adobe.com/react-aria/useNumberFormatter.html
Repository: opencv
Issue: How do I compile a parallel version of the opencv library
Labels: question (invalid tracker)

##### System information (version)

- OpenCV => 4.2
- Operating System / Platform => CentOS Linux release 7.6.1810
- Compiler => g++

##### Detailed description
I used the fusion function `seamlessClone` in my program to run 20 times slower on Linux than on windows, which I suspect is because the Linux version of the opencv library is not compiled into a parallel version. But I tried to add TBB compilation when compiling opencv, but there was still no parallel effect. How do I compile a parallel version of the opencv library, or how do I parallelize `seamlessClone`?

The version I use on the windows platform is windows 10, and the compiler is Visual Studio 2019, which is 4.2.0.

##### My code
```
Mat SplicingImage;
hconcat(inImage, inImage, SplicingImage);
vconcat(SplicingImage, SplicingImage, SplicingImage);

Mat mask = 255 * Mat::ones(inImage.rows, inImage.cols, inImage.depth());
Point centerPt = Point(SplicingImage.cols / 2, SplicingImage.rows / 2);
seamlessClone(inImage, SplicingImage, mask, centerPt, SplicingImage, NORMAL_CLONE);
// NORMAL_CLONE MIXED_CLONE MONOCHROME_TRANSFER

int cols = inImage.cols;
int rows = inImage.rows;
Rect rect = Rect(cols * (3. / 4), rows * (3. / 4), cols / 2, rows / 2);

resize(SplicingImage(rect), resImage, Size(510, 510));
```

##### Issue submission checklist

 - [ ] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [x] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 -
Repository: go
Issue: proposal: x/crypto: add streaming AEAD interface
Labels: Proposal,FeatureRequest,Proposal-Crypto

Streaming encryption is a [tricky and important problem](https://www.imperialviolet.org/2014/06/27/streamingencryption.html). Libsodium now provides the [secretstream interface](https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream) to address this problem. I propose adding a streaming AEAD interface to x/crypto, for example by porting secretstream to Go.
Repository: godot
Issue: MultiMeshInstances are not supported by GIProbe/BakedLightMap.
Labels: bug,topic:rendering,topic:3d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
v3.5.beta3.official
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:**
GLES3
All supported operating systems/GPU's.
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
MultiMeshInstances do not work together with GIProbe and BakedLightMap.

**Steps to reproduce:**
1. Download and open the included MRP.
2. Open the test folder in the MRP, there's 2 scenes included, one for GIProbe, and the other for BakedLightMap.
3. Bake lighting in both scenes to reproduce.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[MRP.zip](https://github.com/godotengine/godot/files/5837037/MRP.zip)
Repository: tensorflow
Issue: Add Windows build to nightly libtensorflow C packages
Labels: type:bug,comp:apis

The [C API page](https://www.tensorflow.org/install/lang_c#nightly_libtensorflow_c_packages) says that "libtensorflow packages are built nightly and uploaded to GCS for all supported platforms" but the [libtensorflow-nightly GCS bucket](https://storage.googleapis.com/libtensorflow-nightly) does not have builds for Windows. The README's list of [offical builds](https://github.com/tensorflow/tensorflow#official-builds) also indicates that Windows nightlies should be available.

Please make Windows libtensorflow nightlies available for download.
Repository: pytorch
Issue: Adding visualizations for indexing and other functions
Labels: module: docs,triaged,module: advanced indexing,module: scatter & gather ops

## 🚀 Feature
Add visualizations for indexing and other parts that can be understood using 3d and 2d visualizations.

## Motivation
Following @ptrblck from twitter and [this](https://stackoverflow.com/questions/50999977/what-does-the-gather-function-do-in-pytorch-in-layman-terms/54706716#54706716) amazing visualization from the community in StackOverflow.

## Pitch
I want to include these types of visualizations in documents and/or codes. We have to discuss this more here in this thread.




cc @jlin27 @mruberry
Repository: rust
Issue: Test for repr-transparent-aggregates-1.rs fails cross-compiling wasm32-unknown-unknown with LLVM 11.0
Labels: I-ICE,T-compiler,O-wasm,C-bug,A-repr

[This test](https://github.com/rust-lang/rust/blob/582071c1ebd5ec19ded8648223e9108b5ce65d85/src/test/codegen/repr-transparent-aggregates-1.rs) fails on rust-1.49 cross compiling wasm32-unknown-unknown with LLVM 11.0. It looks like the intermediate representation for a void function has significantly changed from what is expected (see attached .ll file).

[repr-transparent-aggregates-1.ll](https://github.com/rust-lang/rust/files/5837518/repr-transparent-aggregates-1.ll.txt)
[Guix Build log rust-1.49.0.drv.txt.gz](https://github.com/rust-lang/rust/files/5837519/rust-1.49.0.drv.txt.gz)



Actual code generated for test_BigS:
```
; Function Attrs: nounwind
define %BigS @test_BigS(%BigS %0) unnamed_addr #0 {
start:
  %1 = alloca %BigS, align 4
  %_1 = alloca %BigS, align 4
  store %BigS %0, %BigS* %_1, align 4
  br label %bb1

bb1:                                              ; preds = %bb1, %start
  call void @llvm.sideeffect()
  br label %bb1
}
```

Error (expected function signature):

```
/tmp/guix-build-rust-1.49.0.drv-0/rustc-1.49.0-src/src/test/codegen/repr-transparent-aggregates-1.rs:37:11: error: CHECK: expected string not found in input
// CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS:.*]], %BigS* [[BIGS_ARG_ATTRS1:.*]] byval(%BigS) [[BIGS_ARG_ATTRS2:.*]])
          ^
/tmp/guix-build-rust-1.49.0.drv-0/rustc-1.49.0-src/build/x86_64-unknown-linux-gnu/test/codegen/repr-transparent-aggregates-1/repr-transparent-aggregates-1.ll:1:1
: note: scanning from here
; ModuleID = 'repr_transparent_aggregates_1.3a1fbbbh-cgu.0'
^
/tmp/guix-build-rust-1.49.0.drv-0/rustc-1.49.0-src/build/x86_64-unknown-linux-gnu/test/codegen/repr-transparent-aggregates-1/repr-transparent-aggregates-1.ll:16:
1: note: possible intended match here
define %BigS @test_BigS(%BigS %0) unnamed_addr #0 {
```


Related discussion regarding unstable IR code gen: https://github.com/rust-lang/rust/issues/74396#issuecomment-659465905
Repository: pytorch
Issue: Batched grad coverage rollup
Labels: module: autograd,triaged,module: vmap

## 🐛 Bug

This issue is a collection of bugs where batched grad computation doesn't work. Most of these were discovered while turning batched grad testing on. Some of these manifest as crashes (😞 ), some as silently incorrect results, and some as loud error messages.

- [ ] test_linalg.py: test_cholesky_solve_autograd: The randomness in batched grad testing exposes unrelated silent correctness issues
- [ ] test_nn.py: test_broadcast_double_backwards_gpu: segfault
- [ ] test_nn.py: test_TransformerEncoderLayer_relu_activation: loud error message
- [ ] test_nn.py: test_CrossMapLRN2d: loud error message
- [ ] batched grad of torch.mm with a tensor of size (0, 0), as per @IvanKobzarev's [comment](https://github.com/pytorch/pytorch/issues/50743#issuecomment-767376085)

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @albanD @gqchen @pearu @nikitaved @soulitzer
Repository: go
Issue: proposal: crypto/x509: Export wrong parse function error
Labels: Proposal,Proposal-Crypto

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15.6 darwin/amd64
</pre>

### What did you do?

I occasionally see PEM-encoded private keys that have the wrong PEM header for that key type.  For example, a PKCS8 key with `BEGIN RSA PRIVATE KEY` instead of `BEGIN PRIVATE KEY`.  Thanks to #30094 this is helpfully reported with an error message suggesting the correct API.  For example, in `ParsePKCS1PrivateKey`: https://github.com/golang/go/blob/ccb2e906882e45fe2d22c31049185208adbfb62e/src/crypto/x509/pkcs1.go#L54-L59

### What would you like to see?

It would be nice if these errors were exported as values that could be checked in code, so we could handle these gracefully.  Currently you have to do string parsing, and I don't think that is covered by the Go 1 compatibility guarantee.

Alternatively, an API that given DER input returned which key type it was would be nice.  With just DER input (that is, without the PEM block hint) you just have to try all the `ParsePKCS1PrivateKey` / `ParsePKCS8PrivateKey` / `ParseECPrivateKey` functions in a row until one succeeds.
Repository: flutter
Issue: ☂️ Proposal: desktop context menu fidelity
Labels: framework,platform-mac,a: fidelity,platform-windows,platform-linux,c: proposal,a: desktop,P3,team-text-input,triaged-text-input

The desktop text selection toolbars, as introduced in https://github.com/flutter/flutter/pull/73882 and https://github.com/flutter/flutter/pull/74286, have major limitations that make them not as good as native.  We should either find a way to use the native context menus, or we should work to fix each of these problems.

  * We can't draw the menu outside of the current window.  Also, the menu can't receive mouse events (like hover) unless the current menu is focused.
  * The only buttons available are the default mobile buttons (cut/copy/paste/select all).  We should support all of the same buttons that display natively.
  * It should be possible for Flutter devs to customize the menu.
  * The native Mac menu has a flashing animation when clicked.
  * Submenus should be possible and easy to implement.
  * Currently, only EditableText widgets can show the menu. Right-clicking elsewhere doesn't show it.  Fixing this probably requires refactoring TextSelectionControls to work with both the existing setup and menus (like [showMenu](https://master-api.flutter.dev/flutter/material/showMenu.html)).
  * Menu items that are wider than the default width are ellided, but on native the menu grows to accommodate them.
  * On Windows and Linux we use a Material-style menu, but we might want to build a menu that looks like the native one instead.
  * The native Mac context menu is slightly transparent and has a blur effect (screenshots below).

<img src="https://user-images.githubusercontent.com/389558/104530376-aed1d100-55c0-11eb-9f64-5db9f6a4c319.png" />

<img width="300" src="https://user-images.githubusercontent.com/389558/105215569-4629ad80-5b06-11eb-9649-882f67ee4560.png" />
Repository: pytorch
Issue: Improve error message for "Could not run 'aten::record_stream' with arguments from the 'CPU' backend. " 
Labels: triaged,enhancement,module: dispatch

It's better that we remind users to move inputs to the right backend when they see such error (a very common issue). see a detailed example in https://pytorch.slack.com/archives/C3PDTEV8E/p1611005234017100.