sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: EVENT_MANAGER_PLUGINS injection order
Labels: area: core,core: event listeners,P4

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

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
<!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->
<!-- ✍️edit: --> The issue is caused by package @angular/platform-browser


### Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
<!-- ✍️--> No


### Description

<!-- ✍️--> If I provide my own EventManagerPlugins with multi token EVENT_MANAGER_PLUGINS in a module of my library, order of modules matters - if BrowserModule appears after my module in upmost App module then DomEventsPlugin is injected after my plugins and events never reach my plugins, see this line here:
https://github.com/angular/angular/blob/10.0.1/packages/platform-browser/src/dom/events/dom_events.ts#L20


## 🔬 Minimal Reproduction
<!--
Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy
-->
<!-- ✍️--> https://stackblitz.com/edit/angular-event-plugins-bug
<!--
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
A good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem.
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.

Issues that don't have enough info and can't be reproduced will be closed.

You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue
-->

## 🔥 Exception or Error
No exceptions, plugins just never work


## 🌍  Your Environment

**Angular Version:**
<pre><code>Probably every version
</code></pre>

**Anything else relevant?**
<!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->

<!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->
Repository: react
Issue: Profiler dev tools suggestion: in "ranked" view, add a way to group/aggregate component instances
Labels: Type: Discussion,Component: Developer Tools

(Deleted template as this is a suggestion, not a bug.)

In the profiler's "ranked" view, when there are many instances of a single component, there's no way to answer the question "how much time did this component spend rendering _across all instances_.

For example, here I have a component called `PhotoLink` which is used in many places across the tree. The "ranked" view shows us that each render is very cheap, but it does not tell us the aggregate cost of this component.

Perhaps we could add something to dev tools to group/aggregate component instances?

![image](https://user-images.githubusercontent.com/921609/86143237-170d0980-baec-11ea-891e-636bbe73d3f5.png)
Repository: flutter
Issue: Android HomeScreen Shortcut issue with Flutter
Labels: platform-android,engine,d: stackoverflow,P2,team-android,triaged-android

Hi,

As you know, Flutter provides a mechanism for Dart to communicate with Native. You can call native code through dart, or you can call Dart code in native. 

There is such a situation, I do not know if you have encountered: Add a desktop shortcut on the Android platform, click the desktop shortcut to call the code logic of dart, if the application is already running, there is no problem at this time. But if you kill the application and then click on the desktop shortcut, it will not work in this case. (From the log, when I click the shortcut, class of native Application has called to create, but not with flutter engine)

How can I implement native and dart communication in this situation?

Thanks,
Andy
Repository: go
Issue: x/playground: output caching stops working after some time passes
Labels: NeedsInvestigation

It looks like #31889 has regressed. The same snippet can be used to observe it, re-running this program produces successful but different output each time:

```
https://play.golang.org/p/979rn6Bd7QN
```

I've noticed this when sharing a snippet (/cc @julieqiu) where a timeout due to a large dependency would happen occasionally. Usually, with output caching, getting it to succeed once makes it possible to share the snippet without risk of timeout because it no longer needs to execute again, but that wasn't the case.

/cc @toothrot @cagedmantis @andybons
Repository: pytorch
Issue: Encoding dimension argument for F.one_hot
Labels: module: bootcamp,triaged,enhancement,module: memory format

## 🚀 Feature
`dim` argument in `F.one_hot(tensor, dim=1, num_classes=-1)`

## Motivation

via the [discussion on one-hot encoding](https://discuss.pytorch.org/t/pytocrh-way-for-one-hot-encoding-multiclass-target-variable/68321/8?u=stalhabukhari) at discuss.pytorch.org:

Output from `F.one_hot` yields a tensor in the NHWC format, which needs to be transposed to convert into PyTorch's NCHW format. A `dim` argument, which specifies where the encoding (channel) dimension would emerge, will avoid this extra operation.

Cc: @ptrblck 

cc @VitalyFedyunin @jamesr66a @ppwwyyxx
Repository: flutter
Issue: batch entrypoint adds measureable overhead to flutter_tool startup on Windows
Labels: tool,c: performance,platform-windows,P3,team-tool,triaged-tool

The flutter.bat script seems to add about 200ms of overhead to the startup on windows. This does not seem to be a general script overhead, but a slowness in batch. It might be possible to reduce this overhead by doing some operations in a different shell (powershell?) while still retaining a minimal batch entrypoint.



Initially discovered in https://github.com/flutter/flutter/pull/60112

> I looked into the performance issues on windows. I believe this is entirely caused by 1) slower tool operations on windows and 2) slower startup scripts on windows.
> 
> For reference, If I make the following diff to the flutter tool:
> 
> diff --git a/packages/flutter_tools/lib/executable.dart b/packages/flutter_tools/lib/executable.dart
> index a7dcfbceed..12557ffd9b 100644
> --- a/packages/flutter_tools/lib/executable.dart
> +++ b/packages/flutter_tools/lib/executable.dart
> @@ -57,6 +57,7 @@ import 'src/web/web_runner.dart';
>  ///
>  /// This function is intended to be used from the `flutter` command line tool.
>  Future<void> main(List<String> args) async {
> +  return;
>    final bool verbose = args.contains('-v') || args.contains('--verbose');
> 
>    final bool doctor = (args.isNotEmpty && args.first == 'doctor') ||
> And then run the executable directly with Measure-Command { ./bin/cache/flutter_tools.exe }, the resulting execution time is approximately 24 ms. Running through bin/flutter.bat brings this up to 270 ms. Removing the early return brings it up further to 500 ms.
> 
> Separate from this capability, I will need to dig into the entry-point script changes to see if we can get some of this performance back
Repository: terminal
Issue: Automatically add the release notes to Store page
Labels: Issue-Docs,Area-Build,Product-Meta

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

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

<!-- 
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).
-->
Automatically add the release notes to Store page

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->
update the release scripts to update the data for store when it is published.  Also in Publisher Info add a link to the releases page probably call it "Windows Terminal release history"
Repository: flutter
Issue: Extra vertical padding surrounding DropdownButtonFormField when compared to TextField
Labels: framework,f: material design,a: quality,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-design,triaged-design

