sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: einsum for SparseTensors
Labels: stat:awaiting tensorflower,type:support,comp:ops,TF 2.2

**System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac
- TensorFlow installed from (source or binary): Source
- TensorFlow version (or github SHA if from source): 2.2.0

**Provide the text output from tflite_convert**
I do not find an 'optimized' way to compute a multiplication between an sparse and a dense tensor that are not matrices.
For example, I would like to perform the following multiplication between a 3D sparse tensor A and a 2D dense tensor B:
C[i,j] = \sum_k B[i,k] A[i,k,j]

IMPORTANT! A needs to maintain its sparsity. Functions like tf.sparse.to_dense() must be avoided!
```
# Example
# inputs
A = tf.sparse.SparseTensor(values=tf.constant([1,1,1,1,2,1,1,1,1,1,-1], tf.float32),indices=[[0,0,1],[0,1,2],[0,2,0],[1,0,0],[1,1,1],[1,1,2],[1,2,2],[2,0,2],[2,1,1],[2,2,1],[2,2,2]], dense_shape=[3,3,3])
B = tf.constant([[1, 2, 3],
                 [4, 5, 6],
                 [7, 8, 9]], tf.float32)

# output
C = tf.constant([[3, 1, 2],
                 [4, 10, 11],
                 [9, 8, -1]], tf.float32)
```
A 'tf.sparse.einsum(B,A, 'ik,ikj->ij')'-like function would be nice to reproduce the behaviour of einsum for dense tensors in sparse tensors.
Repository: TypeScript
Issue: Extract to function in upper scope
Labels: Suggestion,Awaiting More Feedback,Domain: Refactorings

<!-- ⚠️⚠️ 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. -->
We have `Extract to function in module scope` and `Extract to inner function in function xxx`(which is `Extract to function in current scope`), we should also have `Extract to function in upper scope`. With it, we can:

```ts
const g = 'g';
export function A() {
  const a_local = 'a';
  return function B() {
    const b_local = 'b';
    return function C() {
      const c_local = 'c';
      // the bottom will be extracted to function upper scope
      console.log(g, a_local, b_local, c_local);
      // the above will be extracted to function upper scope
    }
  }
}
```

After the extraction, code will be:
```ts
const g = 'g';
export function A() {
  const a_local = 'a';
  return function B() {
    const b_local = 'b';
    function newFunction(c_local: string) {
      console.log(g, a_local, b_local, c_local);
    }
    return function C() {
      const c_local = 'c';
      newFunction(c_local);
    }
  }
}
```
Repository: flutter
Issue: Need an option to specify DDS port for FlutterPlatform
Labels: a: tests,tool,P3,team-tool,triaged-tool

When running tests in debug mode on a remote machine, we need to be able to specify the DDS port so that we can connect from an IDE on the local side. Currently we're using the `disableDds` option instead here: https://github.com/flutter/flutter/blob/a17b3309807a2fadabf4482d2705edc841f5fcfa/packages/flutter_tools/lib/src/test/flutter_platform.dart#L48

