sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Handing Ctrl+C in test harness
Labels: C-feature-request,A-libtest

Right now, sending a Ctrl+C (SIGINT) as the test harness runs simply runs the default signal handler from the OS, which ends the process as soon as possible. It would be more ideal to handle this signal and end the harness more gracefully. Here's sort of what I have in mind:

1. If the user presses Ctrl+C once, the harness will mark all tests that haven't started as ignored, wait for the currently running tests to finish, and then show the test results.
2. If the user presses Ctrl+C twice, show results after the first thread finishes running a test, without waiting for all tests to finish. This could act as a safeguard in case one test is hanging. The remaining threads will terminate regardless after results are printed when the process exits.
3. If the user presses Ctrl+C thrice, exit immediately.

Note that the second ctrl+C is only useful if more than one thread is running or if there are fewer hanging tests than running threads, but it seems reasonable to cover the case where one thread is hanging but the rest have finished.

Note that right now, this would require relying on an external crate like `ctrlc` since there's no built-in Rust way to do this, but I think that adding this option at least on platforms that support it would be extremely helpful.
Repository: rust
Issue: Expand `#[cfg]` and `#[cfg_attr]` left-to-right for consistency with other attributes
Labels: C-enhancement,A-macros

Currently, cfg-stripping is performed before we invoke any proc-macro attributes. This means that `#[my_attr] #[cfg(FALSE)] struct Foo {}` does not invoke `#[my_attr]` at all, instead of invoking it with `#[cfg(FALSE)] struct Foo {}`

See https://github.com/rust-lang/rust/pull/82419/files/fc9d578bc5ada5162f49ed02a547cf87f2456a93#r580718089 for a more detailed example and discussion.
Repository: flutter
Issue: Can not easily get the final transformation scale of a context
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

There are some occasions where it's useful to know your "global scale". The only way I am aware of, is:
```
renderBox.getTransformTo(null)
```
But this has two issues. 
* It can't be called in build, requiring `scheduleMicrotask`
* It requires 2 builds before it reports a valid value
* Because of 1 + 2, it requires 3 builds before it can render with that value

For example, this code:
```
class __ScaledChildState extends State<_ScaledChild> {
  int _buildCount = 0;
  double? _scale;
  @override
  Widget build(BuildContext context) {
    _buildCount++;
    print("Build $_buildCount, scale = $_scale");
    if (_scale == null) {
      scheduleMicrotask(() => setState(() {
            RenderBox? rb = context.findRenderObject() as RenderBox?;
            if (rb?.hasSize ?? false) {
              _scale = rb?.getTransformTo(null).row0[0];
            }
          }));
    }
    return Container(width: 100, height: 100, color: Colors.green);
  }
}
```
Prints the following:
```
flutter: Build 1, scale = null
flutter: Build 2, scale = null
flutter: Build 3, scale = 0.5
```

It would be quite nice if both the local, and global scale were cached so we can easily look them up in the first build call, if that is possible.
Repository: godot
Issue: BakedLightmap (CPU lightmapper) does not use vertex colors (fixed in `master` with GPU lightmapper)
Labels: bug,topic:rendering,topic:3d

<!-- 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. -->
Godot 3.3 RC6


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
RTX 2080s GLES2 & 3 Windows 10 64bit


**Issue description:**
<!-- What happened, and what was expected. -->
The lightmapper does not take into account vertex colors.

