sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Add `start_dim` and `end_dim` functionality for common reduction operations.
Labels: feature,triaged,module: reductions

## 🚀 Feature
Add `start_dim` and `end_dim` for common reduction operations such as `torch.sum`, `torch.mean`, etc. which applies the operation to dimensions [start_dim, end_dim). This would work similar to `torch.flatten(input, start_dim=0, end_dim=-1)`.

## Motivation

I often find myself adding helper functions like this
```
def sum_except_batch(x, num_batch_dims=1):
    """Sums all elements of `x` except for the first `num_batch_dims` dimensions."""
    reduce_dims = list(range(num_batch_dims, x.ndimension()))
    return torch.sum(x, dim=reduce_dims)
```
where I explicitly have to deal with shapes in order to reduce over multiple dimensions.

## Pitch

Add additional signature in addition to the existing one for reduction operations.
E.g. for `torch.sum` there is
```
torch.sum(input, dim, keepdim=False, *, dtype=None)
```
This issues proposes adding a further signature
```
torch.sum(input, start_dim=0, end_dim=-1, keepdim=False, *, dtype=None)
```

cc @heitorschueroff
Repository: create-react-app
Issue: InlineChunkHtmlPlugin should respect `defer` attribute.
Labels: needs triage,issue: bug report

<!--
    Please note that your issue will be fixed much faster if you spend about
    half an hour preparing it, including the exact reproduction steps and a demo.

    If you're in a hurry or don't feel confident, it's fine to report bugs with
    less details, but this makes it less likely they'll get fixed soon.

    In either case, please use this template and fill in as many fields below as you can.

    Note that we don't provide help for webpack questions after ejecting.
    You can find webpack docs at https://webpack.js.org/.
-->

### Describe the bug

