sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [material-ui] useMediaQuery('print') doesn't work when print started from window.print
Labels: docs,external dependency,hook: useMediaQuery,ready to take

- [X] The issue is present in the latest release.
- [X] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Current Behavior 😯
Demo: https://codesandbox.io/embed/gifted-bohr-cxrdm

Chrome:
`useMediaQuery('print')` matches only when print is started with `Ctrl+P` or `Print` chosen from browser's menu. When print is started from `window.print` method - it doesn't match. (See headings on sample.)

Firefox: 
`useMediaQuery('print')` never matches.

## Expected Behavior 🤔

I expect to `useMediaQuery('print')` to match for all "printing situations", regardless it is started from "browser user action" or "programmatically". And it should work on Firefox in general.
In attached demo - I expect to have "This should be hidden with useMediaQuery." paragraph to be hidden in all "printing situations".

## Steps to Reproduce 🕹
See demo: https://codesandbox.io/embed/gifted-bohr-cxrdm
Try to print via browser (`Ctrl+P` or `Print` from main menu) or via button "print via window.print" to see how it behaves.

## Context 🔦

I'm trying to hide some elements for printing. Some blocks may be wrapped with `<Box displayPrint="none">` - and it works. Sometimes I need to have "lower level" flag determining if this is print view, so I want to utilize `useMediaQuery('print')` - to avoid adding extra `div`s to DOM (what `Box` does).

## Your Environment 🌎

| Tech        | Version |
| ----------- | ------- |
| Material-UI | v4.4.3  |
| React       |  16.8.4       |
| Browser     |  Firefox 69.0.1, Chrome 77.0.3865.90    |
Repository: flutter
Issue: Snapping ScrollPhysics
Labels: framework,a: fidelity,f: scrolling,a: quality,c: proposal,P3,team-framework,triaged-framework

Hi, 

After some tinkering and Googling all over the place I became super frustrated with the API / lack of documentation for `ScrollPhysics`. 
On Android you can use what's called a [SnapHelper](https://developer.android.com/reference/android/support/v7/widget/LinearSnapHelper) inside your RecyclerView (analogous to a ListView in Flutter) that will automatically snap to a certain position.

The SnapHelper does this on a position based API.  
You can ask which View is currently in your chosen ViewPort and get its position and ask the RecyclerView to animate to that position.

Flutter on the other hand wants us to work with logical pixels, which makes this super trivial, common pattern difficult to implement.  
All the _solutions_ I found was to use items inside the list that have a fixed width/height and don't account for flinging gestures.

What if items are not equally sized?
What if you don't know the size the item will be at?

