sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Yang Shipin (yangshipin.cn) support request
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 2021.04.07. 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 **2021.04.07**
- [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

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://w.yangshipin.cn/video?type=0&vid=t000009y9n2&cid=3n3vij90wxc801x
- Single video: https://m.yangshipin.cn/video?type=0&vid=t000009y9n2&cid=3n3vij90wxc801x
- Live replay: https://m.yangshipin.cn/video?type=0&vid=v0000034rd6&ptag=4_1.0.8.20161_copy
- Playlist: https://m.yangshipin.cn/user?cpid=18033374314531908

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Yang Shipin (央视频 dubbed "Central Video") is a mobile-based video platform developed by CCTV, China's national broadcaster. Unlike CCTV.com (already supported), Yang Shipin's video server is believed provided by Tencent. Its video URL format is MP4 with hash, and you can only get the lowest resolution if playing in browser (desktop or mobile). Clearer 720p or 1080p video can only be accessed via its app (https://apps.apple.com/cn/app/id1479814602 or https://dl.yangshipin.cn/channel_apks/YSP_66666.apk) and may able to get its URL pattern via PC Android emulator + Fiddler.

It also have some live replay resources which ended up with an M3U8 file with hash. The only way to get standalone video pages is to share it inside the app.
Repository: flutter
Issue: The Flutter tool doesn't print out URI for DevTools in web profile mode
Labels: tool,platform-web,d: devtools,P3,team-web,triaged-web

I was trying to use Dart DevTools to profile the default starter app in Chrome. However, when I ran it in profile mode, the Flutter tool didn't print out a DevTools URI. 
```
➜  new_flutter_app flutter run --profile -d Chrome          
Launching lib/main.dart on Chrome in profile mode...
Compiling lib/main.dart for the Web...                             18.9s

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
```

In debug mode, the tool didn't print out a DevTools URI either, but at least it gave me the debug service URI. 

```
➜  new_flutter_app flutter run -d Chrome   
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             13.2s
Debug service listening on ws://127.0.0.1:58917/MrJ0oUXU3W8=/ws

Running with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
```
Repository: pytorch
Issue: Vulkan backend on desktop platforms
Labels: triaged,module: backend,module: vulkan

Currently Vulkan backend is only available on Android. Is there anything specific stopping us from porting Vulkan to desktop platforms (Windows/Linux/macOS) ?
Repository: flutter
Issue: [Feature request] WidgetPainter
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

I opened issue https://github.com/flutter/flutter/issues/80252#issuecomment-817658645 as a question that marked as invalid, I also asked in [stack overflow](https://stackoverflow.com/q/67056614/6447123), I think this is a useful feature that must be added to flutter

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

Sometimes we need to calculate size of a widget without adding it in widget tree ,i.e. [Manual approach of this question](https://stackoverflow.com/q/51844788) 

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

Currently we can have the following function to calculate size of text without adding it in widget tree (To simplicity I ignore textAlign, textDirection  and ...)

```dart
Size calSize(String text, BoxConstraints constraints, {TextStyle style}) {
  assert(constraints.hasBoundedWidth);

  final textPainter = TextPainter(
    text: TextSpan(
      style: style,
      text: text,
    ),
  );
  textPainter.layout(
    minWidth: constraints.minWidth,
    maxWidth: constraints.maxWidth,
  );
  return textPainter.size;
}
``` 

I request to adding `WidgetPainter` to flutter, So to calculate size of a widget without adding it into widget tree we can have

```dart
Size calSize(Widget widget, BoxConstraints constraints) {
  final widgetPainter = WidgetPainter(
     widget: widget,
  );
  widgetPainter.layout(
    minWidth: constraints.minWidth,
    maxWidth: constraints.maxWidth,
  );
  return widgetPainter.size;
}
``` 

I think an optional `BuildContext context` can be added to `calSize` to support codes like `Theme.of(context)` in the `widget`
Repository: pytorch
Issue: [Bug] RuntimeError: could not create a primitive on Xeon
Labels: triaged,module: backend,module: intel

## 🐛 Bug

Running the below code on an intel Xeon W-3235 cpu results in the following error:

```
Traceback (most recent call last):
  File "demo.py", line 7, in <module>
    f1_r_shift = f.conv2d(f1, r_shift_kernel, padding=1, groups=64)
RuntimeError: could not create a primitive
```

## To Reproduce

```
import os
import torch
import torch.nn as nn
import torch.nn.functional as f
r_shift_kernel = torch.FloatTensor([[0, 0, 0], [1, 0, 0], [0, 0, 0]]).reshape((1, 1, 3, 3)).repeat(64, 1, 1, 1)
f1 = torch.randn(1,64,4160,6240)
f1_r_shift = f.conv2d(f1, r_shift_kernel, padding=1, groups=64)
```

## Expected behavior

Choosing lower values for the image dimensions in `f1 = torch.randn(1,64,4160,6240)` like 2400 and 3200 lets the code complete successfully. Choosing larger values will result in the above error.

## Environment

Running the code on a Macbook Pro works fine, running the above code on a Mac Pro with xeon cpu (Linux and Mac OS) results in the error message. I can also confirm that a Python 3.7 environment results in the same error. Cuda is disabled. CPU only.

```
Collecting environment information...
PyTorch version: 1.8.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 11.2.3 (x86_64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.29)
CMake version: Could not collect

Python version: 3.9 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip] numpy==1.20.2
[pip] torch==1.8.1
[pip] torchaudio==0.8.1
[pip] torchvision==0.9.1
[conda] Could not collect
```

## Additional context

Originally discussed in the pytorch forum:

https://discuss.pytorch.org/t/runtimeerror-could-not-create-a-primitive/117519
Repository: flutter
Issue: [proposal] Add-to-App support for desktop platforms
Labels: c: new feature,engine,platform-mac,platform-windows,a: existing-apps,platform-linux,c: proposal,a: desktop,P3,team-macos,triaged-macos

Flutter Module supports android and iOS to help add-to-app more convenient,  for desktop applications,  some apps also only use flutter in part  modules, or progressive migrate to flutter, so is there a plan to support windows/mac desktop as mobile's "add-to-app" ?

![image](https://user-images.githubusercontent.com/4476512/114506878-f40baa80-9c64-11eb-8d96-d47e1b492c0b.png)
Repository: flutter
Issue: status bar icon color always brightness dark
Labels: framework,f: material design,a: quality,has reproducible steps,found in release: 2.0,found in release: 2.1,team-design,triaged-design

flutter v 2.0.4 color status bar follow App bar background colors
cannot change to brightness light
<img height="720" src="https://user-images.githubusercontent.com/32647004/114509174-6a0d1300-9c5f-11eb-992d-fbd456b2d13a.png">
Repository: go
Issue: x/sys/unix: EpollEvent use void *ptr instead of int fd
Labels: NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
go version go1.16.2 linux/amd64
</pre>

I'm using EPOLL(7) from the `sys/unix` package, since `epoll_event` struct have a C union `epoll_data`

```C
typedef union epoll_data {
    void    *ptr;
    int      fd;
    uint32_t u32;
    uint64_t u64;
} epoll_data_t;

struct epoll_event {
    uint32_t     events;    /* Epoll events */
    epoll_data_t data;      /* User data variable */
};
```

The `sys/unix` package supporting the struct `EpollEvent` with `Pad` 
at the end of the struct to fill the union size.

```Golang
type EpollEvent struct {
	Events uint32
	Fd     int32
	Pad    int32
}
```

The goal of this issue, is to use `EpollEvent` with `void *ptr`  and not `int fd`

I created a struct `epollEvent` and called the syscall manually
To try to implement the change.

```Golang
type epollEvent struct {
	Events uint32
	Ptr    uintptr
}

func epollWait(epfd int, events []epollEvent, msec int) (n int, err error) {
	var _p0 unsafe.Pointer
	if len(events) > 0 {
		_p0 = unsafe.Pointer(&events[0])
	} else {
		_p0 = unsafe.Pointer(&_zero)
	}

	r0, _, e1 := unix.Syscall6(unix.SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
	n = int(r0)
	if e1 != 0 {
		err = errnoErr(e1)
	}

	return
}
```

## The implementation issue

When I initialize my slice `epollEvent` and all `Ptr uintpr`  to a struct instance associated to an epoll event. 
And I call `epollWait` I retrieve my address associated to the event.

But the problem here is the Golang runtime, sometime the runtime move or GC the data associated to my address.
I tried to use `unsafe.Pointer` insteaf of `uintptr` but the issue is the same.

In this case what is the best way to create data and associate it to my `Ptr`
To be retrieved it later by `epoll_wait(2)` syscall?

Do you think the Idea I would like to realize it possible, if yes I could propose some change to support both in `sys/unix` package `fd`mode  and `ptr` mode.

Thanks a lot
Repository: storybook
Issue: add gherkin/cucumber syntax highlighting to docPages 
Labels: feature request,components

**Describe the solution you'd like**
I've being finding storybook a great platform to create documentation prior starting development and outlining the project scope under a `MDX` file, I currently add some examples and business rules in form of BDD test cases as I outline a few requirements.

One nice way of doing so is writing specific in gherkin, used by cucumber. So ideally on my MDX it could have:

```

```cucumber dark
Feature: Gherkin syntax highlight
  Scenario: User can see gherkin document highlighted
     Given I add MDX code block to my documentation
       And the syntax is set to "cucumber" or "gherkin"
      When the document is rendered
      Then the code block has its syntax highlighted
  ```
Rest of documentation...

Then, the syntax would render like:
```cucumber dark
Feature: Gherkin syntax highlight
  Scenario: User can see gherkin document highlighted
     Given I add MDX code block to my documentation
       And the syntax is set to "cucumber" or "gherkin"
      When the document is rendered
      Then the code block has its syntax highlighted
``` 

**Describe alternatives you've considered**
I am currently using the code block either way, but it's just not being highlighted.

**Are you able to assist to bring the feature to reality?**
Yes, I can...
Repository: rust
Issue: Include explicit (de)referencing in E0283
Labels: A-diagnostics,T-compiler,A-inference,A-coercions

Given the following code ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7918725081536611d2f951eb6d0d0a91)):

```rust
use std::borrow::Borrow;

fn main() {
    let v = vec![0];
    v.borrow();
}
```

The current output is:

```
error[E0283]: type annotations needed
 --> src/main.rs:5:7
  |
5 |     v.borrow();
  |     --^^^^^^--
  |     | |
  |     | cannot infer type for type parameter `Borrowed` declared on the trait `Borrow`
  |     this method call resolves to `&Borrowed`
  |     help: use the fully qualified path for the potential candidate: `<Vec<T> as Borrow<[T]>>::borrow(v)`
  |
  = note: cannot satisfy `Vec<i32>: Borrow<_>`
```

Ideally the output should look like:

```
error[E0283]: type annotations needed
 --> src/main.rs:5:7
  |
5 |     v.borrow();
  |     --^^^^^^--
  |     | |
  |     | cannot infer type for type parameter `Borrowed` declared on the trait `Borrow`
  |     this method call resolves to `&Borrowed`
  |     help: use the fully qualified path for the potential candidate: `<Vec<T> as Borrow<[T]>>::borrow(&v)`
  |
  = note: cannot satisfy `Vec<i32>: Borrow<_>`
```

The compiler already determined that the `v` needed to be deref coerced to `&Borrowed` but then suggested invoking `::borrow(v)` which obviously won't type check; it should suggest invoking `::borrow(&v)` instead (and likewise for the mutable case).  If dereferencing was required in the method resolution, then that should also be included in the suggestion: `::borrow(&**v)` etc.

@rustbot label: A-coercions A-diagnostics A-inference -C-enhancement C-bug D-invalid-suggestion
Repository: kubernetes
Issue: apiserver endpointslice reconciler should be smarter about what slices it owns
Labels: kind/bug,sig/network,area/apiserver,lifecycle/frozen

Currently the apiservers create an `Endpoints` object and an `EndpointSlice` object named "`kubernetes`", and ensure that those objects remain in sync with the actual set of running apiservers.

In particular, it _only_ ever looks at the `EndpointSlice` named "`kubernetes`", and not any other `EndpointSlice`s. This could lead to problems when trying introduce dual-stack support for the apiserver:

1. User creates a dual-stack 1.21 cluster; the "`kubernetes`" service is single-stack, and advertises only IPv4 endpoints in `Endpoints` and `EndpointSlice`.
2. User initiates an upgrade to release 1.22, where (hypothetically) dual-stack apiserver is supported
3. The first 1.21 apiserver stops, removing its IPv4 address from the "`kubernetes`" `Endpoints` and `EndpointSlice`
4. The first apiserver starts up again at version 1.22, adds its IPv4 address back to the "`kubernetes`" `Endpoints` and `EndpointSlice`, and creates a new "`kubernetes-ipv6`" `EndpointSlice` (or something) containing its IPv6 address.
5. The apiserver then crashes due to a bug. The upgrade stalls, and the user decides to abort and downgrade back to 1.21
6. The apiserver starts up again at version 1.21, finds that its IP is already in the "`kubernetes`" `Endpoints` and `EndpointSlice`, and so does nothing else
7. At this point, there is a stray "`kubernetes-ipv6`" `EndpointSlice` object which no one owns, pointing to an IPv6 address which may or may not actually be usable (and which will definitely not remain usable forever even if it is usable now). 

It seems like the apiserver EndpointSlice reconciling code ought to be smarter, and consider itself the owner of all `EndpointSlice`s that have an `OwnerReference` pointing to the apiserver `Service`. (Though note that it's not currently setting `OwnerReference`.) Then in step 6 above, the 1.21 apiserver would delete the stray "`kubernetes-ipv6`" `EndpointSlice` that had been created by its 1.22 self. (This approach would cause flapping during upgrade, where the old apiservers would keep deleting the IPv6 EndpointSlice created by the new apiservers, but that would only be a transient problem while the upgrade was in progress, and would eventually resolve (correctly) one way or the other once the cluster stabilizes at a single version.)

/cc @robscott 
/sig network
/area apiserver
Repository: pytorch
Issue: Warn users when cross entropy is called after softmax
Labels: module: nn,module: loss,triaged

Making an issue to collect some feedback on a potential feature. If this sounds good, I'm happy to implement it.

## 🚀 Feature
When `torch.nn.CrossEntropy_loss` or `F.cross_entropy` is called on a tensor, where the `grad_fn` is `SoftmaxBackward` display a warning.

## Motivation

A common error is to call SoftMax prior to performing cross entropy loss, I believe users should be warned about the wasted computation. Because doing so is far simpler on tensors with grads, I suggest that the warning is limited only to such a scenario.

cc @albanD @mruberry @jbschlosser
Repository: pytorch
Issue: Attempt to use jited `torch.isnan` hit internal assert
Labels: oncall: jit,module: crash,module: ci

## 🐛 Bug

Running JITed `lambda x: x.isnan()` crashes on SkyLake CPU but passes on Haswell if input type is `torch.float16`:

## To Reproduce

Steps to reproduce the behavior:

1. Download build artifacts from recent CI build, for example https://app.circleci.com/pipelines/github/pytorch/pytorch/300487/workflows/b61e16ac-7522-4b45-977d-a1746a17151c/jobs/12347895/artifacts
1. Run following code
```
#!/usr/bin/env python3
import torch

torch._C._jit_override_can_fuse_on_cpu(True)
torch._C._debug_set_fusion_group_inlining(False)
print(torch.__version__, torch.__config__.show())
inp = torch.rand([4], dtype=torch.float16)
f = torch.jit.trace(lambda x: x.isnan(), (inp,))
y = f(inp)
```
which is a trimmed down version of 
https://github.com/pytorch/pytorch/blob/d7d7556f171888abb05126623236d65552a2c1dd/test/test_jit_fuser_te.py#L1374

And it will crash as follows:
```
1.9.0a0+git5dba4ff PyTorch built with:
  - GCC 7.5
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v2.1.2 (Git Hash 98be7e8afa711dc9b66c8ff3504129cb82013cdb)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CXX_COMPILER=/opt/cache/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Werror -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.9.0, USE_CUDA=OFF, USE_CUDNN=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=ON, USE_OPENMP=ON, 

python: /tmp/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:2032: bool llvm::DAGTypeLegalizer::SplitVectorOperand(llvm::SDNode*, unsigned int): Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1 && "Invalid operand expansion"' failed.
Aborted (core dumped)
```
## Expected behavior

It should pass

cc @ezyang @seemethere @malfet @walterddr @pytorch/pytorch-dev-infra @gmagogsfm