sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: Keras Metric Multiple Outputs / Inputs
Labels: type:feature,comp:keras

**System information**
- TensorFlow version (you are using): 2.2.0
- Are you willing to contribute it (Yes/No): No


**Describe the feature and the current behavior/state.**
Keras custom `metric` should optionally get as input all inputs and all outputs of the same batch.
This will allow creating metrics that are dependent on 2 or more outputs, or dependent on the input, etc.

**Will this change the current api? How?**
Yes, a metric will have a property `use_all_inputs` or something like that

**Who will benefit with this feature?**
Anyone who is looking into custom metrics.

**Any Other info.**
It is possible to do something similar with a callback, but that requires running `predict` twice per sample per epoch, and does not work for `model.evaluate`.


Related issues:

- [https://github.com/keras-team/keras/issues/4506](https://github.com/keras-team/keras/issues/4506)
- [https://stackoverflow.com/questions/63068206/keras-metric-for-multiple-outputs](https://stackoverflow.com/questions/63068206/keras-metric-for-multiple-outputs)
- [https://stackoverflow.com/questions/63058307/tensorflow-dataset-mask-sequence-for-evaluation](https://stackoverflow.com/questions/63058307/tensorflow-dataset-mask-sequence-for-evaluation)
- [https://datascience.stackexchange.com/questions/54443/keras-custom-metric-function-how-to-feed-2-model-outputs-to-a-single-metric-eval](https://datascience.stackexchange.com/questions/54443/keras-custom-metric-function-how-to-feed-2-model-outputs-to-a-single-metric-eval)
Repository: pytorch
Issue: PyBind11 submodule required even when pybind11_PREFER_third_party=OFF
Labels: module: build,triaged

## 🐛 Bug

The check at https://github.com/pytorch/pytorch/blob/f00a37dd71c8299261f0cbdb76f43d1ef2900e65/setup.py#L301 does require the pybind11 submodule to be initialized even when a system pybind11 exists and should be used.

This makes the build fail when using a non-recursive checkout with only actually required submodules populated.

## To Reproduce

Steps to reproduce the behavior:

1. Checkout git repo
1. Initialize all submodules BUT pybind11
1. Install system pybind11
1. Run python setup.py install

## Expected behavior

Pybind11 submodule is not required.

Even better: Introduce `USE_SYSTEM_PYBIND11` and make the check at https://github.com/pytorch/pytorch/blob/f00a37dd71c8299261f0cbdb76f43d1ef2900e65/setup.py#L293 consider this before checking for the submodule. For completeness each individual `USE_SYSTEM_*` variable should be considered at that point. Easiest is likely to pass the name of that variable to `check_file`

Note also that although the check at https://github.com/pytorch/pytorch/blob/f00a37dd71c8299261f0cbdb76f43d1ef2900e65/setup.py#L293 does check for `USE_SYSTEM_LIBS` this variable seems to be otherwise unrelated to  pybind11, see https://github.com/pytorch/pytorch/blob/befb22790f7fa5b356aa0ae04532f9717ef7c388/CMakeLists.txt#L239-L252

 - PyTorch Version (e.g., 1.0): 1.6-rc4 and current master



cc @malfet
Repository: vscode
Issue: Hang when opening output tab with too many logs
Labels: bug,freeze-slow-crash-leak,output

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

If it hangs too long, ssh remote session will reset.

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.48.0-insider
- OS Version: Windows x64

Steps to Reproduce:

1. print massive logs from plugin(s)
1. open output tab

eg. `golang` plugin with language server enabled, or `prettier` plugin. After one day of development, they will generate huge amount of logs.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No
Repository: tensorflow
Issue: Golang: SessionOptions & ConfigProto opaqueness & inaccessibility
Labels: type:feature,comp:apis

**System information**
- TensorFlow version (you are using): 1.15.0 (will move to stable 2.3.0 when it is available)
- Are you willing to contribute it (Yes/No): No

**Describe the feature and the current behavior/state.**
The Go bindings of TensorFlow have a somewhat awkward API when it comes to setting the session options: as per the [docs](https://pkg.go.dev/github.com/tensorflow/tensorflow@v1.15.0/tensorflow/go?tab=doc#SessionOptions), you can configure it, but you have to input a binary-serialized [ConfigProto](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/config.proto) message to do so. 
However, you cannot actually create a ConfigProto by calling the Go TF bindings - you have to create it in another way, [as demonstrated in the source code](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/session_test.go#L366). 
Creating the ConfigProto message by using Python is extremely impractical and unnecessarily opaque. I would urge the authors to reconsider using protocol buffers in the Go bindings to allow creating the ConfigProto message from Go, thus making this flow much simpler and user-transparent.

**Will this change the current API? How?**
This will introduce a dependency on protocol buffers in the Go bindings and add the generated protobuf structs to the API.

**Who will benefit with this feature?**
Users of the TensorFlow Go implementation with a workload that demands more configuration for effective inference.
Repository: svelte
Issue: Allow attributes on the `<title>` element
Labels: feature request,stale-bot,compiler,temp-stale

**Is your feature request related to a problem? Please describe.**
Looks like the `<title>` element is [barred from having any attributes] (https://github.com/sveltejs/svelte/blob/master/src/compiler/compile/nodes/Title.ts). [According to MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title#Attributes), it can host any global attribute. It was a bit of a surprise that it had special treatment.

This prevents adding to it an `aria-live` attribute that would allow its announcement by assistive technology (provided it's unhidden from the accessibility tree, see experiment there: https://romaricpascal.is/posts/title-element-aria-live/).

**Describe the solution you'd like**
At the moment, it looks like the attribute can be set through an `onMount()` call:

```js
  onMount(() => {
    document.head.querySelector('title').setAttribute('aria-live', 'assertive');
  });
```

but it'd be great to just be able to do:

```html
<svelte:head>
  <title aria-live="assertive">{$title}</title>
</svelte:head>
```

This would also make updating whether the title should be announced lighter, especially if the value comes from a store:

```html
<svelte:head>
  <title aria-live={$live}>{$title}</title>
</svelte:head>
```

**Describe alternatives you've considered**
Using `onMount` provides a workable workaround. There's just a bit of logistics if attributes need to come from a store or multiple attributes need setting (but in my use-case, that would only be `aria-live`).

**How important is this feature to you?**
It's not a dealbreaker that it's not there. It just feels less idiomatic to have all that boilerplate around. It was also confusing to have that specific tag not work as a regular tag (maybe it's a matter of documentation, though).
Repository: PowerToys
Issue: Copy path/filename in primary context menu
Labels: Idea-New PowerToy,Status-In progress,Product-File Explorer

Add a Copy Full Path and Copy Filename to the right click menu in file explorer. This is would be useful when writing code that accesses files, working with software that doesn't have drag and drop for working with files and copying in to any command type window like PowerShell or anything in Windows Terminal.
Repository: pytorch
Issue: EMNIST looks different to MNIST
Labels: triaged,module: vision

## 🐛 Bug

Hello, the images from the mnist split from EMNIST look flipped.

## To Reproduce
```
    import torch
    from torchvision import datasets, transforms
    from PIL import Image
    kwargs = {'batch_size': 2}
    transform = transforms.Compose([
        transforms.ToTensor(),
        transforms.Normalize((0.1307,), (0.3081,))
    ])
    dataset1 = datasets.MNIST('./Data', train=True, download=True, transform=transform)
    for n in range(10):
        img = dataset1.data[n]
        img = img.numpy()
        img = Image.fromarray(img, mode='L')
        img = transform(img)
        plt.figure();
        plt.imshow(img.numpy()[0]);
        plt.title(dataset1.classes[dataset1.targets[n]]);
        print(dataset1.classes[dataset1.targets[n]], dataset1.targets[n])
    dataset1 = datasets.EMNIST('./Data',split='mnist', train=True, download=True, transform=transform)
    for n in range(10):
        img = dataset1.data[n]
        img = img.numpy()
        img = Image.fromarray(img, mode='L')
        img = transform(img)
        plt.figure();
        plt.imshow(img.numpy()[0]);
        plt.title(dataset1.classes[dataset1.targets[n]]);
        print(dataset1.classes[dataset1.targets[n]], dataset1.targets[n])
```

<!-- 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): '1.5.1+cu101'
 - OS (e.g., Linux): ubuntu 19
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source):
 - Python version: 3.7
 - CUDA/cuDNN version: 10.1
 - GPU models and configuration:
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @fmassa @vfdev-5
Repository: terminal
Issue: When running as Administrator, Terminal should always start built-in Windows apps in C:\Windows\System32
Labels: Product-Terminal,Issue-Task,Needs-Tag-Fix,this-will-be-a-breaking-change

### Description of the new feature/enhancement

When you open Command Prompt or PowerShell from the Start Menu, Start --> Run (Windows-R), or the set of options you get by right-clicking the Start button (Windows-X), the starting current directory for the shell can vary:

- When the shell is run as an ordinary user (or a administrator without elevation to admin privilege/token), the starting directory is `C:\Users\me` , or whatever the user's home location is.
- When the shell is run as an administrator, the starting directory is always `C:\Windows\System32` .

This is also true for non-shell command-line apps that are launched this way, like `C:\Windows\System32\choice.exe` - EDIT: as long as they come with Windows.

However, when command-line apps are launched from Terminal using a Terminal profile, the starting directory is always static:
- If `startingDirectory` is set to non-null and non-empty (in settings.json or defaults.json): that directory
- If `startingDirectory` is set to an empty string: `C:\Users\me`
- Otherwise - if `startingDirectory` is set to null or not set: `C:\Windows\System32`

What I'd like is for Terminal to emulate part of the built-in behavior of the Windows system described above:
~**If Terminal is elevated, then the starting directory for any new Terminal tab or pane should always be the system directory `C:\Windows\System32`.**~
EDIT: **If Terminal is elevated, then the starting directory for any new Terminal tab or pane _opening a built-in Windows system file_ should always be the system directory `C:\Windows\System32`.**
This reduces the chance of damage when you accidentally run (or are maliciously tricked into running) a program from your home location or other unprivileged folder that has the same name as a program in `C:\Windows\System32`.
Repository: electron
Issue: Port numbers are lost on standard schemes.
Labels: component/protocol,bug :beetle:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [X] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * v10.0.0-beta.12
* **Operating System:**
  * Ubuntu 20.04 x64

### Expected Behavior
The port number is specified in the RFC 3986 and should be included in the URL.

### Actual Behavior
The request URL in a standard protocol handler does not contain the port number.

### To Reproduce
This electron fiddle shows the difference between a standard and a non standard protocol :
https://gist.github.com/drivron/3e8fdb461f78c3b926571836fd14ad41
Repository: PowerToys
Issue: [Settings, FancyZones] review requirement of "key" field
Labels: Product-Settings,FancyZones-Settings,Product-FancyZones,Area-Quality,Priority-2

The FZ code requires the shortcut "key" field along with the key code.
See https://github.com/microsoft/PowerToys/pull/5194/files for reference.
Repository: create-react-app
Issue: create-react-app is not offering suggestions/guideline for managing environment specific configuration
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

The react applications created by "create-react-app" does NOT provide a opinion on how to handle environment specific configuration.

I had joined 3 different react projects in the recent years, and I found the way they handled environment specific configurations in not the best way.

When building application we often have to deploy in multiple environments such as dev, staging and production. Some times instead of one production we might prod-cust1, prod-cust2, etc...

React is NOT offering any suggestions or guidelines how to manage environment specific configuration file.
Angular is offering this suggestion https://angular.io/guide/build
The suggestion offered by Angular is less than optimal.
Many developers are adopting an approach similar to Angular approach for configurations

The problems in Angular approach is 

 * The code and the configuration is not separated (this is against the guideline of 12 factor app)
 * When we decide to deploy the application in a new environment, we have to create a new environment file.
 * It also doesn't help Build Once Deploy Anywhere

### Describe the solution you'd like

Modify "create-react-app" to the following when called with --with-config
 * Have the configuration file named environmentConfig.js in the public folder and add it as script in index.html
 * Have a file named Config.js that exports config by assessing window.config
 * This will make it easy to externalize config and dockerize the application

Reference:
https://github.com/ZeroWasteTeam/SampleReact

### Describe alternatives you've considered

The app could get the environment specific configuration from backend by calling an API.
 * The advantage of this approach would the configurations need not be duplicated in backend and frontend.
 * The disadvantage would be the app would always need to make this call for getting the config on load in the browser. 

### Additional context

With containerization getting popular, it would be nice to have parameters that could provide a Dockerfile and .dockerignore. 
This will speed up the initial dev environment set up.
Repository: flutter
Issue: Cannot pass deleted object as a pointer of type sk_sp<SkPicture>
Labels: platform-web,P2,team-web,triaged-web

A few minutes after loading the Flutter devicelab dashboard, it locks up and throws this exception:
Cannot pass deleted object as a pointer of type sk_sp<SkPicture>
```
VM1866:1 console.trace
eval @ VM1866:1
ac @ canvaskit.js:formatted:3503
tc @ canvaskit.js:formatted:3635
SkCanvas$drawPicture @ VM1200:9
IT @ main.dart.js:22852
```
pretty print of the `SkCanvas$drawPicture` frame shows it's at the `var arg0Wired = argType0.toWireType(destructors, arg0); // sk_sp<SkPicture>` line below:
```js
(function anonymous(throwBindingError,invoker,fn,runDestructors,retType,classParam,argType0
) {
return function SkCanvas$drawPicture(arg0) {
if (arguments.length !== 1) {
throwBindingError('function SkCanvas.drawPicture called with ' + arguments.length + ' arguments, expected 1 args!');
}
var destructors = [];
var thisWired = classParam.toWireType(destructors, this);
var arg0Wired = argType0.toWireType(destructors, arg0); // sk_sp<SkPicture>
invoker(fn, thisWired, arg0Wired);
runDestructors(destructors);
}

})
```
Repository: kubernetes
Issue: Kubectl parsing of local flags with no args appearing before the command name is broken or at best, confusing
Labels: kind/bug,priority/backlog,area/kubectl,sig/cli,lifecycle/frozen

**What happened**:

Running a `kubectl get` with --all-namespaces in the wrong place consumes one extra argument, resulting in a confusing error.
 
**What you expected to happen**:

A sane error.

**How to reproduce it (as minimally and precisely as possible)**:

```
$ k get pods
NAME                         READY   STATUS    RESTARTS   AGE
hostnames-6956d6795f-lgv5m   1/1     Running   0          14d

$ k -n default get pods
NAME                         READY   STATUS    RESTARTS   AGE
hostnames-6956d6795f-lgv5m   1/1     Running   0          14d

$ k --all-namespaces get pods
Error: unknown command "pods" for "kubectl"

Did you mean this?
	logs

Run 'kubectl --help' for usage.

$ k get pods --all-namespaces 
NAMESPACE     NAME                                                       READY   STATUS             RESTARTS   AGE
# lots of result
```

**Environment**:

This is a kubectl build at HEAD

/sig cli
Repository: flutter
Issue: [Material] Update hover + focused + pressed states for mouse on Slider and Range Slider
Labels: c: new feature,framework,f: material design,P2,team-design,triaged-design

-hovered overlay should be 4% opacity
-focused overlay should be 12% opacity
-pressed ripple, that grows from center of thumb on top of focused overlay, should be 10% opacity
-pressed ripple grow should have same animation as touch overlay grow
Repository: nvm
Issue: Does NVM auto update the nodejs version?
Labels: needs followup

Does NVM auto-update the nodejs version? 
Yesterday I have installed the nodejs 8.15.0 and today I found the system has done auto-update of nodejs version to 10.19.0
Any idea why? and how to stop this?
Repository: TypeScript
Issue: Should navto search opening projects like find all refs to give better info about world or just existing open projects
Labels: Suggestion,In Discussion

Yes VS Code now searches all open projects by default (on TS 3.9+). My understand is that this should only search the already opened project and not trigger a new project loads. You can disable this behavior with `typescript.workspaceSymbols.scope `. 

I made this the default because I felt searching all projects made the most sense for the way we describe go to symbol in workspace. It is useful in the VS Code codebase for example because we usually want search results from both our extensions and our core codebase. 

@amcasey VS Code cannot stream in results. We have to return them all in a single response

_Originally posted by @mjbvz in https://github.com/microsoft/TypeScript/issues/38491#issuecomment-627599632_
Repository: PowerToys
Issue: [Image Resizer] Fix flaky test (currently disabled)
Labels: Area-Tests,Product-Image Resizer,Issue-Task

`ImageResizer.Models.ResizeBatchTests.Process_executes_in_parallel` 

I've seen this test fail on the farm.  I've seen 100 or 102 results returned but most of the times it runs just fine.
Repository: flutter
Issue: [integration_test] readme about Android device testing out-of-date
Labels: a: tests,platform-android,t: gradle,d: examples,f: integration_test,P2,team-android,triaged-android

https://github.com/flutter/plugins/tree/master/packages/e2e#android-device-testing

Following this guide to a newly created (by `flutter create`) will result in fail: 
```
+ ./gradlew app:assembleAndroidTest

> Task :app:compileDebugAndroidTestJavaWithJavac FAILED
/Users/minglyu/tmp/ftl_dev/android/app/src/androidTest/java/com/example/ftl_dev/MainActivityTest.java:11: error: cannot find symbo
  public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class, true, false);
                          ^
  symbol:   class MainActivity
  location: class MainActivityTest
/Users/minglyu/tmp/ftl_dev/android/app/src/androidTest/java/com/example/ftl_dev/MainActivityTest.java:11: error: cannot find symbol
  public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class, true, false);
                                                                      ^
  symbol:   class MainActivity
  location: class MainActivityTest
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s
```

It seems current `flutter create` is using kotlin but this guide is for java.