sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: youtube-dl
Issue: Per-site sections in the config file
Labels: 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.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2021.06.06**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

Currently the user can provide generic format settings in their `$XDG_CONFIG_HOME/youtube-dl/config`. Yet it's common to use different formats across different sites - can we have support for that?

Example and use-case:
```
cat $XDG_CONFIG_HOME/youtube-dl/config
# Generic section
--verbose
--format='best'

# The section identifier can be either the extractor name or a wildcard for the actual URL
# It's up-to the team to decide.
[youtube.com]
# say you want some websites to be audio-only
--format='bestaudio'

[dailymotion.com]
# sometimes the connection to the website is too slow for anything better
--format='best[height<=?720][fps<=?60]' 
```
Repository: youtube-dl
Issue: Please add support for https://www.investinghub.in
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.06.06. 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.06.06**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [ ] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
Repository: yt-dlp
Issue: [Youtube_live_chat] Sync Live-chat Timestamps
Labels: site-bug

<!--

######################################################################
  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 yt-dlp:
- First of, make sure you are using the latest version of yt-dlp. Run `yt-dlp --version` and ensure your version is 2021.07.07. If it's not, see https://github.com/yt-dlp/yt-dlp on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar site feature requests: https://github.com/yt-dlp/yt-dlp. DO NOT post duplicates.
- Finally, put x into all relevant boxes like this [x] (Dont forget to delete the empty space)
-->

- [x] I'm reporting a site feature request
- [x] I've verified that I'm running yt-dlp version **2021.07.07**
- [x] I've searched the bugtracker for similar site feature requests including closed ones


## Description

<!--
Provide an explanation of your site feature request in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

When downloading the pre-chat from a scheduled Livestream `videoOffsetTimeMsec` will start from the time yt-dlp started downloading and not from when the Livestream was live so the comments will be off from the video

i have a solution for this in mind but i'm not sure if it could work

first check every maybe 10 minutes? for `liveBroadcastDetails":{"isLiveNow":true,"startTimestamp":"2021-07-11T19:05:36+00:00` 
in the page source

then at the end generate the `videoOffsetTimeMsec` from comparing the stream `startTimestamp` with the Unix timestamp (`timestampUsec`) of the comments

i hope i explained this good enough i'm sorry if not
Repository: godot
Issue: Changing the mouse mode can set InputEventMouseMotion.relative to NaN
Labels: bug,topic:input

### Godot version

3.3.2.stable

### System information

5.12.15-arch1-1

### Issue description

Setting Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) while using InputEventMouseMotion.relative will sometimes lock up the game while the debugger spits out

>instance_set_transform: Condition "Math::is_nan(v.x)" is true.
>↳<C++ Source>  servers/visual/visual_server_scene.cpp:723 @ instance_set_transform()

It can require many attempts for it to happen but I found that if you restart the engine and run the game the odds of it happening dramatically increase. I captured it in action on video (the debugger tab that shows the increasing errors will most likely be hidden by the video player controls):

https://user-images.githubusercontent.com/65245864/125212003-c7295c80-e280-11eb-88a0-4d9cf9b5f021.mp4

### Steps to reproduce

1. Download the demo project
2. Run the game
3. Move the mouse up or down to spin the cube
4. While spinning the cube press left click to change the mouse mode
5. If the bug occurs the cube will stop spinning and the debugger will be flooded with errors
6. If not, press right click to free the mouse

You can try to left click again but in my experience if it doesn't happen in the first couple tries there's no way to tell how long it will take. I can get it to happen 20% of the time by restarting the engine, running the game, then do it all again until it happens

### Minimal reproduction project

