sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Image.network loadingBuilder still not working on web
Labels: c: regression,framework,platform-web,a: images,has reproducible steps,P3,found in release: 3.10,found in release: 3.11,team-web,triaged-web

Following an older issue #50586 that was closed due to inactivity. ```loadingBuilder``` of ```Image.network``` is not working properly on web. 
**The following code:**
![image](https://user-images.githubusercontent.com/52862600/93876763-067dc100-fce0-11ea-8159-005d97d3c144.png)

On web ```cumulativeBytesLoaded``` and ```expectedTotalBytes``` are always 0 and 100 respectively. (The reason ```CircularProgressIndicator``` is not showing since the value is always 0)
![image](https://user-images.githubusercontent.com/52862600/93876611-cc142400-fcdf-11ea-94a6-0cfd6ccfd654.png)

While on mobile clearly it works as intended:
![image](https://user-images.githubusercontent.com/52862600/93877143-a2a7c800-fce0-11ea-9b81-6b0463b0234a.png)

<details>
<summary>flutter doctor --verbose</summary>

</br>
[√] Flutter (Channel beta, 1.21.0-9.1.pre, on Microsoft Windows [Version 10.0.19041.508], locale en-US)
    • Flutter version 1.21.0-9.1.pre at D:\flutter
    • Framework revision be9bc8cb39 (5 weeks ago), 2020-08-18 09:46:08 -0700
    • Engine revision 267070c17a
    • Dart version 2.10.0 (build 2.10.0-7.2.beta)


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\esentis\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: E:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.0)
    • Android Studio at E:\Program Files\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (3 available)
    • Android SDK built for x86 (mobile) • emulator-5556 • android-x86    • Android 8.1.0 (API 27) (emulator)
    • Web Server (web)                   • web-server    • web-javascript • Flutter Tools
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 85.0.4183.102


</details>
Repository: storybook
Issue: Pre-rendered / SSR (server side rendered) stories
Labels: feature request,performance issue,core

This topic has already occurred several times without any proper solutions or discussions on how to implement this in the future.
https://github.com/storybookjs/storybook/issues/8009
https://github.com/storybookjs/storybook/issues/828
https://github.com/storybookjs/storybook/issues/4271

I think there is definitely a need for server side rendered stories and with some changes to the API it may be possible to create a plugin. We already created a working SSR configuration for storybook (5.xx) (react) but it uses some private functions to create a working webpack configuration. Many corners were cut to get this thing running.

https://github.com/goodhood-eu/goodhood/tree/5f0342b36186f9eccf36930d4cde53626a579b8b/.storybook

In short, it works like this:
- `start-storybook --preview-url=/ssr-iframe`
- `.storybook/middleware.js` registers a custom SSR middleware
- SSR middleware injects a custom `webpackDevMiddleware` and listens to requests to `/ssr-iframe`
- On `GET /ssr-iframe` we grab the compiled prerender bundle from webpack and render the requested story
- ssr-iframe client side js kicks in and hydrates prerender https://github.com/goodhood-eu/goodhood/blob/5f0342b36186f9eccf36930d4cde53626a579b8b/.storybook/ssr/src/index.jsx#L14

This part only uses public APIs.

The difficult part is to setup a working webpack config. To be able to do this, we access some storybook internals.
https://github.com/goodhood-eu/goodhood/blob/5f0342b36186f9eccf36930d4cde53626a579b8b/.storybook/ssr/webpack.config.js#L1

Needed public API for a plugin like this:
- Set previewUrl in main.js or somewhere other than CLI args
- Get preview webpack config (don't think there is a way around patching it)

Would you accept a PR solving this?
Repository: go
Issue: proposal: runtime: add per-goroutine CPU stats
Labels: Proposal

Per-process CPU stats can currently be obtained via third-party packages like https://github.com/elastic/gosigar. However, I believe that there exists a need for a certain type of applications to be able to understand CPU usage at a finer granularity.

## Example
At a high level in CockroachDB, whenever an application sends a query to the database, we spawn one or more goroutines to handle the request. If more queries are sent to the database, they each get an independent set of goroutines. Currently, we have no way of showing the database operator how much CPU is used per query. This is useful for operators in order to understand which queries are using more CPU and measure that against their expectations in order to do things like cancel a query that's using too many resources (e.g. an accidental overly intensive analytical query). If we had per-goroutine CPU stats, we could implement this by aggregating CPU usage across all goroutines that were spawned for that query.

Fundamentally, I think this is similar to bringing up a task manager when you feel like your computer is slow, figuring out which process on your computer is using more resources than expected, and killing that process.

## Proposal
Add a function to the `runtime` package that does something like:
```
type CPUStats struct {
    user time.Duration
    system time.Duration
    ...
}

// ReadGoroutineCPUStats writes the active goroutine's CPU stats into
// CPUStats.
func ReadGoroutineCPUStats(stats *CPUStats) 
```

## Alternatives
From a correctness level, an alternative to offering these stats is to `LockOSThread` the active goroutine for exclusive thread access and then get coarser-grained thread-level cpu usage by calling `Getrusage` for the current thread. The performance impact is unclear.

## Additional notes
Obtaining execution statistics during runtime at a fine-grained goroutine level is essential for an application like a database. I'd like to focus this conversation on CPU usage specifically, but the same idea applies to goroutine memory usage. We'd like to be able to tell how much live memory a single goroutine has allocated to be able to decide whether this goroutine should spill a memory-intensive computation to disk, for example. This is reminiscent of https://github.com/golang/go/issues/29696 but at a finer-grained level without a feedback mechanism.

I think that offering per-goroutine stats like this is useful even if it's just from an obervability standpoint. Any application that divides work into independent sets of goroutines and would like to track resource usage of a single group should benefit.
Repository: godot
Issue: EditorPlugin: edit_resource causes Index line = -1 is out of bounds in text_edit.cpp
Labels: bug,topic:editor,topic:plugin

<!-- 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.2.3 stable

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows

**Issue description:**
<!-- What happened, and what was expected. -->
`EditorInterface.edit_resource()` can cause errors like `scene/gui/text_edit.cpp:4357 - Index line = -1 is out of bounds (text.size() = 2)` when trying to edit some scripts.

The error appears only once
I guess this may be due to the number of lines.
In the attached project I provide a file that causes the error (`new_script.gd`) and a file that doesn't (`new_file_no_error.gd`) when trying to edit it using `EditorInterface.edit_resource()`

`new_script.gd:`
```gdscript
extends Node

```

`new_script_no_error.gd:`
```gdscript
extends Node

func _ready():
	pass

```

`plugin.gd:`
```gdscript
tool
extends EditorPlugin

func _input(event):
	if Input.is_key_pressed(KEY_F12):
		get_editor_interface().edit_resource(preload("res://new_script.gd"))
	
	if Input.is_key_pressed(KEY_F11):
		get_editor_interface().edit_resource(preload("res://new_script_no_error.gd"))

```

**Steps to reproduce:**
1. open the attached project
2. press `F12` on the keyboard
you can see the error in Output
if you press `F12` again the error doesn't appear
3. close the project and open again
4. press F11
there is no error
5. it's interesting - when you press F12 now, the error doesn't appear


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[test edit_resource.zip](https://github.com/godotengine/godot/files/5261684/test.edit_resource.zip)
Repository: pytorch
Issue: Boolean indexing of an ndarray with a torch.tensor mask breaks for size=1 
Labels: triaged,module: numpy,module: advanced indexing

## 🐛 Bug

Numpy allows to index arrays with boolean pytorch tensors and usually behaves just like pytorch. However, for a dimension of size 1 a pytorch boolean mask is interpreted as an integer index. As a result, indexing of `np.ones(1)` with a `torch.ones(1, dtype=torch.bool)` returns an error as it tries to access the second element. Expected behaviour is achieved by casting the tensor to numpy.

## To Reproduce

If the mask is False, indexing with a tensor returns the first element:
```
import torch
import numpy as np
x = torch.zeros(1, dtype=torch.bool)
y = np.ones(1)
print(y[x.numpy()])
print(y[x])
```
outputs:
```
[]
1.0
```
If the mask is True, the second print raises an error:
```
import torch
import numpy as np
x = torch.ones(1, dtype=torch.bool)
y = np.ones(1)
print(y[x.numpy()])
print(y[x])
```
outputs:
```
[1.]
---------------------------------------------------------------------------

IndexError                                Traceback (most recent call last)

<ipython-input-58-c59be12007b5> in <module>()
      2 y = np.ones(1)
      3 print(y[x.numpy()])
----> 4 print(y[x])

IndexError: index 1 is out of bounds for axis 0 with size 1
```

## Expected behavior

For more than one element, the behaviour is as expected:
```
import torch
import numpy as np
x = torch.ones(2, dtype=torch.bool)
y = np.ones(2)
print(y[x.numpy()])
print(y[x])
```
outputs:
```
[1. 1.]
[1. 1.]
```

## Environment
Python 3.6.9, NumPy 1.19.2, PyTorch 1.6.0

## Additional context

I initially raised an issue in the numpy repository (https://github.com/numpy/numpy/issues/17348), but was advised to open one here as it appears to be a pytorch problem (probably explained in https://github.com/pytorch/pytorch/pull/4732#issuecomment-696435710).


cc @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: Inconsistent wheel name in https://download.pytorch.org/whl/torch_stable.html
Labels: module: build,triaged

## 🐛 Bug

CPU-only wheel on https://download.pytorch.org/whl/torch_stable.html has a different name for macOS than it does for every other platform

This makes it difficult to use the CPU-only package, since it requires using env markers in the requirements file, which is both non-intuitive, and breaks some workflows (e.g requirements pinning with tools like `pip-compile` either breaks completely or requires massive re-architecting to maintain multiple lock files)




cc @malfet @seemethere @walterddr
Repository: angular
Issue: Add sideEffects field to zone.js/package.json
Labels: area: zones,P3

# 🚀 feature request

### Relevant Package
zone.js


### Description
zone.js is missing a `sideEffects` field in its package.json. I realize it's pretty side-effect-ful, which is probably why the field wasn't added, but I would think it would benefit optimization to have the sideEffects files clearly marked.


### Describe the solution you'd like
Please consider adding a correct `sideEffects` field to zone.js/package.json, or explain why it's not necessary or a bad idea.

From https://angular.io/guide/ivy-compatibility :

Check that imported libraries have been marked side-effect-free. If your app imports from shared libraries that are meant to be free from side effects, add "sideEffects": false to their package.json. This will ensure that the libraries will be properly tree-shaken if they are imported but not directly referenced. See more details in the original issue here.
Repository: pytorch
Issue: [Feature Request] Add support for Hidden Markov Models in torch.distributions
Labels: module: distributions,feature,triaged,needs research

## 🚀 Feature
It would be useful to have a basic abstraction class for [Hidden Markov Models](https://en.wikipedia.org/wiki/Hidden_Markov_model) which builds on top of the distribution classes already implemented in the [pytorch distributions](https://pytorch.org/docs/stable/distributions.html#mixturesamefamily) package.

## Motivation
Hidden Markov Models (HMM) are a fundamental concept in many probabilistic applications. Custom implementations can already be found in existing Pytorch projects, the majority of which however do not take advantage of the modular [Distribution and Mixture classes](https://pytorch.org/docs/stable/distributions.html#distribution) in the distributions package.

The general concept of an HMM offers sufficient abstraction capabilities to justify a default implementation which builds upon these modules in the distributions package.



## Pitch
[In line with the decision to roughly follow the Tensorflow API](https://github.com/pytorch/pytorch/issues/18125#issuecomment-509921430) in terms of implementation of Distributions and derived families such as [Mixtures](https://pytorch.org/docs/stable/distributions.html#mixturesamefamily), I propose to port Tensorflow's [HiddenMarkovModel](https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/HiddenMarkovModel) class to pytorch.


cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw @nikitaved
Repository: TypeScript
Issue: Autofill object literal in IDE
Labels: Suggestion,In Discussion,Domain: Completion Lists

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

- autofill object literal

## Suggestion

It would be nice if there was a way to automatically fill in the required values of an object literal so I don't have to do it one property at a time, it would set the value to a minimum value (string `''`, number `0`, etc). Then I can manually add the optional properties and there values.

![image](https://user-images.githubusercontent.com/1571806/93904453-7c256500-fcbf-11ea-8637-541347e71c65.png)


## Use Cases

This will help speed up creation of objects that have lots of required items.

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: youtube-dl
Issue: la1ere.francetvinfo.fr
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->



- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.09.14**
- [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
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

- https://la1ere.francetvinfo.fr/guyane/emissions/kazadok/kazadoc-du-93-amazonie-750527.html
- https://la1ere.francetvinfo.fr/emissions/tutos-lolo/tutos-lolo-860308.html

## Description

Unable to dl or view this stream with yt-dl

$ youtube-dl https://la1ere.francetvinfo.fr/guyane/emissions/kazadok/kazadoc-du-93-amazonie-750527.html -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://la1ere.francetvinfo.fr/guyane/emissions/kazadok/kazadoc-du-93-amazonie-750527.html', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.14
[debug] Python version 3.7.3 (CPython) - Linux-4.19.0-10-amd64-x86_64-with-LinuxMint-4-debbie
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1, phantomjs 5, rtmpdump 2.4
[debug] Proxy map: {}
[generic] kazadoc-du-93-amazonie-750527: Requesting header
WARNING: Falling back on generic information extractor.
[generic] kazadoc-du-93-amazonie-750527: Downloading webpage
[generic] kazadoc-du-93-amazonie-750527: Extracting information
ERROR: Unsupported URL: https://la1ere.francetvinfo.fr/guyane/emissions/kazadok/kazadoc-du-93-amazonie-750527.html
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/generic.py", line 3382, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://la1ere.francetvinfo.fr/guyane/emissions/kazadok/kazadoc-du-93-amazonie-750527.html
Repository: flutter
Issue: Autofill on web is only activated after clicking twice on the TextField
Labels: a: text input,framework,f: material design,platform-web,has reproducible steps,P3,team-web,triaged-web,found in release: 3.19,found in release: 3.21

When you create a TextField with `autofillHints`, at least on web the hint is only activate after you click twice on the `TextField`. If you have multiple `TextFields` you can keep on clicking through them all without ever seeing the hints unless you click again once the caret is active in the `TextField`.

Seeing other sites, this is not the expected behavior, which makes sense... I would expect for the hint to show up as soon as the `TextField` has focus.

Here is a reproducible code for DartPad:

```dart
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextFormField(
              autofillHints: [AutofillHints.email],
            decoration: InputDecoration(
            hintText: 'Email',
           
          ),
              
            ),
            TextFormField(
              autofillHints: [AutofillHints.telephoneNumber],
            decoration: InputDecoration(
            hintText: 'Phone',
           
          ),
              
            ),
          ],
        ),
      ),
    ),
    );
  }
}
``` 

At the time of posting, DartPad is `Based on Flutter 1.22.0-12.1.pre Dart SDK 2.9.3`
Repository: flutter
Issue: CupertinoPicker top and bottom gradient screen no longer appearing
Labels: c: regression,framework,a: fidelity,f: cupertino,a: quality,P2,team-design,triaged-design

May be related to https://github.com/flutter/flutter/pull/47837

![flutter_01](https://user-images.githubusercontent.com/156888/93907115-cdc6f300-fcb1-11ea-9b1c-961beb5e1615.png)

The text is sharp all the way to the edge of the wheel. Natively it should fade out towards the edge. 

cc @LongCatIsLooong
Repository: vscode
Issue: VSCode's FileDialog overwrites the file managers (Nautilus) "Show hidden files" setting
Labels: bug,upstream,linux,electron,workbench-os-integration,confirmed,upstream-issue-pending,native-file-dialog

<!-- ⚠️⚠️ 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/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.49.1 (and insider version as well)
- OS Version: Fedora 32

Steps to Reproduce:

1. Enable "Show hidden files" in nautilus. 
2. Open VSCode's file dialog (for example via Ctrl+O). The hidden files in nautilus will be hidden again.

(Not sure if this can be considered a bug report or a feature request but) VSCode should respect nautilus' setting or at least not overwrite it.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No
Yes
Repository: TypeScript
Issue: Don't suggest converting custom promise-like returning function to async ones
Labels: Suggestion,Help Wanted,Domain: Refactorings,Experience Enhancement

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
async converted function

## Suggestion

<!-- A summary of what you'd like to see added or changed -->
Do not suggest that a function is converted to `async` if its return value is explicitly set to something that is not the global `Promise` type.

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
If using a package that provides an extended version of promises (for instance cancellable promises) then the transformation is wrong to occur.

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).