![Capture](https://user-images.githubusercontent.com/11403345/111890997-3672fc00-89c5-11eb-814f-2bd31a3a1885.PNG)

plane lightmap
![Plane](https://user-images.githubusercontent.com/11403345/111890999-383cbf80-89c5-11eb-8739-dad7aa96da24.png)




**Steps to reproduce:**
1. Create a basic scene that has vertex colors, with lightmap unwrapped meshes, turn on lightmap baking on the mesh and add a light in the scene)
2. add a baked light map node and fit the extents to contain the scene
3. press bake
4. notice the vertex colors don't affect the lightmaps

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[LightMapperVertexColor.zip](https://github.com/godotengine/godot/files/6176678/LightMapperVertexColor.zip)
Repository: storybook
Issue: ES6 optional chaining syntax in svelte component throws an error
Labels: bug,configuration babel / webpack,svelte

**Describe the bug**
When I use an optional chaining syntax in the Svelte component, An error occurs.
It occurs only when I run Storybook, no problem on Rollup.
I expected it is related to Babel so I tried to configure Babel in several ways but all failed.

**To Reproduce**
Steps to reproduce the behavior:

1. Execute commands below
```bash
npx degit sveltejs/template my-app
cd my-app
npx sb init
```
2. Edit `src/stories/Button.svelte`
```svelte
<button
  type="button"
  class={['storybook-button', `storybook-button--${size}`, mode].join(' ')}
  {style}
  on:click={onClick}>
  {label?.length}
</button>
```

3. Run Storybook
```bash
yarn storybook
```

3. See error
```plain
ERROR in ./src/stories/Button.svelte 22:32
Module parse failed: Unexpected token (22:32)
File was processed with these loaders:
 * ./node_modules/svelte-loader/index.js
You may need an additional loader to handle the result of these loaders.
| function create_fragment(ctx) {
|       let button;
>       let t_value = /*label*/ ctx[1]?.length + "";
|       let t;
|       let button_class_value;
 @ ./src/stories/Button.stories.js 10:0-37 13:13-19 41:15-21
 @ ./src sync ^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$
 @ ./.storybook/generated-stories-entry.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/storybook-init-framework-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addArgs.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addParameter.js-generated-other-entry.js ./node_modules/@storybook/addon-links/dist/preset/addDecorator.js-generated-other-entry.js ./.storybook/preview.js-generated-config-entry.js ./.storybook/generated-stories-entry.js (webpack)-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined
Child HtmlWebpackCompiler:
                          Asset      Size               Chunks  Chunk Names
    __child-HtmlWebpackPlugin_0  6.19 KiB  HtmlWebpackPlugin_0  HtmlWebpackPlugin_0
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/@storybook/core/dist/server/templates/index.ejs] 1.98 KiB {HtmlWebpackPlugin_0} [built]

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
```

**System Environment**
MacBook Air, macOS 11.2.3 (M1, Apple Silicon)
Node v15.11.0 (ARM)
Repository: godot
Issue: Particle oneshot doesn't work with billboard mode enabled and billboard keep size disabled.
Labels: bug,topic:rendering,confirmed,topic:particles

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.2.3
reproducible in 3.3 f50c8062d

**OS/device including version:**
Windows and Linux
AMD cards
on both gles2 and gles3
with both CPUParticles and Particles nodes

**Issue description:**
When a particles draw pass's material is set to billboard mode with billboard keep scale disabled, oneshot makes the particles warp back to their spawning point before disappearing.


**Steps to reproduce:**
1. Create a Particles node.
2. Give it a draw pass that has a material with billboard enabled and billboard keep scale disabled.
3. Set the particles to oneshot.

**Minimal reproduction project:**
[particle_issue.zip](https://github.com/godotengine/godot/files/6177228/particle_issue.zip)
![particle_issue](https://user-images.githubusercontent.com/65178145/111901820-7e803600-8a3a-11eb-9fac-58462eb21580.gif)
Repository: flutter
Issue: Row baseline alignment not baseline-aligned on macOS
Labels: framework,platform-mac,a: typography,platform-web,a: desktop,has reproducible steps,P2,found in release: 2.0,found in release: 2.1,team-framework,triaged-framework

I think, `Row` baseline alignment is off by a pixel or two on at least macOS and the web.

I drew a line in a scaled-up image to visualize it:

![image](https://user-images.githubusercontent.com/14989/111902562-5f83a300-8a3e-11eb-89da-ce22144d92c6.png)

I'd have expected that both `Text` widgets have the exactly same baseline.

## Steps to Reproduce

Here's a minimal example.

```dart
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.baseline,
            textBaseline: TextBaseline.alphabetic,
            children: [
              Text('Untersuchen', style: TextStyle(fontSize: 18)),
              Text('(Hauptfertigkeit)', style: TextStyle(fontSize: 12)),
            ],
          ),
        ),
      ),
    );
  }
}
```
For reference, here's a scaled-up screenshot from my iOS simulator which looks okayish:

![image](https://user-images.githubusercontent.com/14989/111902847-a625cd00-8a3f-11eb-9a36-7b2477516155.png)

<details>
  <summary>Logs</summary>
<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
Flutter 2.1.0-13.0.pre.192 • channel master • https://github.com/flutter/flutter.git
Framework • revision c0bcb4fc16 (35 hours ago) • 2021-03-19 16:34:57 -0700
Engine • revision e6db3a275e
Tools • Dart 2.13.0 (build 2.13.0-149.0.dev)

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.1.0-13.0.pre.192, on macOS 11.2.3 20D91 darwin-x64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.3)
[✓] Connected device (3 available)
```

</details>
Repository: pytorch
Issue: [docs] torch.lerp has unmatching signature and explained parameter names
Labels: module: docs,triaged,module: interpolation

`torch.lerp(input, end, weight, *, out=None)`:, `out[i] = start[i] + weight[i] * (end[i] - start[i])`

It explains that `Does a linear interpolation of two tensors start (given by input)`. Would it be possible to make an alias argument name via the dispatcher? Or break the compat and just rename? I think it's anyway more clear to have the argument read `torch.lerp(start =x, end = y, weight = weight)` than `torch.lerp(input = x, end = y, weight = weight)`. It seems that all-keyword args should be the only with broken compat

cc @brianjo @mruberry
Repository: pytorch
Issue: in WINDOWS, CUDA Out of Memory error but CUDA memory is almost empty
Labels: module: windows,module: cuda,module: memory usage,triaged

my problem is the same as #16417
I must emphasize that my problem is GPU free is greater than will be allocated
So please confirm this before replying

I found that if I set the num_worker of the dataloader to 0, the problem disappear
So this is probably related to #12831

So is there a way to solve the problem without setting num_worker to 0?


cc @ngimel @peterjc123 @maxluk @nbcsm @guyang3532 @gunandrose4u @mszhanyi @skyline75489
Repository: pytorch
Issue: torch.lerp and torch._foreach_lerp should support uint8 inputs (for vision), int16 (for audio), int32/int64 (for generality)  without (up)casting to float for  and/or dtype argument 
Labels: triaged,enhancement,module: interpolation

The common usecase: blend two uint8 images or int16 audios
Repository: rust
Issue: Comparing explicitly typed None gives different diagnostic then implicitly typed None
Labels: C-enhancement,A-diagnostics,T-compiler,A-inference,D-papercut

Comparing an explicitly typed None gives a different (less helpful) diagnostic then an implicitly typed None of the same type. 

Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=48fa4d543c6d8eec51a2c2e951828039

```rust
#[derive(Debug, Clone, Copy)]
enum Player {
    Black,
    White
}

#[derive(Debug)]
struct TTT {
    board: [[Option<Player>; 3]; 3], // 3x3 matrix
}

impl TTT {
    fn new() -> TTT {
        TTT {
            board: [[None; 3]; 3],
        }
    }
}

fn main() {
    let row = "0".parse::<usize>().unwrap();
    let game = TTT::new();
    println!("{:?}", game.board[row][0]);
    if None == game.board[row][0] {
        println!("None");
    }
    if None::<Player> == game.board[row][0] {
        println!("None");
    }
}
```

The current output is:

```
error[E0277]: can't compare `Player` with `Player`
  --> src/main.rs:26:13
   |
26 |     if None == game.board[row][0] {
   |             ^^ no implementation for `Player == Player`
   |
   = help: the trait `PartialEq` is not implemented for `Player`
   = note: required because of the requirements on the impl of `PartialEq` for `Option<Player>`

error[E0369]: binary operation `==` cannot be applied to type `Option<Player>`
  --> src/main.rs:29:23
   |
29 |     if None::<Player> == game.board[row][0] {
   |        -------------- ^^ ------------------ Option<Player>
   |        |
   |        Option<Player>
```

Ideally the output should look the same for both versions.
Repository: godot
Issue: Line spacing with Minecraftia Font is off between first and second line in RichtextLabel
Labels: bug,topic:gui


**Godot version:**
3.2.3 stable and 3.3rc6


**OS/device including version:**
Windows 10


**Issue description:**
The line spacing between the first and second line is less than the other line spacing after that when using Mincraftia Font (https://www.dafont.com/de/minecraftia.font)


**Steps to reproduce:**
Create richtextlabel, use font and make a text atleast 3 lines long (without new line, just use autowrap) (font size 8)

**Minimal reproduction project:**
[ExampleProject.zip](https://github.com/godotengine/godot/files/6177528/ExampleProject.zip)
Repository: PowerToys
Issue: [Color Picker] Option to not run in background
Labels: Idea-Enhancement,Area-Quality,Product-Color Picker

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

## ℹ Computer information

- PowerToys version: 0.33.1
- PowerToy Utility:
- Running PowerToys as Admin: Yes
- Windows build number: [run "winver"]: 20H2 19042.867

## 📝 Provide detailed reproduction steps (if any)

1. Start PowerToys

### ✔️ Expected result

One EXE should be running - PowerToys

### ❌ Actual result

Two EXE files are seen in Windows Task manager - PowerToys and ColorPickerUI

I rarely use Color Picker. I do not expect it to be running unless I open the Color Picker.
Repository: youtube-dl
Issue: Add support for ligonier.org
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.03.14. 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.03.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

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.ligonier.org/learn/media-player/?media=6742&type=media%20resource&lb=&image=http://s3.amazonaws.com/ligonier-static-media/images/series-generic_jpg_620x332_crop_upscale_q85.jpg&format=&start=0
- Single video: https://www.ligonier.org/learn/conferences/right-now-counts-forever-2021-national-conference/the-holiness-of-god-and-his-people/?format=video#


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Youtube-dl works with this site already using the "generic information extractor," but seems to lack explicit support.
Repository: go
Issue: testing/fstest: the documentation of `MapFile.Sys` should specify that the field can be `nil`
Labels: Documentation,NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.2 linux/amd64
</pre>

The documentation of `FileInfo.Sys` in the `io/fs` package specifies that the method can return `nil`; however the documentation of `MapFile.Sys` in the `testing/fstest` package does not specify that the field can return `nil`.
Repository: godot
Issue: Export PCK/Zip doesn't export everything to a zip file (excludes many resources in the zip)
Labels: bug,topic:editor,topic:porting,needs testing

**Godot version:**
3.2.3.stable


**OS/device including version:**
Windows 10

**Issue description:**
If you export Zip via Export PCK/Zip, using the Windows Desktop export preset (possibly others) and then check the zip file, if won't include all resources, only the icon.png. This problem happens whether or not the image was used in the project. The .import file shows, but not the original .png.

**Steps to reproduce:**
Create a new godot project, drag a png or other image into the FileSystem tab, so it shows in res://, just like icon.png, then go to the Export menu, select "Windows Desktop" as an export preset, then export the pck/zip, name the file with a .zip extension. Open the zip file after exporting, and the only .png that will show up is the default icon.png.

**Minimal reproduction project:**
[BugTest.zip](https://github.com/godotengine/godot/files/6177748/BugTest.zip)
Repository: youtube-dl
Issue: Detect live videos by parsing the output
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.
-->

WRITE QUESTION HERE
I am calling youtube-dl from C++ and I getting all the download info by parsing the output.
So my question is: how can I detect by a live video download by parsing the output?

I've managed to do it on youutube live video with the following regular expression(C++)
`\\[youtube\\]\\s.*\\:\\sDownloading\\sMPD\\smanifest`
And for facebook:
`\\[facebook\\] playlist .*\\: "`
I am not sure though they will always work.

Is there any regular expression for live video downloads in the output(preferably one that comes before youtube-dl creates any file) so I can detect on other websites?
Repository: flutter
Issue: Advanced Dart Migration Tool
Labels: c: new feature,tool,dependency: dart,c: proposal,P3,team-tool,triaged-tool

## Use case

After migrating to Flutter 2, I found that some deprecated widgets were not replaced by alternative widgets.
Like FlatButton and TextButton, or RaiseButton and ElevatedButton.

## Proposal

I found that the [dart Migration tool](https://dart.dev/null-safety/migration-guide#migration-tool) was very helpful when I started to migrate to Flutter 2.

If you could take the dart migration tool to the next level, it can be configurable by a YAML file or any similar way.
So community or packages maintainers could use it too.

For example, if the Flutter team is busy, someone from the community could post a configuration to migrate FlatButton to TextButton.
Repository: pytorch
Issue: [docs] torch.optim.lr_scheduler
Labels: module: docs,module: optimizer,triaged

## 📚 Documentation

<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->
Assuming optimizer uses lr = 0.05 for all groups
lr = 0.05     if epoch < 30
lr = 0.005    if 30 <= epoch < 60
lr = 0.0005   if 60 <= epoch < 90
#...
scheduler = StepLR(optimizer, step_size=30, gamma=0.1)
for epoch in range(100):
    train(...)
    validate(...)
    scheduler.step()

The above is the code mentioned in the docs.
Now, if we see that at epoch == 30, the optimizer in the train function will use the initialized lr (i.e. 0.05) and after that when scheduler.step() command runs, it will update the lr, therefore the optimizer will use the updated lr at epoch == 31 and not at 30.
I have checked it out.

cc @brianjo @mruberry @vincentqb