[camera.zip](https://github.com/godotengine/godot/files/6797796/camera.zip)
Repository: yt-dlp
Issue: [Feature Request] Option to add subtitle URL manually
Labels: enhancement


This feature request is related to [youtube-dl issue #17027](https://github.com/ytdl-org/youtube-dl/issues/17027). If a subtitle track is not known to yt-dlp but in fact exists, it is requested to be able to download the subtitle file and merge it into the MKV output file.

It is requested to be able to add a custom file location of the .vtt subtitle track to allow for the subtitle track to be merged into the output MKV.

Using this video and subtitle file, a potential command could look like the following:

```
yt-dlp https://streaming-vod.rtp.pt/dash/nas2.share/h264/512x384/p8165/p8165_1_202101072139181978.mp4/manifest.mpd --external-subtitle https://cdn-ondemand.rtp.pt/nas2.share/legendas/video/web/p8165/p8165_1_202101072139181978.vtt
```
---

Split from https://github.com/yt-dlp/yt-dlp/issues/486#issue-941456930 originally posted by @bcmryan
Repository: transformers
Issue: Long-Short Transformer
Labels: New model

# 🌟 New model addition

## Model description

https://arxiv.org/abs/2107.02192

In this paper, they propose Long-Short Transformer, an efficient self-attention mechanism for modeling long sequences with linear complexity for both language and vision tasks. It aggregates a novel long-range attention with dynamic projection to model distant correlations and a short-term attention to capture fine-grained local correlations. Transformer-LS can be applied to both autoregressive and bidirectional models without additional complexity.

## Open source status

* [x] the model implementation is available: https://github.com/NVIDIA/transformer-ls
* [x] the model weights are available: https://github.com/NVIDIA/transformer-ls
* [x] who are the authors: Chen Zhu (@zhuchen03) and Wei Ping and Chaowei Xiao and Mohammad Shoeybi and Tom Goldstein and Anima Anandkumar and Bryan Catanzaro (NVIDIA, University of Maryland)
Repository: node
Issue: TLS error closes entire process
Labels: http2

### Version

v16.4.0

### Platform

Linux 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

### Subsystem

_No response_

### What steps will reproduce the bug?

A simple http2 server, with no external libraries fails to catch a TLS error.

I added error listeners to server, session and stream, but none of them manages to catch the following error:

```bash
node:events:371
      throw er; // Unhandled 'error' event
      ^

Error: 139932573210560:error:14094123:SSL routines:ssl3_read_bytes:application data after close notify:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1608:

Emitted 'error' event on TLSSocket instance at:
    at TLSSocket._emitTLSError (node:_tls_wrap:900:10)
    at TLSWrap.onerror (node:_tls_wrap:432:11) {
  library: 'SSL routines',
  function: 'ssl3_read_bytes',
  reason: 'application data after close notify',
  code: 'ERR_SSL_APPLICATION_DATA_AFTER_CLOSE_NOTIFY'
}
```

### How often does it reproduce? Is there a required condition?

Daily on a low traffic server (~200 daily users).

### What is the expected behavior?

To be able to catch the error or http2 module to be able to handle it

### What do you see instead?

Unhandled error event

### Additional information

_No response_
Repository: go
Issue: gccgo: internal compiler error: in write_equal_function
Labels: NeedsInvestigation

```
$ gccgo --version
gccgo (GCC) 11.0.1 20210317 (experimental)
```
```
package main

const B = false

func main() {
	if B {
		var m map[int]struct {
			f float64
		}
		_ = func() float64 {
			return m[0].f
		}
	}
}
```
```
$ gccgo crash.go
go1: internal compiler error: in write_equal_function, at go/gofrontend/types.cc:2303
  0x16ad6e9 internal_error(char const*, ...)
  0x6e4be6 fancy_abort(char const*, int, char const*)
  0x7c3f6a Type::write_equal_function(Gogo*, Named_type*, long, Backend_name const*, Function_type*)
  0x7c4262 Type::build_equal_function(Gogo*, Named_type*, long, Function_type*)
  0x7cc337 Type::equal_function(Gogo*, Named_type*, Function_type*)
  0x7cf87c Type::type_descriptor_constructor(Gogo*, int, Named_type*, Methods const*, bool)
  0x7d07bc Struct_type::do_type_descriptor(Gogo*, Named_type*)
  0x7c7c7f Type::make_type_descriptor_var(Gogo*)
  0x7c838f Type::type_descriptor_pointer(Gogo*, Location)
...
```

Also crashes gccgo 10.2.

cc @ianlancetaylor @thanm
Repository: flutter
Issue: Error while generating xcframeworks from Flutter module when including a local framework
Labels: platform-ios,tool,a: existing-apps,has reproducible steps,P3,found in release: 2.2,found in release: 2.4,a: plugins,team-ios,triaged-ios

## Problem
I want to build a flutter module that depends on a flutter plugin. This plugin has to call methods written in a local .xcframework (and aar in case of Android) file.
The module runs fine standalone in an iOS simulator. But, It is throwing an error "no such module <name of .xcframework file>" when trying to generate xcframeworks from this flutter module using "flutter build ios-framework --xcframework --no-universal --output=some/path/MyApp/Flutter/"
## Steps to Reproduce
1) Create a new Flutter module(say, **myModule**) and a new Flutter plugin(say, **myPlugin**)
2) Create an xcframework (say, **myFramework**) in Xcode using [this](https://www.appcoda.com/xcframework/). Let the framework contain some sample swift classes.
3) Copy the xcframework to the directory path/to/**myPlugin**/ios/
4) Add the following to myPlugin.podspec file in the above directory ([Reference](https://github.com/flutter/flutter/issues/17978#issuecomment-392717702)):
`  s.preserve_paths = 'myFramework.xcframework' `
` s.xcconfig = { 'OTHER_LDFLAGS' => '-framework myFramework' }`
`s.vendored_frameworks = 'myFramework.xcframework'`
  Run **pod Install** or **Pod Update** from path/to/**myModule**/.ios/ to fetch the dependencies
5) Import the framework myFramework.xcframework ("import myFramework") in the plugin's iOS code and access the classes in it.
6) Run the module on iOS simulator (**works fine**)
7) Build the xcframeworks using  **flutter build ios-framework --xcframework --no-universal --output=/some/path/to/output -v**