This issue was original reported by @cassioseffrin in https://github.com/flutter/flutter/issues/46844#issuecomment-651816889

-------------

@shihaohong  take a look:

 ![Screen Shot 2020-06-30 at 10 58 17](https://user-images.githubusercontent.com/13109831/86135113-c59b5500-bac0-11ea-9f08-a745c586a112.png)

the 1st field (price) is a common TextField with OutlineInputBorder border;
the 2nd field (unit) is a DropdownButtonFormField  with OutlineInputBorder border;

Even with isDense=true there is an extra padding  (8 pixes in total: 4 on top, 4 on bottom) between the labelText and the  widget that wraps the labelText and the Icon

in dropdown.dart line 1284 there is a method that calculates the height, the result is 24 if I set it to 16 the  DropdownButtonFormField render the same height of the TextField, however I think it's not correct to set it as a constant. I can't figure out where this 8 pixels of extra padding were created.  

Line 1284 of dropdown.dart.
```
  double get _denseButtonHeight {
    final double fontSize =
        _textStyle.fontSize ?? Theme.of(context).textTheme.subtitle1.fontSize;
    return math.max(fontSize, math.max(widget.iconSize, _kDenseButtonHeight));
  }
```
I am in last stable release of Flutter (Channel stable, v1.17.4) 


-------------

@HansMuller, I don't think it's related to  #59196, in this case the Text height is exactly the same. I actually have made a correction in the widget dropdown.dart, just 1 line of code. May I could make a PR?

The problem is the icon size calculation, the resulting height is stretching all the DropdownButtonFormField: see the results, both components are now with exactly the same height.
![Screen Shot 2020-06-30 at 14 44 21](https://user-images.githubusercontent.com/13109831/86159400-ab716f00-bae0-11ea-9092-b31dd6f2b28c.png)


Here without debug paint: 
![Screen Shot 2020-06-30 at 15 04 14](https://user-images.githubusercontent.com/13109831/86161051-1623aa00-bae3-11ea-90b7-fc1a90eed0a4.png)
Repository: rust
Issue: Comprison of `TypeId`s in const context
Labels: S-blocked,A-const-eval

Is there any way to compare 2 `TypeId`s in `const` context? (It's possible to _create_ them in `const` context, and it's even [soon to be stabilized](https://github.com/rust-lang/rust/pull/72488))

What I want is a static check for type (un)equality without `auto trait`s: 
```rust
// will fail with index out of bounds if T == U
const _: () = [()][(TypeId::of::<T>() == TypeId::of::<U>()) as usize];
```
(this exact code currently fails to compile with "calls in constants are limited to constant functions, tuple structs and tuple variants" error, because `==` isn't `const`)

Maybe it's a good idea to add API like the following to TypeId?

```rust
impl TypeId {
    const fn eq(&self, rhs: &Self) -> bool {
        self.t == rhs.t
    }
}
```

I could work on this, though I haven't seen similar apps in std, so I wanted to ask about it before doing anything.
Repository: godot
Issue: Signal method gets called within the editor and returns "not found" error 
Labels: bug,topic:editor

This bug is similar to Godot #13070 which was closed two years ago.

**Godot version:** v3.2.2.stable.official

**OS/device including version:** Windows 8 Desktop

**Issue description:** By adding a making a Godot script listen to signals on a tool script, Godot calls it on the editor and returns the error:

```
ERROR: emit_signal: Error calling method from signal 'melodic_changed': 'Control
(RootNode.gd)::_on_ScriptNode_melodic_changed': Method not found..
   At: core/object.cpp:1260
```

Script:

```
tool
extends LineEdit

# Setting this 'melodic' value in the editor causes console errors.
export (String) var melodic: String setget set_melodic

signal melodic_changed

func set_melodic(new_melodic: String) -> void:
	emit_signal("melodic_changed")
```

**Steps to reproduce:** Create a tool script, and a non-tool script. Have the tool script emit a signal which the non-tool script listens to. Add an `emit_signal` call to a setter, so that you can emit the signal in the editor. The console will report an error when the signal is emitted.

**Minimal reproduction project:** [signal-errors.zip](https://github.com/godotengine/godot/files/4854165/signal-errors.zip) `ScriptNode` has a `melodic` property; editing this property in the Godot editor causes errors in the console.
Repository: go
Issue: x/pkgsite: remove legacyconversions
Labels: NeedsFix,pkgsite

Replace the legacyconversions.RiskilyXXX calls with something safe.
Repository: go
Issue: x/pkgsite: display struct field & interface method doc comments in a less code-ish way?
Labels: NeedsInvestigation,FeatureRequest,pkgsite,UX

Apologies if this is something that's been suggested a million times, but... while I like the pkg.go.dev docs UI better than godoc.org, it keeps the same way of presenting struct and interface documentation, which I find awkward. The definitions are displayed literally as Go code, with all the doc comments looking like just that: code comments. To me, there are several problems with this:

1. It's unlike how any of the other doc content is displayed. Everything else is formatted as paragraphs of text, with distinct headings.
2. In particular, the comment lines are rendered exactly as is, so if there's a too-long line you'll have to scroll right, and if the developer manually wrapped some lines much shorter than others it looks pretty ragged. All other doc content is rendered as wrapping paragraphs.
3. Other than linking the names of types, none of the usual godoc formatting is applied: in particular, code examples look just like the other comment lines except for the extra indentation, and URLs are not linked.
4. While the HTML does contain anchor IDs for these items, there's no visible indication of that - you would have to inspect the page source or make assumptions about how the anchors correspond to the symbol names.

I can't think of any conceptual reason why the doc comments for struct fields and interface methods should be treated so differently from types and implementation methods. If someone really wants to see what these definitions look like in their original Go code format, there's already a link to the source code right there.

<!--
Please answer these questions before submitting your issue. Thanks!
-->
 
### What is the URL of the page with the issue?
 
Any page with a struct or an interface on it, for instance [this](https://pkg.go.dev/gopkg.in/launchdarkly/go-server-sdk.v5?tab=doc#Config) or [this](https://pkg.go.dev/gopkg.in/launchdarkly/go-server-sdk.v5/interfaces?tab=doc#DataStore).
 
### What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36
 
### Screenshot

![image](https://user-images.githubusercontent.com/35503443/86188336-2b083980-baf3-11ea-86a5-508ff873cb74.png)
 
### What did you do?

Viewed the documentation for some structs and interfaces.

### What did you expect to see?
 
No particular expectations, but it would've been nice to see something other than the way godoc.org does it.

### What did you see instead?

A block of Go code, the same way godoc.org does it.
Repository: TypeScript
Issue: Should we set '"types": []' for 'tsc init'?
Labels: Suggestion,In Discussion,Committed

Very few people understand the automatic `@types` inclusion behavior, it often [causes packages to conflict](https://github.com/microsoft/TypeScript/issues/32273), and [it is often a program construction performance foot-gun](https://github.com/microsoft/TypeScript/wiki/Performance#controlling-types-inclusion).

Maybe we should output a field like this in `compilerOptions`.

```json5
// Add packages with global definitions that can't be imported here.
// Remove entirely to auto-include all '@types' packages.
"types": []
```

What do others here think?
Repository: excalidraw
Issue: Can't open scene made in Firefox Developer Edition in Firefox (regular edition)
Labels: bug

I use Firefox Developer Edition for work and Firefox (regular edition) for personal use on the same machine (macOS). I drew something in the Dev Edition, grabbed the link then tried to open in Firefox and received this error. 

<img width="787" alt="image" src="https://user-images.githubusercontent.com/3806031/86198503-9a3e5780-bb0c-11ea-8760-d8829c775a8b.png">

Note: opening the scene in Safari works fine.

### Scene content

```
{"excalidraw":[{"id":"WrEMSnYpiGbsXxbk_---6","type":"text","x":316.5,"y":358,"width":649,"height":24,"angle":0,"strokeColor":"#000000","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":1,"roughness":1,"opacity":100,"seed":2109172165,"version":2,"versionNonce":1797308683,"isDeleted":false,"text":"https://excalidraw.com/#json=5753229396672512,HuVR-T5hcB22xkoaUw1_rA","font":"20px Virgil","textAlign":"left","baseline":17}],"excalidraw-state":{"elementType":"selection","elementLocked":false,"exportBackground":true,"shouldAddWatermark":false,"currentItemStrokeColor":"#000000","currentItemBackgroundColor":"transparent","currentItemFillStyle":"hachure","currentItemStrokeWidth":1,"currentItemRoughness":1,"currentItemOpacity":100,"currentItemFont":"20px Virgil","currentItemTextAlign":"left","viewBackgroundColor":"#ffffff","scrollX":0,"scrollY":0,"cursorX":0,"cursorY":0,"cursorButton":"up","scrolledOutside":false,"name":"Untitled-2020-06-30-1957","username":"","zoom":1,"openMenu":null,"lastPointerDownWith":"mouse","selectedElementIds":{"WrEMSnYpiGbsXxbk_---6":true},"shouldCacheIgnoreZoom":false,"zenModeEnabled":false},"i18nextLng":"en"}
```

### Sentry Error ID

ddc0b9b5eaf641db96bf9990a26d3aa2
Repository: youtube-dl
Issue: weibo site support
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.06.16.1. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.06.16.1**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [ ] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.weibo.com/tv/show/1034:4521639308623891?from=old_pc_videoshow
- Single video: https://weibo.com/tv/show/1034:4521604705615885
more:
https://weibo.com/tv/show/1034:4521591862657045?from=old_pc_videoshow
https://www.weibo.com/tv/show/1034:4521632778092567?from=old_pc_videoshow



## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Here is the error log:

```
youtube-dl --cookies c:\cookies.txt https://www.weibo.com/tv/show/1034:4521639308623891?from=old_pc_videoshow
[generic] 1034:4521639308623891?from=old_pc_videoshow: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1034:4521639308623891?from=old_pc_videoshow: Downloading webpage
[generic] 1034:4521639308623891?from=old_pc_videoshow: Extracting information
ERROR: Unsupported URL: https://www.weibo.com/tv/show/1034:4521639308623891?from=old_pc_videoshow
```

weibo is a very popular short video site. please add support. Much appreciated!