sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Add support for NHK for School
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.05.16. 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.05.16**
- [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://www2.nhk.or.jp/school/movie/bangumi.cgi?das_id=D0005150191_00000
- Playlist: https://www.nhk.or.jp/school/kokugo/drill/
- Playlist: https://www.nhk.or.jp/school/ouchi/playlist_g1_march.html

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Repository: youtube-dl
Issue: Add support for daftsex.com
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.05.16. 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.05.16**
- [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://daftsex.com/watch/-201110384_456239769
- Playlist: https://daftsex.com/playlist/188959/88390
- Playlist: https://daftsex.com/video/Big%20Tits

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

I've checked for copyright infringement of the URLs, I don't think it violates any copyright. If someone can confirm this, that would be helpful as I'm not an expert in this sector.
Repository: kubernetes
Issue: replace klog.Fatal and os.Exit for defer funcs
Labels: sig/network,kind/cleanup,sig/scalability,sig/scheduling,sig/node,sig/api-machinery,sig/cli,sig/cloud-provider,triage/accepted

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->

Hello, team 👋

#### What happened:

The defer function will not be called if os.Exit(1).
https://play.golang.org/p/f7IjXeb62dd

> deferred functions are not run.
https://golang.org/pkg/os/#Exit

Now, the entry points of some Kubernetes components use defer functions to flush logs.

For example, kube-scheduler
https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-scheduler/scheduler.go#L41
```
func main() {
	rand.Seed(time.Now().UnixNano())

	pflag.CommandLine.SetNormalizeFunc(cliflag.WordSepNormalizeFunc)

	command := app.NewSchedulerCommand()

	logs.InitLogs()
	defer logs.FlushLogs()

	if err := command.Execute(); err != nil {
		os.Exit(1)
	}
}
```

When `command.Execute()` returns an error, logs are not flushed. Is this an expected behavior?

#### How to fix

We can ensure that `defer` is executed by separating the functions as follows.

```
func main() {
  if err := realmain(); err != nil {
    os.Exit(1)
  }
}

func realmain() error {
	rand.Seed(time.Now().UnixNano())

	pflag.CommandLine.SetNormalizeFunc(cliflag.WordSepNormalizeFunc)

	command := app.NewSchedulerCommand()

	logs.InitLogs()
	defer logs.FlushLogs()

	if err := command.Execute(); err != nil {
		return err
	}
       return nil
}
```

can I pick this issue? 
/assign


## Edit (October 23)

For entry points, https://github.com/kubernetes/kubernetes/pull/105076 resolves the issue. 
But it is better to delete all klog.Fatal and os.Exit as much as possible. 
They can be replaced by returning error/nil. And in some case, we may be able to use panic() (defer funcs are executed when panic [ref](https://go.dev/blog/defer-panic-and-recover))
Repository: pytorch
Issue: [docs] Tensor.bernoulli_ formatting is hard to read and UX inconsistent with the function variant
Labels: triaged,module: ux

![Screenshot from 2021-05-23 15-22-48](https://user-images.githubusercontent.com/19503980/119255694-cce8b700-bbda-11eb-8fb8-a8f1f4a95e4b.png)

This is quite confusing to read.

Inconsistent UX
* Function variant takes `input` which represents the probabilty of sampling and also the shape of the output.
* inplace variant takes argument `p` to get the probability but the shape is determined by the `self` argument to the method.

cc: @mruberry 

cc @brianjo @mruberry
Repository: angular
Issue: elements: projected content is not available in `ngAfterContentInit`
Labels: type: bug/fix,area: elements,P3

When projecting content into an Angular Element, the projected content is not available in the DOM when the [ngAfterContentInit()][1] lifecycle hook is triggered (as should happen and as happens for regular Angular components).

[Reproduction][2]

[1]: https://angular.io/api/core/AfterContentInit
[2]: https://stackblitz.com/edit/ngelements-issue-42246
Repository: angular
Issue: elements: projected content is inserted at the end of the element
Labels: type: bug/fix,area: elements,P3

When projecting content into an Angular Element, the projected content is placed at the end of the component's view instead of where the respective `<ng-content>` element was.

[Reproduction][1]

[1]: https://stackblitz.com/edit/ngelements-issue-42247
Repository: vscode
Issue: Completion Items Ordering/Filtering Is Not Optimal
Labels: suggest,under-discussion

I would expect to see all items containing the exact substring "trust" first.
However, I get "us.T" first:

![image](https://user-images.githubusercontent.com/2931520/119257876-92295380-bbc7-11eb-9ff1-fd71ed0ce184.png)
Repository: deno
Issue: Support cross process BroadcastChannel
Labels: feat,web

Follow-up to #10354

This will require some prerequisite work:
- handle origin scoping correctly, and add origin as property of message
- figure out how to do IPC between processes - likely the best way would be a unix socket (also supported on windows now).

BroadcastChannel should be ready for stabilization after this.
Repository: neovim
Issue: winblend doesn't blend with floating windows with a lower zindex
Labels: bug,ui,highlight,floatwin

Something I noticed when working on a new plugin. Not blocking for me at all.

If you have a floating window (like in my case some sort of fullscreen zen window)
And then open another fullscreen floating window on top of that, so with a higher zindex **AND** with `winblend=30`

### Actual behaviour

The top window will blend with regular window (editor, non-floating windows).

### Expected behaviour

The top window should blend using zindex, so in this case with the zen window.
Repository: create-react-app
Issue: SyntaxError: Support for the experimental syntax 'jsx' isn't currently enabled
Labels: stale,needs triage

After create-react-app I can't add Material Kit.

My full error:
`./node_modules/material-kit-react/src/components/Badge/Badge.js
SyntaxError: C:\projects\ag-web\node_modules\material-kit-react\src\components\Badge\Badge.js: Support for the experimental syntax 'jsx' isn't currently enabled `

I have no enough knowledge to fix it. Could I ask about help?
Repository: godot
Issue: EditorSceneImporterMesh does not support default blend shape weights.
Labels: bug,topic:editor,topic:import,regression,topic:3d


**Godot version:**
4.0.dev 45d3b965bb55f3111478306070034ed18e8fa5e4

**OS/device including version:**
Windows 10.0.19041.985

**Issue description:**
glTF 2.0 permits meshes to assign "weights" to set blend shapes at a default value.

However, EditorSceneImporterMesh does not have an API to assign weights. This problem affects at least glTF. It could also affect COLLADA or FBX if those store the default blend weights.

The code in `GLTFDocument::_generate_mesh_instance` does the following to assign the blend shape weights onto the mesh:

```cpp
	Ref<EditorSceneImporterMesh> import_mesh = mesh->get_mesh();
	if (import_mesh.is_null()) {
		return mi;
	}
	mi->set_mesh(import_mesh);
	for (int i = 0; i < mesh->get_blend_weights().size(); i++) {
		mi->set("blend_shapes/" + mesh->get_mesh()->get_blend_shape_name(i), mesh->get_blend_weights()[i]);
	}
```

I have verified with a debugger that this code all works. However, `mi` is an `EditorSceneImporterMesh`, which does not define properties for `blend_shapes/`... so that set() call is ignored.

The sample glTF model uses the following JSON:
```json
  "meshes": [
    {
      "weights": [
        0.5
      ],
      "name": "mesh",
      "primitives": [
        {
          "attributes": {
            "NORMAL": 1,
            "POSITION": 2,
            "TEXCOORD_0": 3
          },
          "indices": 0,
          "material": 0,
          "targets": [
            {
              "POSITION": 4
            }
          ],
          "mode": 4
        },
        {
          "attributes": {
            "POSITION": 7,
            "NORMAL": 6,
            "TEXCOORD_0": 8
          },
          "indices": 5,
          "material": 1,
          "targets": [
            {
              "POSITION": 9
            }
          ],
          "mode": 4
        }
      ]
    }
  ],
```

**Steps to reproduce:**
1. Open the attached process.
2. Check the MorphPrimitivesTest model.
3. Compare it against the screenshot. It is supposed to be bumpy (weight = 0.5).
4. However, in master branch, the plane will be completely flat (weight = 0.0)

**Minimal reproduction project:**
[gltf_khronos_morph_primitives.zip](https://github.com/godotengine/godot/files/6528638/gltf_khronos_morph_primitives.zip)
Repository: create-react-app
Issue: Compilation fails with 'WeakRef' is not defined  no-undef
Labels: stale,needs triage

I am trying to use WeakRefs in my react app created with CRA. However, code compilation fails with the above error. According to MDN WeakRef should be working by now. What is the issue here? Do I have to use a custom babel configuration via eject/rewired for this to work?

Cheers
Repository: TypeScript
Issue: 'this' not inferred for immediately invoked .bind()/.call()/.apply()
Labels: Suggestion,Awaiting More Feedback

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->
function type inferrence, function apply function, function call function

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about type inference
### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.3#code/DYUwLgBAZgjBC80CuA7AxmAlgexQCgEoIBvAWACgIqI1cBnbUAOmGwHM8wALTOgigL5MARphQATPAG0YAGggAmeQGYAugQDcFCqEhQFCZOiy5OPOgC4IKJAFthIAE5T1JCtRr1GIFuzO9+ciFRCWk5RRV1DSA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
let f2 = function(this: number[]) {
    console.log(this)
}.bind([1, 2, 3]);
// ^^ works fine

let f1 = function() {
    console.log(this)
// ^^ 'this' implicitly has type 'any' because it does not have a type annotation.
}.bind([1, 2, 3]);
```

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->
Compiler shows an error: "'this' implicitly has type 'any' because it does not have a type annotation."

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
The type of `this` to be correctly infered from the `bind`, `call` or `apply` call.
Repository: go
Issue: cmd/link: external linking is not reproducible on some platforms
Labels: NeedsInvestigation,Tools,compiler/runtime

I've noticed that running `go build -a -v -toolexec='toolstash -cmp' std cmd` fails on ppc64le, because some binaries (e.g., cmd/pprof) report differences.

I haven't investigated much yet, but as a hunch I suspect it's related to ppc64le not supporting internal linking for cgo. E.g., cmd/pprof depends on net (which uses cgo) and fails, but cmd/gofmt passes. Also, I'm not able to reproduce the issue when cross-building either ppc64le->amd64 or amd64->ppc64le (where both modes disable cgo), or if I build natively on ppc64le with `CGO_ENABLED=0`.

Notably though, `go build -ldflags=-linkmode=external -toolexec='toolstash -cmp' cmd/pprof` does not fail on amd64. So maybe the non-determinism is specific to the external linker used on my ppc64le system vs my amd64 system.

Happy to run additional experiments to help narrow down the cause of failure.

My ppc64le system is running Fedora 34, with GCC 11.0.1 and GNU ld 2.35.1-41.fc34. The amd64 test system is a Google corp workstation.

/cc @cherrymui @rsc
Repository: rust
Issue: rustdoc: Vec's Methods for Deref<Target = [T]> don't indicate which T is active
Labels: T-rustdoc,C-enhancement,A-rustdoc-ui

Steps to reproduce:

1. Visit https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html
2. Scroll sidebar to "Methods for Deref&lt;Target = [T]&gt;". Click on make_ascii_lowercase (https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.make_ascii_lowercase).

Expected result:

Docs indicate that this only works when T == u8.

Actual result:

No indication that u8 is involved.

Note that this is does not create confusion about `make_ascii_lowercase` itself, since some thinking suggests that it only makes sense for slices of bytes. But it sows doubts about other methods nearby. For instance, `sort` shows up shortly after `make_ascii_lowercase`. Does `sort` apply only to u8 (it doesn't of course, but this is the potential confusion).
Repository: pytorch
Issue: Latest nightly produces CUDA torchscript that cannot be run
Labels: oncall: jit

## 🐛 Bug

Attempting to run a traced and optimized model gives the following error:

  def forward(self: __torch__.models.hrnet_dekr.___torch_mangle_2676.PoseHigherResolutionNet,
    x: Tensor) -> Tuple[Tensor, Tensor]:
    _0 = torch.cudnn_convolution_relu(x, CONSTANTS.c0, CONSTANTS.c1, [2, 2], [1, 1], [1, 1], 1)
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
    _1 = torch.cudnn_convolution_relu(_0, CONSTANTS.c2, CONSTANTS.c3, [2, 2], [1, 1], [1, 1], 1)
    _2 = torch.cudnn_convolution_relu(_1, CONSTANTS.c4, CONSTANTS.c5, [1, 1], [0, 0], [1, 1], 1)

Traceback of TorchScript, original code (most recent call last):

    graph(%input, %weight, %bias, %stride:int[], %padding:int[], %dilation:int[], %groups:int):
        %res = aten::cudnn_convolution_relu(%input, %weight, %bias, %stride, %padding, %dilation, %groups)
               ~~~~ <--- HERE
        return (%res)
RuntimeError: no valid convolution algorithms available in CuDNN


## To Reproduce

Steps to reproduce the behavior:

1. Latest nightly (23rd May)
2. Trace a PoseHigherResolutionNet (such as DEKR)
3. Optimize for inference (torch.jit.optimize_for_inference)
4. Attempt to run it

## Expected behavior

Runs as it did previously in nightly.

## Environment

 - PyTorch Version (e.g., 1.0): 1.9.0.dev20210523
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): Pip
 - Build command you used (if compiling from source): N/A
 - Python version: 2.8
 - CUDA/cuDNN version: 11.1/8.1
 - GPU models and configuration: Titan V
 - Any other relevant information:



cc @gmagogsfm
Repository: youtube-dl
Issue: Can you autocompress when file downloaded reaches a specific file size?
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.
-->

Is it possible to set a maximum file size when you download a video, and auto compress it to the max limit when it goes beyond that limit? Because I downloaded a video from YT, and it was 1.1 GiB. I would love so that you could set a filesize limit (e.g. youtube-dl (my link) -f 500M). That would be awesome!

Also this is my version:

`[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.05.16
[debug] Python version 3.9.5 (CPython) - Linux-5.10.36-2-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Proxy map: {}`
Repository: ant-design
Issue: Inputnumber that is server side rendered via Next.js is squished and unusable on mobile browsers
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://github.com/AlexMath23/Ant-design-bug-.git](https://github.com/AlexMath23/Ant-design-bug-.git)

### Steps to reproduce
Create Next.js projects , place an Inputnumber on a component , go into F12 and change your viewport to a that of a mobile device, Reload

### What is expected?
A normal behaving Inputnumber

### What is actually happening?
A squished line that is unusable

| Environment | Info |
|---|---|
| antd | 4.15.6 |
| React | Next.js |
| System | Linux and Windows |
| Browser | Chrome mobile |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->