@bkonyi
Repository: create-react-app
Issue: Don't generate source maps by default as this make production code visible to anyone
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?
Yes. I just had one of my users linking a screenshot of my code and found out that my entire codebase (not minified) was completely visible to anyone in the `Sources` tab in Chrome dev tools. I found this rather insane. There's a reason people want to open-source their code. 
![Screenshot from 2020-09-23 20-50-31](https://user-images.githubusercontent.com/33460567/94056359-7ecaac00-fdde-11ea-984f-e2390f041e48.png)

It was fixed by adding ```GENERATE_SOURCEMAP=false``` to the `.env` file. I found similar issues, but none that pointed out the serious business implications this may have.

### Describe the solution you'd like
I think this should definitely not be default behavior, or at least give strong warnings against it.


I've loved the development experience besides this <3
Repository: PowerToys
Issue: [Image Resizer] - command line arguments
Labels: Idea-Enhancement,Help Wanted,Product-Image Resizer

This was an open issue before ImageResizer was integrated into Powertoys, I have discovered, and as someone with a use case for automated resizing I'd love to see it implemented. In my perfect world I would be able to reference imageresizer.exe in the middle of a foreach loop in a PS script, running through folders and resizing to a desired preset.
Repository: opencv
Issue: Add Syntax highlighting for opentype.js tutorials
Labels: category: documentation,category: javascript (js)

Hi,

I see that [Python and C++ tutorials](https://docs.opencv.org/master/db/deb/tutorial_display_image.html) seems to have syntax highlighting, but [JavaScript tutorials](https://docs.opencv.org/master/d0/d84/tutorial_js_usage.html) doesn't seem to have syntax highlighting

You could use [highlight.js](https://highlightjs.org/) or whatever syntax highlighter was used for Python and C++ tutorials.

It gets very hard to understand the code, I have to manually copy and paste the code in my editor to highlight the syntax to easily understand the code.

**Python Tutorial Example:**

![-2020-sep-23-001](https://user-images.githubusercontent.com/20347013/94059761-8a2ecf00-fe00-11ea-992f-bc1ad9d50f40.jpg)


**JavaScript/OpenCV.js Tutorial Example:**

![-2020-sep-23-002](https://user-images.githubusercontent.com/20347013/94059800-9adf4500-fe00-11ea-88d1-e1f60689b946.jpg)

Thanks
Repository: PowerToys
Issue: [FancyZones] Suggestion - click and hold a non-primary button to select multiple zones
Labels: Idea-Enhancement,Product-FancyZones

How about being able to click and hold a non-primary mouse button to select multiple zones (similar to holding Ctrl)?  It would mean I could position windows without touching the keyboard.
Repository: PowerToys
Issue: [FancyZones] Fit window inside multiple selected zones
Labels: Idea-Enhancement,Product-FancyZones

When selecting multiple zones the window currently resizes to the smallest rectangle that contains all selected zones.  That doesn't feel right to me - I think of windows sitting inside zones not zones inside windows.  I'd like to have the window resize to the largest rectangle entirely contained within the selected zones.  Could we maybe have a settings toggle for this?
Repository: angular
Issue: Angular Element DOM node is removed from DOM when an Angular Element is readded/reconnected
Labels: area: animations,area: elements,state: has PR,P3

# 🐞 bug report

### Affected Package
@angular/animations

### Is this a regression?
No

### Description

As described by @kseamon in https://github.com/angular/angular/issues/38778#issuecomment-690715758, when an Angular Element is removed from the DOM then later re-added, the animation engine removes the custom element which destroys the component again. Thereby, it's impossible to re-add an Angular Element to the DOM without first destroying the element yourself.

Here's a screenshot of the stacktrace. You can see it goes straight from initializing the component on connect to disconnecting it after running `detectChanges`.

![disconnect-upon-reconnect](https://user-images.githubusercontent.com/1170843/94060331-a3039a00-fd98-11ea-9298-cc246f1ab219.png)

I have a fix in https://github.com/angular/angular/pull/38816 that creates a new div as a child of the custom element and the new div is then destroyed on connect.


## 🔬 Minimal Reproduction

Interestingly enough, I'm not able to reproduce with a minimal example on stackblitz. I have an example set up that invokes `scheduledDestroyFn` and then sets it to null explicitly when destroying the element but the element is re-added correctly. https://stackblitz.com/edit/angular-ovchwr-x1cnsi?file=src%2Fmain.ts Perhaps, it has to do with the size and complexity of the app.

## 🔥 Exception or Error

No error but the Angular Element is removed immediately upon reconnect.

## 🌍  Your Environment

Latest Angular (I'm a Google engineer working within google3).
Repository: flutter
Issue: Delete generated CMake files if build tool paths change
Labels: tool,platform-linux,a: desktop,a: build,P3,team-linux,triaged-linux

If someone's build tools change paths, the generated CMake files for a project can have sticky references (e.g., in `CMakeCache.txt`), and subsequent builds will fail until the build output directory is removed and regenerated. This happened to someone who switched from snap to non-snap.

We could keep a set of things whose location we check, starting with ninja, and seeing if we encounter other cases, and if they change location tell the user to `flutter clean`.

See also https://github.com/flutter/flutter/issues/149916, the Windows version of this.
Repository: storybook
Issue: @storybook/addon-storysource correct complete __STORY__ but wrong injected storySource source
Labels: bug,addon: storysource,addon: docs,source-loader

**Describe the bug**
Using `@storybook/addon-storysource` && `@storybook/addon-docs` the `var __STORY__` contains the expected printed string but the injector converts it to a trimmed version.

**To Reproduce**
not sure, We actually may be missing something in the configuration, will try to gives steps to reproduce later if it's relevant

**Expected behavior**
I expect the content of `__STORY__` (which is the full story file source converted to string) to be printed in the `Story` tab

**Screenshots**
with `injectStoryParameters` to false:

![image](https://user-images.githubusercontent.com/59743524/94060989-10d5b300-fde5-11ea-852e-02e699c2a27c.png)

with `injectStoryParameters` to true:

![image](https://user-images.githubusercontent.com/59743524/94061233-67db8800-fde5-11ea-8b5e-e06b8f48f2af.png)
( `var __STORY__`  comes with the full source, but the injected parameter only prints the exported function )

using standard javascript, file extensionas are `.js` if that matters

Am I missing some configuration or should I re-write me CSF to have another syntax? 
Can't find anything related to this and I don't understand how I am supposed to configure the addon to read the value of `var __STORY__`
Repository: excalidraw
Issue: Imported items from the library should land to the board as a group
Labels: enhancement,discussion

When using the library from mobile (If you try the link from #2179) it's quite hard to move the objects around if you miss-click (tap) and the inserted item.
Repository: neovim
Issue: calling vim.fn.jobstop on an id returned by vim.fn.termopen causes a memory leak
Labels: bug,platform:windows,terminal

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.5.0-702-g569e75799
- Operating system/version: Windows 10 19041
- Terminal name/version: powershell / my own gui (issue seems unrelated)

### Steps to reproduce
The easiest way to reproduce is to install [Telescope](https://github.com/nvim-lua/telescope.nvim), then
- Open some file, ideally in a folder with many files
- Run `:lua require'telescope.builtin'.find_files{}`
- Enter normal mode and hold down `j` and `k` to scroll through the files fast

### Actual behaviour
Telescope opens a new preview window with `vim.fn.termopen` and runs `cat`, if another
preview is requested before the `cat` process returns, `vim.fn.jobstop` is called on the id
returned by the previous `termopen` call, this results in a memory leak.

On my Windows 10 machine this results in a ton of conhost.exe processes staying alive 
after the termopen instance should been stopped.

### Expected behaviour
`vim.fn.jobstop` should terminate and cleanup the entire `vim.fn.termopen` instance.

Note: Simply removing the `vim.fn.jobstop` calls seems to work, even then I suppose
that calling `vim.fn.jobstop` should never cause a leak like this?
Repository: godot
Issue: [Bullet] Generic6DOFJoint node error
Labels: bug,confirmed,topic:physics

**Godot version:**
3.2.3 stable

**OS/device including version:**
Windows 10 64-bit

**Issue description:**
Setting either Node A or Node B throws the warning "set_param: The parameter 2 is deprecated."

**Steps to reproduce:**
create Generic6DOFJoint and assign either of the two nodes
Repository: rust
Issue: Tracking Issue for `const fn` `type_id`
Labels: T-lang,T-libs-api,B-unstable,C-tracking-issue,A-const-eval,Libs-Tracked,S-tracking-impl-incomplete

This is a tracking issue for using `TypeId::of` in constant contexts.
The feature gate for the issue is `#![feature(const_type_id)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [ ] Come up with a new scheme for collision resistant type ids
- [ ] Figure out any safeguards we need to prevent messing with the bits of type id directly
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions

- How can we prevent abuses of transmuting type ids into integers at compile time (where we have fewer tools to deal with them)? See the discussion in #75923
- We need a new scheme for building type ids that's collision resistant. We'd like to do this _before_ stabilizing type ids in constant contexts. https://github.com/rust-lang/rust/issues/10389, https://github.com/rust-lang/rust/issues/129014

### Implementation history

- Initial const implementation #47892
- Initial stabilization #72488
- Reverted stabilization #77083
Repository: pytorch
Issue: Functional interface for optimizers
Labels: module: cpp,module: optimizer,triaged

## 🚀 Feature

As requested in the context of distributed work in #44715 #44791 (cc @jbschlosser @vincentqb @albanD @wanchaol, [internal doc](https://fb.quip.com/XMLfA0XR4tnp)) and of meta-learning in #39279 (cc @egrefen @seba-1511), we want to refactor the optimizer in order to provide a functional form to them (with no other algorithmic changes). The current object form would simply call into the functional form.

- [x] Update all python optimizers
- [ ] Update all C++ optimizers 

Please feel free to comment :)

cc @vincentqb
Repository: electron
Issue: showDefinitionAtPosition API
Labels: enhancement :sparkles:,platform/macOS

### Problem Description
<!-- Is your feature request related to a problem? Please add a clear and concise description of what the problem is. -->

Under macOS it's expected to have a context menu item for looking up the definition of selected words, Electron currently provides the [`BrowserWindow#showDefinitionForSelection`](https://www.electronjs.org/docs/api/browser-window#winshowdefinitionforselection-macos) API for implementing exactly that. The issue is that that works only with native inputs and textareas, if I have some text selected in a custom editor, like a word selected in a vscode-like editor, then the selection is just not recognized and that API doesn't do anything.

### Proposed Solution
<!-- Describe the solution you'd like in a clear and concise manner -->

I'd like to have a `BrowserWindow#showDefinitionAtPosition` API that essentially opens up the definition popover for an arbitrary string at an arbitrary position.

### Alternatives Considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

I think potentially this could be implemented already by positioning an hidden input at the desired location with the desired string in it, selecting everything in it and then triggering `BrowserWindow#showDefinitionForSelection`, but if that even works at all it sounds too hacky to me, I'd be much happier if Electron could handle the mess behind this and just give me a clean, simple, API for it.
Repository: flutter
Issue: Translate licensesPackageDetailTextZero in Macedonian
Labels: framework,f: material design,a: internationalization,team-design,triaged-design

Currently does not have a translation, but the recommended string based on https://github.com/flutter/flutter/pull/66177 should be "Нема лиценци".

A translation request has already been made in the internal Google translation console. If accepted by the translators, it will be updated and the next translation dump should contain this update.
Repository: flutter
Issue: [pigeon] Support static constant values
Labels: d: api docs,package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

I'm looking to define constant values to represent error codes.

I can't find any documentation on what happens to any constants that are defined and where they should be defined.

I'm going to try and add them to the class defined for @HostApi .

This does seem to suggest that the documentation should cover off what is permitted in the HostApi and FlutterApi classes.
Repository: ant-design
Issue: IE11中点击Select没有使得Textarea解除focus，导致光标展示在Select下拉列表中
Labels: Internet Explorer,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.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-4ehxt?file=/index.js)

### Steps to reproduce
1. 在textarea输入框里输入数据，光标因此会右移
2. 此时点击select，展示下拉框
3. 光标会浮现在下拉框中

### What is expected?
下拉框中没有光标

### What is actually happening?
下拉框中有光标

| Environment | Info |
|---|---|
| antd | 4.6.5 |
| React | 16.13.1 |
| System | Windows 10 |
| Browser | Internet Explorer 11.1082.18362.0 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ant-design
Issue: Separate validations for nested fields catch errors
Labels: Inactive

- [ V ] 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-broken-validation-ikzgw?file=/src/App.tsx)

### Steps to reproduce
Open console and see that the first set of fields is validated and the other 2 return `outOfDate: true` errors

### What is expected?
Each set of fields to be validated in `useEffect` separately and successfully (or with real validation errors if there are any)

### What is actually happening?
It looks like the whole set of fileds with top-level key is validated once, and for the next valivation invocation it just returns an `outOfDate` error

| Environment | Info |
|---|---|
| antd | 4.5.4 |
| React | 16.12.0 |
| System | Windows 10 |
| Browser | Chrome 85.0.4183.102  |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: storybook
Issue: Incorrect description in args table when using named export for shared object prop type in V6
Labels: bug,addon: docs,block: argstable

I'm experiencing an issue when using named exports for a type that is shared among multiple components. The description does not seem to be detected by Storybook and instead displays

```js
{
  0: undefined,
  1: undefined,
  2: undefined,
  ...
}
```

If I include the prop type object directly it is displayed as expected.

```js
{ title: string, content: string }
```

I thought initially it may be a Webpack issue but I've tried starting a new storybook project with the same result.

### Contrived example
![Screen Shot 2020-09-24 at 3 00 27 pm](https://user-images.githubusercontent.com/15922558/94102975-bd13aa00-fe76-11ea-8fb1-cee9c9b3c25d.png)


```js
// Block.js
import React from 'react';
import {PropTypes} from 'prop-types';

import {itemType} from './types';

const Block = ({item}) => {
  return (
    <div>
      <h2>{item.title}</h2>
      <p>{item.content}</p>
    </div>
  );
};

Block.propTypes = {
  item: PropTypes.shape(itemType),
};

export default Block;
```

```js
// Block.stories.js
import React from 'react';
import Block from './Block';

export default {
  component: Block,
  title: 'Design System/Base/Block',
};

const Template = (args) => <Block {...args} />;

export const Basic = Template.bind({});
Basic.args = {item: {title: 'Some title', content: 'testing'}};
```

```js
// types.js
import PropTypes from 'prop-types';

export const itemType = {
  title: PropTypes.string,
  content: PropTypes.string,
};

```

```
System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-1060NG7 CPU @ 1.20GHz
  Binaries:
    Node: 14.10.1 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Browsers:
    Chrome: 85.0.4183.121
    Edge: 85.0.564.60
    Firefox: 80.0.1
    Safari: 14.0
  npmPackages:
    @storybook/addon-actions: ^6.0.21 => 6.0.21 
    @storybook/addon-docs: ^6.0.21 => 6.0.21 
    @storybook/addon-info: ^5.3.21 => 5.3.21 
    @storybook/addon-knobs: ^6.0.21 => 6.0.21 
    @storybook/addon-links: ^6.0.21 => 6.0.21 
    @storybook/addon-viewport: ^6.0.21 => 6.0.21 
    @storybook/addons: ^6.0.21 => 6.0.21 
    @storybook/react: ^6.0.21 => 6.0.21 
```
Repository: terminal
Issue: Send Desktop Notification via VT Sequence (OSC777)
Labels: Issue-Feature,Help Wanted,Area-VT,Product-Terminal,In-PR

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

On macOS there's [terminal-notifier](https://github.com/julienXX/terminal-notifier). On Linux there's `notify-send`. But on Windows I don't think there's a similar tool. Adding the support for desktop notification in WT would help scripts/TUI apps to send notification without too much hassle.

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)

The terminal-wg has not finalized a spec for this feature. The issue is [here](https://gitlab.freedesktop.org/terminal-wg/specifications/-/issues/13). The implementation is leaning towards using OSC 9/99/777.

<!-- 
A clear and concise description of what you want to happen.
-->