As the recently [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin#options). `scriptLoading` is set to `defer` by default.

With the `defer`, html-webpack-plugin will generate an html and put the script tag before body with defer attribute.

After InlineChunkHtmlPlugin. All script will be put at the position of the script tag (before body). That means you will not able to access all the dom element.

We might have to wrap all the script into a `DOMContentLoaded` handler if script has `defer` attribute.
Or just put all the script after body.
Repository: godot
Issue: Messages such as `undefined symbol: pa_threaded_mainloop_once_unlocked` on startup
Labels: bug,platform:linuxbsd,topic:buildsystem,topic:audio

**Godot version:**
3.3.rc6.official

**OS/device including version:**

Elementary OS based on Ubuntu:

```
Linux hostname 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
```

**Issue description:**
<!-- What happened, and what was expected. -->

Running the editor (no project required) results in messages about undefined symbols:

```
/usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_threaded_mainloop_once_unlocked
/usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_thread_make_realtime
```

Full output:

```
$ ~/<path>/Godot_v3.3-rc6_x11.64
Godot Engine v3.3.rc6.official - https://godotengine.org
WARNING: initialize: XOpenIM failed
   At: platform/x11/os_x11.cpp:200.
WARNING: initialize: XCreateIC couldn't create xic
   At: platform/x11/os_x11.cpp:508.
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2)
OpenGL ES Batching: ON
/usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_threaded_mainloop_once_unlocked
/usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_thread_make_realtime
```

My initial assumption is that it's related to PulseAudio versions and the wrapping that Godot does of the audio shared libraries on Linux.

See, for example:

https://github.com/godotengine/godot/blob/67916b6751586f613b78271e6a1fd465ae921964/drivers/pulseaudio/pulse-so_wrap.h#L332

and:

https://github.com/godotengine/godot/blob/67916b6751586f613b78271e6a1fd465ae921964/drivers/pulseaudio/pulse-so_wrap.c#L3669-L3676

Relevant version info of Pulse audio (this version of Elementary is based on the Ubuntu 18.04 LTS release):

```
$ pulseaudio --version
pulseaudio 11.1
```

_Edits:_

 * Based on the docs, it seems `pa_threaded_mainloop_once_unlocked()` was added in version 13.0: https://freedesktop.org/software/pulseaudio/doxygen/thread-mainloop_8h.html#acc68ed60d2285fafa996b2181b325b82

 * This (unrelated?) issue also includes the messages in the example output: https://github.com/godotengine/godot/issues/47352

 * I did a quick test of playing an MP3 sound file in the editor and it seemed to play successfully.

**Steps to reproduce:**

Run the editor from the command line.

**Minimal reproduction project:**
N/A
Repository: terminal
Issue: Targeting current instance with "-w 0" command line doesn't work if running as administrator
Labels: Issue-Bug,Product-Terminal,Priority-2,Tracking-External,Area-Remoting

### Windows Terminal version (or Windows build number)

1.7.572.0

### Other Software

_No response_

### Steps to reproduce

Launch Windows Terminal as administrator
Run the command line: wt -w 0 nt

### Expected Behavior

This should open a new tab in the current window

### Actual Behavior

Launches a new instance of Windows Terminal

It would make sense that I wouldn't be able to send commands to other WT windows that were running as admin, but running a command specifically targeting the current window should still work (as a special case if necessary).
Repository: node
Issue: Conditional exports doesn't respect alternative paths
Labels: module

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: v14.16.0
* **Platform**: Darwin DEV135MAC0211.fritz.box 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64
* **Subsystem**:

### What steps will reproduce the bug?

When importing a package with conditional exports declared in the package.json, then node doesn't respect alternative path exports:

    "exports": {
        "./*": {
            "require": [
                "./dist/cjs/*/index.js",
                "./dist/cjs/*.js"
            ]
        }
    }

Node only tries to resolve the first one and fails immediately if the first path to a module doesn't exist. I don't know if this is the intended behaviour, but in the Webpack guide it is explicitly mentioned as a feature (https://webpack.js.org/guides/package-exports/#alternatives).

<!--
Enter details about your bug, preferably a simple code snippet that can be
run using `node` directly without installing third-party dependencies.
-->

### What is the expected behavior?

Node tries to resolve an import against each entry in the conditional exports array and returns the first successful loaded module.

<!--
If possible please provide textual output instead of screenshots.
-->

### What do you see instead?

Node only resolves the first entry of the conditional exports alternatives.

<!--
If possible please provide textual output instead of screenshots.
-->
Repository: flutter
Issue: Render Issue with container's border in a listView on web
Labels: framework,engine,platform-web,c: rendering,has reproducible steps,P2,found in release: 2.0,found in release: 2.1,team-web,triaged-web

I have a list view with containers.
Like a mail inbox for example.
The containers have blue borders if the mail is new.
If the list is scrolled up completly, the thikness of the border is equal on all 4 sides.
But if you scroll down so that a the top a container is not displayed completely, the left border get's smaller.
This happens to all containers which are not displayed completely at the top:
![Unbenannt](https://user-images.githubusercontent.com/20759873/112647313-a9a6c300-8e48-11eb-8eac-5ee4c9e8f1d4.PNG)

The moment the top line of the container is not displayed anymore, the left line get's thinner.
Repository: pytorch
Issue: RuntimeError: "log2" "_vml_cpu" not implemented for 'Half'
Labels: triaged,module: numpy,module: half

## 🐛 Bug

On CPU, haven't tested on GPU

RuntimeError: "log2" "_vml_cpu" not implemented for 'Half'

RuntimeError: "log" "_vml_cpu" not implemented for 'Half'

RuntimeError: "exp" "_vml_cpu" not implemented for 'Half'

RuntimeError: "pow" not implemented for 'Half'

RuntimeError: "round" "_vml_cpu" not implemented for 'Half'

## To Reproduce

Steps to reproduce the behavior:

```
torch.log2(torch.rand((3, 3), dtype=torch.float16))
torch.log(torch.rand((3, 3), dtype=torch.float16))
torch.exp(torch.rand((3, 3), dtype=torch.float16))
torch.pow(torch.rand((3, 3), dtype=torch.float16))
torch.round(torch.rand((3, 3), dtype=torch.float16))
```

```
RuntimeError: "log2" "_vml_cpu" not implemented for 'Half'

RuntimeError: "log" "_vml_cpu" not implemented for 'Half'

RuntimeError: "exp" "_vml_cpu" not implemented for 'Half'

RuntimeError: "pow" not implemented for 'Half'

RuntimeError: "round" "_vml_cpu" not implemented for 'Half'
```

## Expected behavior

log2 and log and exp and pow and round should work for Half. exp2 does work tho.

## Environment

 - PyTorch Version (e.g., 1.0): 1.8.1
 - OS (e.g., Linux): OSX
 - How you installed PyTorch (`conda`, `pip`, source): pip3
 - Build command you used (if compiling from source):
 - Python version: 3.8.5
 - CUDA/cuDNN version: n/a
 - GPU models and configuration: CPU
 - Any other relevant information: n/a

Related to #50789

cc @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: [FX] Cannot symbolically trace class method
Labels: triaged,module: fx

```
import torch

from torch import fx

class M(fx.GraphModule):
    def __init__(self):
        super().__init__(self, fx.Graph())
        graph = fx.symbolic_trace(M.fake_forward)
        self.graph = graph
        self.recompile()
        self.register_buffer("w1", torch.ones(3))

    def fake_forward(self, x):
        return self.w1 * x

m = M()
"""
Traceback (most recent call last):
  File "/home/jamesreed/repro.py", line 16, in <module>
    m = M()
  File "/home/jamesreed/repro.py", line 8, in __init__
    graph = fx.symbolic_trace(M.fake_forward)
  File "/data/users/jamesreed/pytorch/torch/fx/symbolic_trace.py", line 622, in symbolic_trace
    return GraphModule(tracer.root, graph, name)
  File "/data/users/jamesreed/pytorch/torch/fx/graph_module.py", line 232, in __init__
    self.graph = graph
  File "/data/users/jamesreed/pytorch/torch/nn/modules/module.py", line 1142, in __setattr__
    object.__setattr__(self, name, value)
  File "/data/users/jamesreed/pytorch/torch/fx/graph_module.py", line 257, in graph
    self.recompile()
  File "/data/users/jamesreed/pytorch/torch/fx/graph_module.py", line 466, in recompile
    cls.forward = _forward_from_src(self._code, python_code.globals)
  File "/data/users/jamesreed/pytorch/torch/fx/graph_module.py", line 43, in _forward_from_src
    exec_with_source(src, globals)
  File "/data/users/jamesreed/pytorch/torch/fx/graph_module.py", line 28, in exec_with_source
    exec(compile(src, key, 'exec'), globals)
  File "<eval_with_key_1>", line 2
SyntaxError: duplicate argument 'self' in function definition
"""
```

cc @ezyang
Repository: excalidraw
Issue: Support line merging
Labels: enhancement,discussion

If you draw two lines (or duplicate a line and flip it), you may wanna merge them so as to support adding a fill.

One workflow we could use:

1. select two linear elements → contextMenu → merge lines
2. it would choose one terminal point (based on proximity) from each line and merge those
Repository: TypeScript
Issue: Error on named property assignment on nested function object
Labels: Bug

# Bug Report

When inside a parent function creating a new block scoped function, TS throws an error when assigning a named property to the nested function, unless a non-named property assignment precedes it.

### 🔎 Search Terms

function property assignment
named function property
index function properties

### 🕗 Version & Regression Information

- Happens on newest 4.2.3
- Noticed first time some months ago, before 4.0, didn't take action until now.

### ⏯ Playground Link

[Playground Link](https://www.typescriptlang.org/play?#code/MYewdgzgLgBARgQwE4wLwwOSKRg3AKHwDMBXMYKAS3BgAdkBTMKAMTIurAAoBKGAb3wxhMUuSo0iIELwEBfISKkgA2tgC6aGFCQkGBRcLEdJ0gEyz+CkaPMA6ZVp16CN5WbXJN6Z-pgB6fxgAdxAkAGsIUUowBnwFIA)

### 💻 Code

```ts
const bar = 'bar';

function foo() {}
foo[bar] = true; // works fine

function parentFunction() {
    function foo() {}
    foo[bar] = true; // Property 'bar' does not exist on type '() => void'

    function foo2() {}
    foo2.foo = true;
    foo2[bar] = true; // works fine
}
```
Repository: PowerToys
Issue: [PT Run] Be able to exclude certain programs from PowerToys Run showing
Labels: Idea-Enhancement,Help Wanted,Product-PowerToys Run

## 📝 Provide a description of the new feature

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

With default settings, the key combination <kbd>Alt</kbd> + <kbd>Space</kbd> is used to open PowerToys Run; but is possible that other programs uses that same shortcut for different applications, or other scenarios that you don't want to open PowerToys Run, even if the key combination is pressed.

For example in my case: in "PaintTool Sai" that key combination <kbd>Alt</kbd> + <kbd>Space</kbd> makes it possible to rotate the canvas, but when I press those keys, PowerToys Run opens instead.

The idea is somewhat the same that what have the Keyboard Manager right now: the remap can be executed only in certain programs. But this time, PowerToys Run can run **except** on certain programs.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: godot
Issue: Duplicated code in different places in repository
Labels: enhancement,topic:codestyle

**Godot version:**
4.0.dev.custom_build. 538daf673

**Issue description:**
In a lot of places, code is duplicated and in some may be moved to new function which will simplify code refactors and decrease number of lines

![Screenshot from 2021-03-26 19-56-52](https://user-images.githubusercontent.com/41945903/112680699-ffda2d00-8e6d-11eb-8bd1-05f661b1904c.png)
 
File with places with same 200 tokens - [txt.txt](https://github.com/godotengine/godot/files/6213837/txt.txt)

Example report
```
=====================================================================
Found a 22 line (262 tokens) duplication in the following files: 
Starting at line 4897 of /mnt/Miecz/mojgodot/editor/animation_track_editor.cpp
Starting at line 5363 of /mnt/Miecz/mojgodot/editor/animation_track_editor.cpp

		float newpos = snap_time(E->get().pos + motion);
		undo_redo->add_undo_method(animation.ptr(), "track_remove_key_at_position", E->key().track, newpos);
	}

	// 5 - (undo) reinsert keys
	for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
		undo_redo->add_undo_method(animation.ptr(), "track_insert_key", E->key().track, E->get().pos, animation->track_get_key_value(E->key().track, E->key().key), animation->track_get_key_transition(E->key().track, E->key().key));
	}

	// 6 - (undo) reinsert overlapped keys
	for (List<_AnimMoveRestore>::Element *E = to_restore.front(); E; E = E->next()) {
		_AnimMoveRestore &amr = E->get();
		undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, amr.transition);
	}

	undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
	undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);

	// 7 - reselect
	for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
		float oldpos = E->get().pos;
		float newpos = snap_time(oldpos + motion);
```
Repository: neovim
Issue: Too many open files while running macro with clipboard=unnamed
Labels: bug,clipboard

- `nvim --version`: 
```
NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: 
Compiled by nixbld

Features: +acl +iconv +tui
See ":help feature-compile"
```
- Operating system/version: `NixOS 20.09`
- Terminal name/version: `urxvt`
- `$TERM`: `rxvt-unicode-256color`

### Steps to reproduce using `nvim -u NORC`

1. `seq 5000 > /tmp/test.txt`
2. `vim -u NORC /tmp/test.txt`
3. `:set clipboard=unnamed`
4. `qqddq`
5. `5000@q`

### Actual behaviour

Produces an error:
```
Error detected while processing function provider#clipboard#Call[6]..3:                                                                                                                                                                                                     
line   29:
E903: Process failed to start: too many open files: "/run/current-system/sw/bin/xclip"
```

### Expected behaviour

Macro should complete without failures.
Repository: vscode
Issue: EnvironmentVariableCollection in remote vs local terminals
Labels: feature-request,api,terminal-process

I just noticed that Remote-SSH's EnvironmentVariableCollection applies to local terminals that I open in an SSH window, and I am using it for variables that should only be set in the remote environment. It would be helpful if I could specify that they only apply to remote terminals. This is sort of a niche request. Would probably be a per-variable option.
Repository: rust
Issue: Tracking Issue for RFC 3086: macro metavariable expressions
Labels: B-RFC-approved,T-lang,C-tracking-issue,F-macro_metavar_expr,S-tracking-design-concerns

This is a tracking issue for the RFC "3086" (rust-lang/rfcs#3086).
The feature gate for the issue is `#![feature(macro_metavar_expr)]`.

### 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

- [x] Implement the RFC (cc @markbt -- has there been work done here already?)
- [ ] 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 and bugs

- [ ] [Figure out problems around hygiene](https://github.com/rust-lang/rust/issues/83527#issuecomment-1073506711)

### Implementation history

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->
Repository: PowerToys
Issue: Personalize Windows Fonts
Labels: Idea-New PowerToy,Product-Tweak UI Design

## 📝 Provide a description of the new feature

People with low vision can manage fonts in a couple of different ways on Windows, including by changing their "Display Resolution" (in Display Settings) and by "Making text bigger" (in Ease of Access Settings).

However, these Settings do not enable users to adjust specific font sizes such as: Title bar, Menu, Message box, Secondary title, Icon or Status bar, which Windows used to support and can be adjusted independently with 3P apps. Similarly, 3P OSs and apps enable users to select Bold fonts for these same elements. They enable users to substitute their preferred font for the system font. They also enable users to save and to import and export font profiles.

In addition to being great for accessibility, this would be a great feature for power users that want to personalize their Windows experience.

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: pytorch
Issue: [package] Detection of dependencies introduced by torch.ops.load_library 
Labels: triaged

`torch.ops.load_library` dynamically loads `.so`s and are not currently detected by `PackageExporter`. This introduces a dependency of the package on the environment that goes untracked currently.

It would be nice if we could detect these dependencies and make the user aware of them somehow. Potential complications:
- `torch.ops.loaded_libraries` might include more than the model being packaged needs (since it is shared by the entire process)
Repository: godot
Issue: Warning moving a scene
Labels: bug,topic:editor,needs testing

<!-- 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.3 rc6 mono

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
win10 64

**Issue description:**
<!-- What happened, and what was expected. -->
A warning appears when you try to move a scene.
I am not very clear about the reason, it seems to be something about the routes or the location of the scenes in the tree.

![Captura](https://user-images.githubusercontent.com/19652075/112695098-ca403e80-8e83-11eb-8570-cdaf329fa67e.PNG)

**Steps to reproduce:**
Move the scene "Node2D.tscn" to the folder named "folder"

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[test.zip](https://github.com/godotengine/godot/files/6214444/test.zip)
Repository: pytorch
Issue: [nnc] simplify is sometimes broken after computeAt
Labels: NNC

See the "FIXME: Calling simplify here breaks the IR:" comment in #54755.  It's not quite clear to me what's going on, but the simplifier breaks some assumption of the IR.