![a92ca-1npi-wjo0ovasbkwv0gy5rw](https://user-images.githubusercontent.com/6739443/65771459-86f2fb80-e138-11e9-9eaf-9a9dd3bb0e9d.gif)

tl;dr How to implement this 👆in Flutter so it works for any item in a ListView?
Repository: angular
Issue: Using ++ and -- in Angular expressions
Labels: feature,workaround1: obvious,freq2: medium,area: core,core: basic template syntax,P4,feature: under consideration,feature: votes required

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

Oh hi there! 😄 

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->


# 🚀 feature request

### Relevant Package
<!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->
<!-- ✍️edit: --> 
This request is for the **compiler**


### Description
<!-- ✍️--> 
I just realized that using `++` or `--` operators directly in a `(click)` binding, doesn't work.

Blitz here: [https://stackblitz.com/edit/angular-34xtgk](Blitz)

`ng v` output (first lines)

Angular CLI: 7.2.0
Node: 10.14.2
OS: win32 x64
Angular: 7.2.0

### Describe the solution you'd like
<!-- ✍️--> 
I'd like to write like this. If I remember correctly it worked in AngularJS (ng-click).

```
<button (click)="count++">
ADD
</button>
```

### Describe alternatives you've considered
<!-- ✍️--> Have you considered any alternative solutions or workarounds?
Well, the alternatives are not as concise as the code above.
But of course it's possibile to overcome this limit.
Repository: pytorch
Issue: AnyValueTest.CorrectlyAccessesIntWhenCorrectType UBSAN failure: owncast of address 0x60300105d750 which does not point to an object of type 'Holder<const int>' Sep 27 00:01:03 0x60300105d750: note: object is of type 'torch::nn::AnyModule::Value::Holder<int>'
Labels: module: build,module: cpp,triaged

In https://github.com/pytorch/pytorch/pull/26927 I turn on libtorch tests in our ASAN build.  I subsequently get this UBSAN error

```
Sep 27 00:01:02 [ RUN      ] AnyValueTest.CorrectlyAccessesIntWhenCorrectType
Sep 27 00:01:03 /var/lib/jenkins/workspace/caffe2/../torch/csrc/api/include/torch/nn/modules/container/any.h:258:15: runtime error: downcast of address 0x60300105d750 which does not point to an object of type 'Holder<const int>'
Sep 27 00:01:03 0x60300105d750: note: object is of type 'torch::nn::AnyModule::Value::Holder<int>'
Sep 27 00:01:03  5a 02 00 43  e8 7c fd dd 92 55 00 00  e0 7c d7 e0 7a 7f 00 00  05 00 00 00 be be be be  00 00 00 00
Sep 27 00:01:03               ^~~~~~~~~~~~~~~~~~~~~~~
Sep 27 00:01:03               vptr for 'torch::nn::AnyModule::Value::Holder<int>'
Sep 27 00:01:03     #0 0x5592dd02fa81 in int const* torch::nn::AnyModule::Value::try_get<int const>() (/var/lib/jenkins/workspace/build/bin/test_api+0x8f6a81)
Sep 27 00:01:03     #1 0x5592dd003b28 in AnyValueTest_CorrectlyAccessesIntWhenCorrectType_Test::TestBody() (/var/lib/jenkins/workspace/build/bin/test_api+0x8cab28)
Sep 27 00:01:03     #2 0x5592dd81c51a in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (/var/lib/jenkins/workspace/build/bin/test_api+0x10e351a)
Sep 27 00:01:03     #3 0x5592dd7cb00a in testing::Test::Run() (/var/lib/jenkins/workspace/build/bin/test_api+0x109200a)
Sep 27 00:01:03     #4 0x5592dd7cd952 in testing::TestInfo::Run() (/var/lib/jenkins/workspace/build/bin/test_api+0x1094952)
Sep 27 00:01:03     #5 0x5592dd7cf87a in testing::TestCase::Run() (/var/lib/jenkins/workspace/build/bin/test_api+0x109687a)
Sep 27 00:01:03     #6 0x5592dd7f1c84 in testing::internal::UnitTestImpl::RunAllTests() (/var/lib/jenkins/workspace/build/bin/test_api+0x10b8c84)
Sep 27 00:01:03     #7 0x5592dd821c51 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/var/lib/jenkins/workspace/build/bin/test_api+0x10e8c51)
Sep 27 00:01:03     #8 0x5592dd7f0729 in testing::UnitTest::Run() (/var/lib/jenkins/workspace/build/bin/test_api+0x10b7729)
Sep 27 00:01:03     #9 0x5592dcf19527 in main (/var/lib/jenkins/workspace/build/bin/test_api+0x7e0527)
Sep 27 00:01:03     #10 0x7f7aae41c82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
Sep 27 00:01:03     #11 0x5592dcf18ed8 in _start (/var/lib/jenkins/workspace/build/bin/test_api+0x7dfed8)
Sep 27 00:01:03 
Sep 27 00:01:03 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/caffe2/../torch/csrc/api/include/torch/nn/modules/container/any.h:258:15 in 
```

Looks like a const problem?

cc @yf225
Repository: pytorch
Issue: Lint rule to test for creation of tensor in native/ without options()
Labels: module: build,module: lint,triaged,better-engineering

A longstanding hazard in native function writing is to forget to pass `options()` of an appropriate tensor to intermediates you build. Failing to do so can lead to Tensor-Variable confusion. Example: #26966

We should have a lint rule that detects if you mess this up. Probably could be as simple as a regex.
Repository: vscode
Issue: Expanding semantic theming to support semantically embedded languages for colorization
Labels: under-discussion,semantic-tokens

## Overview

Languages like Razor (and I imagine HTML for custom attributes) typically have scenarios where portions of the document are semantically a different language.

In Razor this happens frequently through the use of TagHelpers or in Blazor:
```Razor
<form asp-antiforgery="ViewBag.ShouldRenderAntiforgery">
...
</form>
```

In this example we'd expect that `ViewBag.ShouldRenderAntiforgery` would be C#. The way TagHelpers (things that apply to HTML and change the semantic language of the right hand side of an attribute) can be customized by users is limitless so we need to have full control over telling the IDE what things are C# and what things aren't.

## Ideas on how to implement

Over in the [issue ](https://github.com/microsoft/vscode/issues/77133) where the discussion of general semantic colorization the proposal was to have an API similar to:

```TypeScript
interface SemanticHighlightRangeProvider {
   provideHighlightRanges(doc,...): [ Range, TokenType, TokenModifier[] ][];
}
```

The proposed approach can also be used to enable semantic language colorization without enabling an entire language's extensions for a subset of a document.

To do this one could expand on the `ThemeDefinition` and add a `language` parameter:
```TypeScript
interface TokenStyle {
   foreground?: Color | ColorFunction
   style?: bold | italic | underline
   language?: string
}
```
This would enable LanguageServers to mark a chunk of text in an editor as a Token that associates with a specific language. This would work similarly to how tooltips/completion descriptions etc. work when specifying pieces of text that should be colorized as a certain language.

So in the first example `asp-antiforgery="ViewBag.ShouldRenderAntiforgery"` Razor's language server would indicate that the entire `ViewBag.ShouldRenderAntiforgery` was of a Razor specific theme that had a token Style of:
```JSON
{
    "language": "csharp"
}

This would enable future scenarios where if Razor wanted to go above and beyond to provide semantic colorization of specific tokens it could do it in an additive fashion on top of existing theme.
Repository: godot
Issue: Problem relocating a vertex of Curve2D
Labels: bug,topic:core,confirmed

**Godot version:**
3.1.1 mono

**OS/device including version:**
win10 64bits

**Issue description:**
The movement of the sprite begins to have strange movements after 5/10 seconds.
This seems to happen because one of the vertices of the curve2D is being moved in each frame.

**Steps to reproduce:**
Simply execute the scene and observe the movement of the sprite across the curve2D, when the second round begins, jumps will begin to occur in the movement of the sprite.

**Minimal reproduction project:**
[recorrePaths.zip](https://github.com/godotengine/godot/files/3663775/recorrePaths.zip)


![animacionCaras](https://user-images.githubusercontent.com/19652075/65786435-ebbd4e80-e156-11e9-8eaa-1f260b184864.gif)

Code of sprite node
![1](https://user-images.githubusercontent.com/19652075/65786595-4060c980-e157-11e9-855a-9a6bcdda7af7.png)
Repository: flutter
Issue: e2e test for WebView keyboard on Android
Labels: a: tests,platform-android,p: webview,package,customer: quill (g3),P2,team-android,triaged-android

Internal: b/292548234

As we're working around some Android VD/IME limitations, we need an e2e test for the keyboard that we can run on a broad range of Android devices.
Repository: create-react-app
Issue: Scaffold in Current Folder
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

I am always frustrated when I want my react project files to be in the root directory of my project, but I need to scaffold them in a sub-folder.

(If this feature exists already, I am frustrated that it is not documented clearly in the README).

### Describe the solution you'd like

Add a flag that scaffolds files in current directory instead of creating one.

### Describe alternatives you've considered

?

### Additional context

I think that describes it pretty well...


Thanks!
Repository: terminal
Issue: Re-enable C26814 for constexpr locals
Labels: Help Wanted,Product-Meta,Issue-Task,Area-CodeHealth

This showed up in a recent compiler edition and we aren't ready for all the build breaks it is causing.

Many of the issues look fixable, but some of them look upstream in wil (though I suspect it when it says that an HR can be figured out at compile time...)
Repository: flutter
Issue: Create unit tests for flutter_runner's component.cc
Labels: a: tests,team,framework,engine,P2,team-engine,triaged-engine

Right now we don't have unit test coverage for flutter_runner. Dan's PR at https://github.com/flutter/engine/pull/12380 adds a bunch of additional tests for a11y and I want to build upon that to add coverage for at least component.cc which is required by https://github.com/flutter/engine/pull/12428

Spawning this off into a separate issue as https://github.com/flutter/engine/pull/12428 is a pain point for Fuchsia and I'll work on this issue as soon as that's merged.
Repository: flutter
Issue: CupertinoTextSelection color fidelity over dark background colors
Labels: framework,a: fidelity,f: cupertino,P2,team-design,triaged-design

iOS contextual menus seem to have a special `BlendMode`, where the result color becomes darker when the destination color is brighter.

![image](https://user-images.githubusercontent.com/31859944/65797702-bf88da00-e124-11e9-9273-f26cf82f7ef6.png)

![image](https://user-images.githubusercontent.com/31859944/65797729-cfa0b980-e124-11e9-910b-43bd4799183d.png)
Repository: pytorch
Issue: torch.quantized.modules.floatFunctional -- add a little color commentary to the doc
Labels: module: docs,triaged,quantization_release_1.3

Raghu and I were talking and it would be good to add some color commentary to the torch.quantized.modules.floatFunctional entry explaining why this exits (rather than adding an add in the nn module). This came up in some of the developer feedback on the API. Knowing the design considerations might help people understand why they have to take this step.
Repository: go
Issue: cmd/gofmt: slice of structs not consistently formatted
Labels: NeedsInvestigation

See https://play.golang.org/p/uwG_GFPiU13.
I expected the literal to be reformatted like this:
```
package main

func main() {
	_ = []struct{ a int }{
		{
			a: 1,
		},
		{
			a: 2,
		},
		{
			a: 3,
		},
	}
}
```

instead, it preserves the previous formatting.
```
package main

func main() {
	_ = []struct{ a int }{
		{
			a: 1,
		},
		{
			a: 2,
		}, {
			a: 3,
		},
	}
}
```

Is this intentional? Or does it make sense to keep the formatting of structs in the slice the same?
Repository: TypeScript
Issue: Middle operand in comma operator list not properly checked for side-effect-freeness
Labels: Bug,Help Wanted

**TypeScript Version:** master at `f304b81fa54285f`
**Search Terms:** comma side effects

**Code**

```ts
declare const obj: any;
console.log(`${JSON.stringify(obj), undefined, 2}`);
```

**Expected behavior:** error TS2695: Left side of comma operator is unused and has no side effects.

**Actual behavior:** No errors

**Playground Link:** http://www.typescriptlang.org/play/#code/CYUwxgNghgTiAEYD2A7AzgF3kgRgKwC54oUBPAbgChl0kIQA6CJAcwAoADAEgG8ApAMoB5AHINMMAJYoWkgGak2uPAEoANPACuKUHOkhgGgEwBfDiqpA

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
#10814
Repository: pytorch
Issue: [JIT] Script doesn't preserve builtin torch named tuples upon python return
Labels: oncall: jit,triaged,jit-backlog

## 🐛 Bug

Torch returns a named tuple for any builtin operator with named returns:

`print(torch.randn(20).topk(1))`
> torch.return_types.topk(
values=tensor([1.0051]),
indices=tensor([3]))

Script preserves this information within script, but loses it when the object is converted back to python.

```
def top_k():
    tensor = torch.randn(20)
    out = tensor.topk(5)
    if False:
        print(out.indices)
    return out

script_top_k = torch.jit.script(top_k)
print(script_top_k().indices)
```
> AttributeError: 'tuple' object has no attribute 'indices'


cc @suo
Repository: opencv
Issue: calibrateCamera with CALIB_FIX_ASPECT_RATIO + CALIB_RATIONAL_MODEL yields zero distortion coefficients
Labels: category: calib3d,incomplete,needs reproducer

##### System information (version)
- Python => 3.6.8
- OpenCV => 4.0.1 (Anaconda package build version: py36hce2de41_201)
- Operating System / Platform => Windows and Linux (RHEL) 64 Bit
- Compiler => Visual Studio 2015 and g++ 8.2.0

##### Detailed description

When I call function `calibrateCamera` with the `flags` argument equal to `cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL`, I get all distortion coefficients equal to zero. When calling the function, I pass an array of shape (8, 1) full of zeros.

I also noticed that the following cases do *not* yield distortion coefficients equal to zero after the optimization finishes (properly sized  arrays are passed in each):

- `flags = cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL + cv2.CALIB_THIN_PRISM_MODEL`
- `flags = cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL + cv2.CALIB_THIN_PRISM_MODEL + cv2.CALIB_TILTED_MODEL`

##### Steps to reproduce

Unfortunately, I cannot share the data or the code. But I'm wondering if others also experience this issue. I also initialize the camera matrix elements [0, 0] and [1, 1] to the value 1. All other arguments take on their default values.
Repository: godot
Issue: Server binary max fps steady at 144
Labels: enhancement,topic:core,topic:porting,confirmed

**Godot version:**
3.1.1 April 27, 2019

**OS/device including version:**
Linux vps227684 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux
Its a [OVH VPS Cloud 1](https://www.ovh.com/world/en/vps/vps-cloud.xml) with a 3GHz vCore

**Issue description:**
I got a project that is a `Node` with a `Node2D` as a child, both empty. A singleton that pools a `NetworkedMultiplayerEnet` on `_process()`.

I uploaded the project to the VPS and ran it. Out of curiosity went to check the FPS using `print(Engine.get_frames_per_second())` every 1 sec using a `Timer` and just got a steady 123 FPS.

Now, if I run the project on my very old and crappy laptop (Celeron 847 @ 1.10GHz) the project runs at ~200 and even spiking to 300 FPS. Tried setting the project to run at fullscreen and also disabling vsync. Also wrote this as to try to force all of it but still doesnt work:

```
OS.low_processor_usage_mode = false
OS.set_use_vsync(false)
ProjectSettings.set_setting("display/window/vsync/use_vsync", false)
```

So I'm thinking it has something to do with the server binary. I'm sorry I'm not of more use.
Repository: youtube-dl
Issue: borderreport.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 2019.09.28. 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 **2019.09.28**
- [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.borderreport.com/top-stories/border-ranchers-say-barbed-wire-fence-helps-separate-their-property-from-mexico-but-at-a-cost/
- Single video: https://www.borderreport.com/border-report-tour/nogales-residents-empathize-with-migrants-but-favor-legal-entry/
- Playlist: https://www.borderreport.com/hot-topics/the-border-wall/

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Website contains news videos covering present day American-Mexican border issues.

youtube-dl reports "ERROR: Unsupported URL"
Repository: pytorch
Issue: Missing bin and include when building with torchvision on CentOS
Labels: module: build,module: cpp,triaged,module: vision

## Bug

When I build wheel for pytorch+torchvision on CentOS 7, I got 2 errors:
1. Cannot find `#include <torch/all.h>`.
2. Cannot find `/usr/local/lib64/python3.6/site-packages/torch/bin/torch_shm_manager`.

Based on the command line args printed out in the pip message, it's has `-I/usr/local/lib64/python3.6/site-packages/torch/include`.
However the entire dir `.../torch/include/torch` is missing, and I only found a `.../torch/include/pybind` there.
Similarly the `.../torch/bin` is also missing.

The temporarily workaround for me is to copy over `/usr/local/include/torch` and `/usr/local/bin/torch_shm_manager` which were created by a standalone cmake installation.

I also tried the same setup on Ubuntu 18.04.
Both `include` and `bin` are created correctly there.

These error seem to be a join issue between both pytorch&vision repos so I simply post it here.

## Environment

 - PyTorch Version (e.g., 1.0): master
 - OS (e.g., Linux): CentOS 7.7 / Ubuntu 18.04
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Build command you used (if compiling from source): cmake+ninja => pip install from local git.
 - Python version: 3.6


cc @yf225