sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: yt-dlp
Issue: Add support for Facebook (Meta) Workplace videos
Labels: site-request,account-needed

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [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](https://github.com/ytdl-org/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

United States

### Example URLs

- Single Video: https://abc.workplace.com/100028380075587/videos/336048507351199/ 

### Description

Please add support for Facebook (Meta) Workplace videos. This would be similar to the support that currently exists for private Facebook videos.

### Verbose log

```shell
youtube-dl.exe -f "bestvideo+bestaudio" --write-thumbnail --write-description --console-title --merge-output-format "mp4" --all-subs --embed-thumbnail --add-metadata --add-header "Cookie: datr______" https://abc.workplace.com/100028380075587/videos/336048507351199/ -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2021.01.16 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041 [debug] exe versions: ffmpeg N-100592-g42ee3898c8, ffprobe N-100592-g42ee3898c8 [debug] Proxy map: {} [generic] 336048507351149: Requesting header WARNING: Falling back on generic information extractor. [generic] 336048507351149: Downloading webpage [generic] 336048507351149: Extracting information ERROR: Unsupported URL: https://abc.workplace.com/100028380075587/videos/336048507351199/ Traceback (most recent call last): File "C:\youtube-dl\ytdl-org\tmpfnvjp7pc\build\youtube_dl\YoutubeDL.py", line 805, in wrapper File "C:\youtube-dl\ytdl-org\tmpfnvjp7pc\build\youtube_dl\YoutubeDL.py", line 826, in __extract_info File "C:\youtube-dl\ytdl-org\tmpfnvjp7pc\build\youtube_dl\extractor\common.py", line 532, in extract File "C:\youtube-dl\ytdl-org\tmpfnvjp7pc\build\youtube_dl\extractor\generic.py", line 3467, in _real_extract youtube_dl.utils.UnsupportedError: Unsupported URL: https://abc.workplace.com/100028380075587/videos/336048507351199/
```
Repository: rust
Issue: Suggest that `Pin<Box<dyn Unpin + Future>>` is redundant
Labels: A-diagnostics,T-compiler

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=232bc66719a632fbcb8f5d400a58f74e

```rust
use core::future::Future;
use core::pin::Pin;
fn f() -> Pin<Box<dyn Unpin + Future<Output = ()>>> {
    Box::pin(async {})
}
```

The current output is:

```
error[E0277]: `from_generator::GenFuture<[static generator@src/lib.rs:4:20: 4:22]>` cannot be unpinned
  --> src/lib.rs:4:5
   |
4  |     Box::pin(async {})
   |     ^^^^^^^^^^^^^^^^^^ within `impl Future<Output = [async output]>`, the trait `Unpin` is not implemented for `from_generator::GenFuture<[static generator@src/lib.rs:4:20: 4:22]>`
   |
   = note: consider using `Box::pin`
   = note: required because it appears within the type `impl Future<Output = [async output]>`
   = note: required for the cast to the object type `dyn Future<Output = ()> + Unpin`

For more information about this error, try `rustc --explain E0277`.
```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
error[E0277]: async blocks cannot be unpinned
  --> src/lib.rs:4:5
   |
4  |     Box::pin(async {})
   |     ^^^^^^^^^^^^^^^^^^ within `impl Future<Output = ()>`, the trait `Unpin` is not implemented for `from_generator::GenFuture<[static generator@src/lib.rs:4:20: 4:22]>`
   |
   = note: async blocks never implement `Unpin`
   = note: required because it appears within the type `impl Future<Output = [async output]>`
   = note: required for the cast to the object type `dyn Future<Output = ()> + Unpin`

warning: `Pin<Box<dyn Pin + Future<Output = ()>>>` is redundant and most likely not what you intended
   = help: remove the `Unpin` requirement: `Pin<Box<dyn Future<Output = ()>>>`

For more information about this error, try `rustc --explain E0277`.
```

`Pin<Box<T>>` is always `Unpin` and therefore there's no need to require `T: Unpin`.
Also note the "[async output]" message in the first block; that looks like an outright bug.
Repository: flutter
Issue: Updating macOS release manifest susceptible to race conditions
Labels: P1,team-release,triaged-release

Since https://flutter.googlesource.com/infra/+/2b10a1dc69802744cd4d8600e13f4897bae1f83b%5E%21/#F3, we have started building release packages for both arm64 and x64 on macOS. These are packages are created by the script: https://github.com/flutter/flutter/blob/master/dev/bots/prepare_package.dart. What this script roughly does is:

1. check out the flutter/flutter repo at the desired release branch and revision
2. run `flutter precache --all-platforms`
3. compress the SDK directory
4. upload it to `storage.googleapis.com/flutter_infra_release/releases/$CHANNEL/$HOST_PLATFORM/$ARCHIVE`
5. download the manifest JSON (which gets consumed by the website) from `storage.googleapis.com/flutter_infra_release/releases/releases_${HOST_PLATFORM}.json`
6. update the manifest with the current release
7. re-upload the updated manifest file.

The problem is that if we are scheduling concurrent macOS packaging builds (one for ARM64, one for x64), both builds could download the same manifest in step 5, but then whichever build reaches step 7 last could overwrite the changes from the other.

To solve this, I think we need to either:

a) have the two architectures use separate manifest files, and update the website to merge them when rendering the website; or
b) implement some kind of locking and polling setup. However, I'm not sure if even this would not be susceptible to race conditions, unless GCS provides a way to atomically set a lock if it is not already locked, and fail otherwise.
Repository: node
Issue: OpenSSL update instructions - feedback wanted
Labels: openssl

To help me get up to speed on the instructions to update OpenSSL in 
[maintaining-openssl.md](https://github.com/nodejs/node/blob/master/doc/contributing/maintaining-openssl.md)
I ran through the instructions and built some docker files that would automate almost the full process.

These are in https://github.com/mhdawson/node-openssl-utils (one branch for main and one for 16.x so far)

What I like about them is that I can edit the version of openssl to pull in, start the process with `bash buildit.sh` and come back an hour later(on a big machine, likely longer on something more typical) to a docker container with the changes applied, including our standardize commit comments.

It does not push a PR, as I'm not sure it would be successful enough for that to make sense but it keeps the results of running the tests and you can confirm that all modified files were included in the commits.  If there are any additional changes required (like the changes o the OpenSSL tests in the last security release) you can cherry pick those over and re-run the tests easily/quickly  It is also handy for doing a quick sniff check of a PR by confirming that the same number of files have been modified as expected.

I wondering if we'd want to do one of the following

1) Integrate using docker to do the full build into the main instructions (it is already partially used for the non-linux instructions).
2) transfer the node-openssl-utils into the node.js repo as a set of examples/utilities that can be referenced in the instructions to help people if they want to use docker.

Automating in an action would not quite be the same in my mind as you don't get the container which you can use to carry out the last few steps or cherry pick commits if necessary.  If we think the complete process might work frequently enough then an action running similar steps could make sense.

They are not quite complete as I can see that I missed some of the externalization of the git email and user name but I'd do that if 1) or 2) above make sense.

@richardlau, @hassaanp since I know you have done some of the recently OpenSSL updates.
Repository: PowerToys
Issue: Assign application to start on specific monitor
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Some kind of assigning applications to specified monitor. Some view with assigning apps to monitors (lists) and additionally "Open on monitor:" in rmb properties. When an application has no specified monitor assigned - use primary monitor.



### Scenario when this would be used?

Multiple monitors, e.g. in my case one in position that is better for working and playing games on keybord+mouse and second monitor in position that is more comfortable to chill out and play games on gamepad. If the game has no option to select the monitor itself and Win+Shift+Arrows keys don't work, while in fullscreen mode - you have to manually change the game to borderless mode, then move the window to the second monitor and revert fulscreen mode every single time. Selecting primary monitor doesn't solve the problem completely.

### Supporting information

Windows 11
Repository: storybook
Issue: Composite Storybook does not show toolbars for the other storybooks
Labels: bug,composition,addon: toolbars

**Describe the bug**
We have a composite storybook that basically brings together several 'other' storybooks.  Bringing up a doc page from one of the "other" storybooks does not switch over to its toolbar.  The toolbar is still from the main composite storybook.

**To Reproduce**
Build a composite storybook with a few refs to other storybooks.  Run it and click on a doc page using the left sidebar to see the docs and stories from one of the referenced storybooks (one that utilizes toobar).  Click on the Canvas tab to see the toolbar (if one exists).  The toolbar is not updated for the storybook that you are using.  If you click on the globe and access the referenced storybook by itself, the toolbar will be there and be usable.

**System**
Environment Info:

  System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.17.3 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.7 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 99.0.4844.74
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.39)

**Additional context**
We do not use Yarn
Repository: rust
Issue: Make `traits_in_crate` and `impls_in_crate` proper queries and use them
Labels: E-mentor,T-compiler,E-help-wanted,E-medium,A-query-system

We currently compute a list of all traits and all impls in a crate for metadata.
`traits_in_crate` is a query, and sorts all definitions by `DefPathHash`.
`impls_in_crate` is not a query, and sorts definitions by `DefPathHash`.

This PR suggests to:
- [ ] shift the sorting of `traits_in_crate` from the query to metadata encoding;
- [ ] use `traits_in_crate` for all analyses that iterate on traits;
- [ ] make `impls_in_crate` a query, keeping the sorting *outside* of the query in metadata encoding;
- [ ] use `impls_in_crate` for analyses that iterate on impls, like coherence.

The effect of the sorting on the definitions by `DefPathHash` is not obvious. The effect of sorting vs not sorting will need to investigated with respect to soundness of the `crate_hash`.

This issue may conflict with https://github.com/rust-lang/rust/issues/94878, https://github.com/rust-lang/rust/issues/95004 and https://github.com/rust-lang/rust/pull/95082.

I am available on Zulip for further information.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"Robert-Cunningham"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: pytorch
Issue: `torch.histogram` has wrong output dtype and doesn't support integer inputs
Labels: feature,triaged,module: numpy,module: sorting and selection

As per title. It would also be great to have an opportunity to have the count table as integer.

```python
In [1]: import torch

In [2]: x = torch.tensor([1., 2., 3., 1., 2.])

In [3]: torch.histogram(x, bins=3)
Out[3]: 
torch.return_types.histogram(
hist=tensor([2., 2., 1.]),
bin_edges=tensor([1.0000, 1.6667, 2.3333, 3.0000]))

In [4]: torch.histogram(x.to(torch.long), bins=3)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-4-901fd68369da> in <module>()
----> 1 torch.histogram(x.to(torch.long), bins=3)

RuntimeError: "histogramdd" not implemented for 'Long'

In [5]: torch.histogram(x.to(torch.int), bins=3)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-5-eb4f264c1d08> in <module>()
----> 1 torch.histogram(x.to(torch.int), bins=3)

RuntimeError: "histogramdd" not implemented for 'Int'

```

Note that  NumPy does support these dtypes, for example:
```python
In [6]: import numpy as np

In [7]: x = np.array([1, 2, 3, 1, 2])

In [8]: np.histogram(x, bins=3)
Out[8]: (array([2, 2, 1]), array([1.        , 1.66666667, 2.33333333, 3.        ]))


```

NumPy also retains the count table as integer even if the input is of a floating type:

```python
In [9]: np.histogram(np.array(x, dtype=np.double), bins=3)
Out[9]: (array([2, 2, 1]), array([1.        , 1.66666667, 2.33333333, 3.        ]))
```


cc @mruberry @rgommers
Repository: pytorch
Issue: can not build pytorch, failing due to missing _ctypes module
Labels: module: build,triaged

### 🐛 Describe the bug


[root@centos pytorch]# !123
python setup.py build --cmake-only
Traceback (most recent call last):
  File "setup.py", line 219, in <module>
Traceback (most recent call last):
  File "setup.py", line 219, in <module>
    from setuptools import setup, Extension, find_packages
  File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 18, in <module>
    from setuptools.dist import Distribution
  File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 34, in <module>
    from setuptools import windows_support
  File "/usr/local/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/usr/local/lib/python3.8/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'


### Versions

python --version
Python 3.8.12
uname -r
4.18.0-365.el8.x86_64


cc @malfet @seemethere
Repository: go
Issue: internal/fuzz: minimize all values in a single call
Labels: NeedsInvestigation,fuzz

Currently we make one minimization call, from the coordinator to the worker, for each of the values being minimized. It would be nice if we could do all of this in a single call.

The main complicating factor for this is figuring out how to communicate all preceding minimized values if minimization fails unrecoverably  during a successive value.
Repository: TypeScript
Issue: property restriction: pending property
Labels: Suggestion,Awaiting More Feedback

# Suggestion

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

- property restriction
- koa middleware

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
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
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->
```ts
// Error: Property 'foo' is not set once.
async function koaMiddleware1(
  ctx: {pending foo: 1}
) {}

// OK
async function koaMiddleware2(
  ctx: {pending foo: 1}
) {
  ctx.foo = 1
}

// OK
async function koaMiddleware3(
  ctx: {pending foo: 1}
) {
  ctx.foo = ctx.foo ?? 1
}
```

Calling function 
1. Maybe like below?
```
// OK
await koaMiddleware2({})

// OK
await koaMiddleware2({foo: 1})
```
2. Or maybe cast `koaMiddlewareImplementX` to another function `koaMiddlewareX` with  type with `ctx: {foo: 1}`

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->
Describe restriction on a koa middleware, should always set specific properties.

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: youtube-dl
Issue: How can I report a potential security vulnerability?
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

To whom it may concern,
I have found a potential security issue in Youtube-DL. I'm wondering what the best way for me to report it is?
Kind regards,
Gamer191
Repository: flutter
Issue: Add clipboard option to TextField Toolbar
Labels: a: text input,c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

Clipboard support for Flutter Toolbar options,

Here's some screenshots from native app.
![WhatsApp Image 2022-03-04 at 7 00 19 PM](https://user-images.githubusercontent.com/41959125/159125082-bca14674-ca53-4db9-89b7-b3f88cc40d65.jpeg)

And here's from flutter framework,
![WhatsApp Image 2022-03-04 at 7 00 28 PM](https://user-images.githubusercontent.com/41959125/159125137-e4480acc-f1e2-44f8-ae14-b2d308106949.jpeg)

Is there any planning for implementing Clipboard in toolbar options or this featured is being supported
Repository: go
Issue: cmd/link: stack check too deep when compiling deep call graph with -gcflags=-l
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

New regression in go1.18, works on go1.7.

Culprit commit is https://github.com/golang/go/commit/c9912780ab3ecea3c685bfc8bec229c0d2b09317.

cc @mdempsky 

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOOS="linux"
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
CGO_ENABLED="1"
</pre></details>

### What did you do?

Run go test on github.com/maruel/panicparse/v2/...

Here's a smaller repro case with [main.go.txt](https://github.com/golang/go/files/8309566/main.go.txt) attached file:

```
go build -gcflags -l main.go
```


### What did you expect to see?

Works as before.

### What did you see instead?

```
go build -gcflags -l main.go      
# command-line-arguments                                         
runtime.morestack: nosplit stack check too deep
runtime.morestack: nosplit stack overflow        
        792     guaranteed after split check in main.main<1>
        800     after main.main<1> uses -8       
        792     on entry to main.recurse2000<1>
        800     after main.recurse2000<1> uses -8
        792     on entry to main.recurse1999<1>
        800     after main.recurse1999<1> uses -8
        792     on entry to main.recurse1998<1>
(...)
        800     after main.recurse1503<1> uses -8
        792     on entry to main.recurse1502<1>
        800     after main.recurse1502<1> uses -8
        792     on entry to main.recurse1501<1>
        784     on entry to runtime.morestack<0> (nosplit)
        0       after runtime.morestack<0> (nosplit) uses 784
```

### Workaround

Using -G=0 works most of the time but not always (?) -covermode=count is broken in panicparse/cmd/panic but I haven't successfully extracted a repro yet.
Repository: create-react-app
Issue: Possible performance tuning for webpack config in react-scripts
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

Yes, building react app is very slow for our company

### Describe the solution you'd like

In the webpack config we use `cacheDirectory` for `babel-loader`, I think it would be faster to set it true only if **not** running in CI - which as far as I know doesn't need faster rebuild as it only build once...

https://github.com/facebook/create-react-app/blob/fd8c5f7b1b1d19d10d24cc2f9fdfc110585dc030/packages/react-scripts/config/webpack.config.js#L455-L458 

WDYT?