**Results:** <!-- what did you see? -->

During the step 7: At the time of building Plugins, the following error occurs in the iOS plugin code: 

error: no such module 'myFramework'
import myFramework
            ^
Repository: PowerToys
Issue: Support for Enterprise Windows revision: 1809
Labels: Status-Blocked,Area-Enterprise

### Description of the new feature / enhancement

Make the Software available for long term support Windows Versions.
As far as i can see the latest LTSC version is 1809. 
It would be great to have features as the muting and camera control available for this edition.

### Scenario when this would be used?

Every business Laptop running the LTSC version would profit in meetings with that feature.

### Supporting information

_No response_
Repository: vscode
Issue: Font size for the extra info in suggestion list became smaller and can't be changed, causing problems with some fonts
Labels: ux,suggest,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.58.0
- OS Version: Linux x64 5.8.0-59-generic (Xubuntu 20.04.2)

Steps to Reproduce:

1. Open, for example, an empty `.js` file. 
2. Press <kbd>Ctrl</kbd><kbd>Space</kbd> to open suggestions. If necessary, press it again to switch to the compact list.
3. Observe following:
![pic](https://user-images.githubusercontent.com/20289055/125254109-d0f3a400-e302-11eb-8208-9f788bc82489.png)

The information about the active element uses the same monospaced font as the editor, but **with smaller size**. From what I can see, this size can't be customized.

Since I'm using a bitmap font (converted to `.ttf`), this makes it illegible. This is the only place in the app where you can't customize the size of the monospaced font.
Repository: pytorch
Issue: I have graphic card of P4, but torch.cuda.is_available() always shows false
Labels: module: cuda,triaged

This is my current system:
![image](https://user-images.githubusercontent.com/68514251/125254216-d6fe7a80-e32c-11eb-84e0-4ae90b019174.png)

This is my current GPU information:
![image](https://user-images.githubusercontent.com/68514251/125254273-e41b6980-e32c-11eb-9a8c-375af6fb6df8.png)

This is my current pytorch version and check whether cuda is available:
![image](https://user-images.githubusercontent.com/68514251/125254679-44aaa680-e32d-11eb-8b3d-e9374aede04f.png)

But I do have the GPU supported, but why it always shows false?
Does anyone know how to solve this problem?
Any help is appreciated!
Thank you!

cc @ngimel
Repository: godot
Issue: Referencing a class in an autoloaded script prevents warnings for unsafe property and method access in that class
Labels: bug,topic:gdscript

### Godot version

3.3.2 stable (also 3.3 stable)

### System information

Windows 10

### Issue description

If an autoloaded script contains a reference to a class, unsafe method and property usage in that class does not produce errors, IF the unsafe usage pertains to the autoloaded script in question OR any of the following scripts in the autoload queue. 

Presumably, the safety checks happen only when a class is first referenced, in this case when the autoloads are not yet parsed. The checks would need to happen only after all autoloads are complete for the warnings to correctly show.

Note: Requires enabling the unsafe access warning options in Project Settings / Debug

### Steps to reproduce

The reproduction project has warnings for GDscript unsafe property and method access enabled.

It has three autoloaded scripts, accessible as Autoload1, Autoload2, and Autoload3

test_class.gd accesses all three of them unsafely:

```
class_name TestClass

func test_method():
	Autoload1.nonexistent_method()
	var _property_1 = Autoload1.nonexistent_property

	Autoload2.nonexistent_method()
	var _property_2 = Autoload2.nonexistent_property

	Autoload3.nonexistent_method()
	var _property_3 = Autoload3.nonexistent_property
```

TestClass is referenced in the main node so that it will be checked for safety.

But upon running main, only two warnings are received:
```
The method 'nonexistent_method' is not present on the inferred type 'autoload_1.gd' (but may be present on a subtype).
The property 'nonexistent_property' is not present on the inferred type 'autoload_1.gd' (but may be present on a subtype).
```
This is because autoload_2.gd contains the following line:
```
var test_class_variable : TestClass # Comment this out for all warnings to show as expected
```

When it is commented out, all six warnings are received as expected.
```
The method 'nonexistent_method' is not present on the inferred type 'autoload_1.gd' (but may be present on a subtype).
The property 'nonexistent_property' is not present on the inferred type 'autoload_1.gd' (but may be present on a subtype).
The method 'nonexistent_method' is not present on the inferred type 'autoload_2.gd' (but may be present on a subtype).
The property 'nonexistent_property' is not present on the inferred type 'autoload_2.gd' (but may be present on a subtype).
The method 'nonexistent_method' is not present on the inferred type 'autoload_3.gd' (but may be present on a subtype).
The property 'nonexistent_property' is not present on the inferred type 'autoload_3.gd' (but may be present on a subtype).
```


Note that
```
var test_class_variable= TestClass.new()
```
in autoload_2.gd causes the same problem to occur.

### Minimal reproduction project

[autoloader_bug.zip](https://github.com/godotengine/godot/files/6799761/autoloader_bug.zip)
Repository: flutter
Issue: [palette_generator] Incorrect region scaling when resizing changes the aspect ratio of the image 
Labels: package,p: palette_generator,team-ecosystem,has reproducible steps,P3,found in release: 2.2,triaged-ecosystem

When using the `PaletteGenerator.fromImageProvider(...)` function, the passed region is not processed correctly if the image size changes the aspect ratio of the original image. It could also generate errors that the region is outside the image, even though the region fits into the resized image.

An example for reproducing the bug with an ImageProvider that provides an image with a resolution of 600x400:
```
var _paletteGenerator = await PaletteGenerator.fromImageProvider(
      _imageProvider,
      size: Size(100, 100),
      region: Rect.fromCircle(
          center: Offset(50, 50),
          radius: 25),
    );
```
In this example, the image is resized from an aspect ratio of 3:2 to an aspect ratio of 1:1. The provided region fits into the resized image but the function call yields an AssertionError stating, that the provided region is outside the image.

The error is due to the region scaling in palette_generator.dart:
```
final double scale = image.width / size.width;
      newRegion = Rect.fromLTRB(
        region.left * scale,
        region.top * scale,
        region.right * scale,
        region.bottom * scale,
      );
```
There the region scaling is done using just a single scaling factor that is determined using only the width of the image. To resolve this bug, a second scaling factor would be needed that additionally accounts for the height of the image.