sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: setWindowProperty will not put window into fullscreen mode unless window property set to WINDOW_NORMAL
Labels: category: highgui-gui,category: documentation

##### System information (version)
- OpenCV => 3.1
- Operating System / Platform => Linux Ubuntu 16.04
- Compiler => gcc

##### Detailed description

On GTK, calling `cv::setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN)` will only enforce the window to go fullscreen *if* the current property value on that window is `WINDOW_NORMAL`). This is can also be observed in the highgui GTK source code [here](https://github.com/opencv/opencv/blob/9e6ef99422d5594dff5f30e4b6f1c695e78ce67e/modules/highgui/src/window_gtk.cpp#L744).

I discovered this after trying to force a window to fullscreen with `setWindowProperty`, since `cv::namedWindow(name, WINDOW_FULLSCREEN)` was not making a fullscreen window.

##### Steps to reproduce

The following lines will not produce a fullscreen window:
```.cpp
namedWindow(name, WINDOW_FULLSCREEN);
setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN);
imshow(name, frame);
```

The following lines *will* produce the desired fullscreen result:
```.cpp
namedWindow(name, WINDOW_NORMAL);
setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN);
imshow(name, frame);
```
Repository: vue
Issue: Required inputs in child components are highlighted as invalid on render in Firefox.
Labels: browser quirks

### Version
2.5.13

### Reproduction link
[https://jsfiddle.net/50wL7mdz/85928/](https://jsfiddle.net/50wL7mdz/85928/)

### Steps to reproduce
No additional steps required. Opening the JSFiddle in Firefox should automatically cause the issue to display.

### What is expected?
Required inputs that are rendered in a child component without a valid default value should display normally.

### What is actually happening?
Unselected required inputs are being highlighted as though a submit attempt was made despite no user action being taken.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: kubernetes
Issue: Remove direct write access to this repo
Labels: priority/backlog,kind/cleanup,sig/contributor-experience,lifecycle/frozen

EDIT: updated as of 2019-07-19

We now have sufficient automation in place to address most if not all of the use cases that would require direct write access to this repo:
- https://prow.k8s.io/tide: we allow people without direct write access to merge via /lgtm, /approve, and OWNERS files
- https://go.k8s.io/bot-commands: we allow people who are org members to assign, triage, and manage issues and their labels via /commands

The following teams have read access.  I would like to remove these from the repo, they are effectively no-ops. You need to be an org member to join a team, and everyone in the org can read this repo.
- ~@kubernetes/goog-gke~ - Read access removed
- ~@kubernetes/kubernetes-reviewers~ - team deleted
- ~@kubernetes/api-reviewers~ - Read access removed
- ~@kubernetes/api-approvers~ - Read access removed

The following teams have write access:
- @kubernetes/kubernetes-maintainers - I would like to drastically reduce membership 
- ~@kubernetes/bots~ - Access has been removed
- ~@kubernetes/kubernetes-pm~ - Team deprecated and removed

The following teams have admin access
- @kubernetes/kubernetes-admins
- @kubernetes/kubernetes-release-managers - I would like to reduce membership of this team to _active_ release and patch release managers
- ~@kubernetes/kubernetes-build-cops~ - Team deprecated and removed
- @kubernetes/steering-committee

What use cases must be implemented before we can kick (mostly) everybody out?

Summarizing from kubernetes/contrib#1908 and below, here is what has been addressed:
- ~component/foo labels~ - there are no `component/foo` labels in this repo
- ~team/foo labels?~ - there are no `team/foo` labels anymore
- ~add/remove milestones to issues/PR's~ - we now have `/milestone` commands
- ~wiki~ - we disabled the wiki (https://github.com/kubernetes/kubernetes/issues/57689)
- ~edited issue/PR titles~ - we now have a `/retitle` command (https://github.com/kubernetes/test-infra/pull/12945)

Here is what's left:
- editing other people's issues/PR's (descriptions)
  - it's been a while since we've checked in on whether this is still a common practice; I suspect this is mostly in service of editing release notes
  - improving our release note process or automation could obviate the need for some of this
- creating/editing milestones
  - we lack automation to do this, at this point I am unconvinced this is a blocker
Repository: go
Issue: net/http: Request not cancelled when body is not read
Labels: Thinking,help wanted

### What version of Go are you using (`go version`)?

go version go1.9.2 darwin/amd64

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

GOARCH="amd64"
GOBIN="/Users/sheerun/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sheerun/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/22/xz6_9gpx3jggts_8j68_25g80000gn/T/go-build547040878=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

### What did you do?

I wanted proper go-lang server that detects when request is cancelled:

```go
package main

import (
	"fmt"
	"net/http"
	"time"
)

func Handler(w http.ResponseWriter, req *http.Request) {
	go func() {
		<-req.Context().Done()
		fmt.Println("done")
	}()

	time.Sleep(10 * time.Second)
}

func main() {
	http.ListenAndServe(":8080", http.HandlerFunc(Handler))
}
```

### What did you expect to see?

Request is immediately cancelled for following calls:

```
curl http://localhost:8080/hello # then Ctrl+C
curl http://localhost:8080/hello -X POST -d 'asdfa' # then Ctrl+C
curl http://localhost:8080/hello -X PUT  -d 'foobar' # then Ctrl+C
```

### What did you see instead?

Request is not cancelled for POST and PUT with body.

Side note: when POST of PUT is sent without body, the request is cancelled immediately as expected

```
curl http://localhost:8080/hello -X POST  # then Ctrl+C
curl http://localhost:8080/hello -X PUT # then Ctrl+C
```
Repository: TypeScript
Issue: strictPropertyInitialization with subclasses that refine the types of properties
Labels: Suggestion,In Discussion

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  2.7.0-dev.20171226

**Code**

```ts
class A {
  x: {y: string} = {y: 'y'};
}

class B extends A {
  x: {y: string, z?: number};
}
```

**Expected behavior:**
I expected this not to warn because `A#x` is assignable to `B#x`.

**Actual behavior:**

> index.ts(6,3): error TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor.
Repository: opencv
Issue: Incorrect work with border cornerHarris and cornerMinEigenVal
Labels: bug,category: imgproc

##### System information (version)
- OpenCV => 3.3.1
- Operating System / Platform => Ubuntu 16.04
- Compiler => gcc version 5.4.0

##### Detailed description

Function `cornerHarris` and `cornerMinEigenVal` works with border incorrect. Еspecially, it can be demonstrated on submat. At first, this algorithm call `Sobel`, and borders are interpolated as usual. So we have covariation matrix with size `src.width * src.height`. After that, used `boxFilter`, and borders interpolated one more time. But in submat case, we could calculete `Sobel` for border pixels and use it in Box. So in OpenCV case, if you separate matrix for submats, and calculates cornerHarris for full mat and submats, you will have different result for pixel on submats borders.
Repository: angular
Issue: Provide extension points in order to add custom behavior to the service worker file generated by the angular cli.
Labels: feature,area: service-worker,feature: under consideration

<!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.

ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->

## I'm submitting a...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[x] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>

## Current behavior
<!-- Describe how the issue manifests. -->
As of now, I can either register the angular-generated service worker (i.e. `/ngsw-worker.js`) or register my own custom service worker (see documentation: https://angular.io/api/service-worker/ServiceWorkerModule#static-members)

## Expected behavior
<!-- Describe what the desired behavior would be. -->
One should be able to add custom behavior to angular-generated service workers (i.e. `/ngsw-worker.js`). For instance what if I want to add business logic to the service worker. It would be nice to provide extension points in order to achieve this and document them.

##
_**EDIT** (gkalpak): Other related issues/issues that could be fixed by this: #24387, #26413, #30195, #46984_
Repository: flutter
Issue: API doc clarification request: if a key is not provided for a widget, what is default key?
Labels: framework,d: api docs,has reproducible steps,P2,found in release: 3.3,found in release: 3.5,team-framework,triaged-framework

Trying to learn about keys, and I found https://docs.flutter.io/flutter/foundation/Key-class.html

One of my initial questions was: "what is the "default" key?" and "if I don't provide a key, what's the default?"

I also checked https://docs.flutter.io/flutter/widgets/Widget/key.html and didn't find an obvious answer.
Repository: opencv
Issue: Build for OSX fails
Labels: category: build/install,platform: ios/osx,incomplete

Hi, the build_framework for osx is out of date as you stated earlier. Is there any workaround that you know of that can help me build OSX stuff without Cuda or perhaps another module?

The issue is that running the script that generates the OpenCV3.4 framework for use on OSX is not working, in case others reading are wondering.
Repository: pytorch
Issue: Cache CuDNN benchmark selection, turn it on by default, use it across PyTorch runs
Labels: module: cudnn,triaged

CuDNN benchmark mode can have some beefy speed increases for our cuDNN users, but we don't turn it on by default because the benchmarking process takes a long time. One possibility to alleviate this so that we can turn it on by default is to cache the benchmark selection (keyed on PyTorch version, cuDNN version, device ID, and all of the input parameters) in, say, `$HOME/.pytorch`, and then reuse benchmark information on subsequent runs.

The primary hazard is the introduction of state, so it's very important to not accidentally state-dependence (which will lead to hard to debug performance regressions and problems.)

Related: https://github.com/pytorch/pytorch/issues/3667

cc @csarofeen @ptrblck
Repository: go
Issue: cmd/gofmt: -r 'bar(x) -> bar(x)' mistakenly replaces a comment with a newline in closures inside function
Labels: NeedsFix

### What version of Go are you using (`go version`)?
go version go1.9.2 linux/amd64

### What did you do?

`$ gofmt -r 'bar(x) -> bar(x)' /tmp/test.go`

/tmp/test.go is:
```
package main

func main() {
    // Call foo().
    foo()
    bar(func() {
        // Call foo().
        foo()
    })
}
```

### What did you expect to see?
Same contents

### What did you see instead?

```
package main

func main() {
        // Call foo().
        foo()
        bar(func() {

                foo()
        })

}
```
Notice the comment in the closure passed to bar was replaced with an empty line, and an empty line was added after the call to bar.

The identity rewrite rule is for simplicity, this happens with more useful rewrites that act on bar too.
Repository: go
Issue: cmd/link: nicer error when trying to link an invalid .syso file built on another OS
Labels: NeedsFix,compiler/runtime

### What version of Go are you using (`go version`)?
```
go version go1.9.2 linux/amd64
```

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?
```
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/litarvan/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build281376345=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
```

### What did you do?
I did, on linux, `go build .` on a project firstly created on Windows, containing a `main.go` file but also a `resource.syso` file generated with winres, that contains my icon file for the windows executable. The build was from linux this time, targeting linux, so i didn't pay attention to the .syso file.

### What did you expect to see?
A working build

### What did you see instead?

`go build .` dropped this error : 
```
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/tmp/go-link-918954239/000000.o: file not recognized: File format not recognized
collect2: error: ld returned exit status 1
```

It took me like 1 hour to think that `go build` was trying to include the .syso file even when i was on linux, and was crashing the build because of this, i didn't really pay attention to the command as it was issued by a script.

go build should ignore .syso file on systems other than windows, or (i don't know if .syso is a windows-only extension) display a more readable error
Repository: pytorch
Issue: Installation Optimise For Chinese Users Who Behind the Wall
Labels: module: docs,triaged

As you know, we are just can not access all Google etc access behind the f*k great wall. The pytorch.org wesite can not load properly when click pip and cuda chips. Just not responding,  I think the site using some access which block in China. Just for suggestion, write more install command in Github README.md or anywhere else.

cc @jlin27
Repository: pytorch
Issue: DistributedDataParallel doesn't converge well when using MPI
Labels: oncall: distributed,triaged

## Originally posted by @alsrgv:

I got Gloo working with 4 nodes with 4 GPUs each, but it fails on 32 nodes.  I tried MPI backend with `DistributedDataParallel` and found that it doesn't converge very well.

I scaled back experiment to 4 nodes with 4 GPUs each and observed that MPI backend with `DistributedDataParallel` indeed converges much worse with the same batch size & lr.  On the chart below, gray line is Gloo and green line is MPI. 

<img width="714" alt="screen shot 2017-12-27 at 4 03 34 pm" src="https://user-images.githubusercontent.com/16640218/34396423-934bfc4e-eb1f-11e7-8fca-8bd3a9ed8b33.png">

I was finally able to run large-scale experiment with doing a simple gradient averaging instead of using `DistributedDataParallel` functionality:

```
def average_gradients(model):
    size = float(dist.get_world_size())
    for param in model.parameters():
        dist.all_reduce(param.grad.data, op=dist.reduce_op.SUM)
        param.grad.data /= size
```

I did two more runs - one with `DataParallel` and one worker per machine (blue line), and another is with one worker per GPU (orange line).

<img width="707" alt="screen shot 2017-12-27 at 4 21 27 pm" src="https://user-images.githubusercontent.com/16640218/34396602-059783b6-eb22-11e7-9ba1-079bcbbe5a04.png">

Unfortunately, it's slow.  Any idea how to make `DistributedDataParallel` work correctly with MPI?

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jiayisuse @agolynski
Repository: create-react-app
Issue: Add WebWorker Support
Labels: issue: proposal

Add ability to load WebWorkers (and SharedWorkers?) via the react-scripts. My use-case is for using latency (and debug) sensitive protocols over WebSocket which may get dumped by the server if no activity occurs.

There has been a lot of discussion regarding this on #1277 but no definitive answer and now closed. Also, I'm a server-side dev so JavaScript PR is not my forte, and neither is ejecting the scripts as that looks scary.
Repository: opencv
Issue: Inconsistent return type from CascadeClassifier.detectMultiScale in Python
Labels: category: python bindings,category: objdetect

##### System information (version)

- OpenCV =>  3.3.1
- Operating System / Platform => Windows 10 64 Bit
- Compiler =>Python 3.6.3

##### Detailed description

in CascadeClassifier.detectMultiScale, I expected the library to return an empty ndarray when there is no detection.
The library returns a single empty tuple when there is NO detection, and a numpy.ndarray when there are detections.
Repository: react
Issue: Consider a more specific warning for key={undefined}
Labels: Type: Enhancement,Component: Core Utilities,React Core Team

Proposed in [this comment](https://dev.to/k1sul1/comment/1o68):

>I had changed the casing of "ID" in the response, but forgot to commit it aaaaaand I ended up with it happening.

>Basically I was doing key={undefined}. Could React warn user when this happens, something like "Looks like you tried to supply a key, but the value supplied is undefined. Check the render..." and so on?

I think it might make sense to give a more specific warning in this case. Open to suggestions about specific wording and in which case it would be used.
Repository: ant-design
Issue: Expand all header
Labels: 🗣 Discussion,💡 Feature Request,Inactive,IssueHuntFest

### What problem does this feature solve?
It feels natural to have an expand all button alongside with `onExpandAll` property, the same way it's done for selection column. It can be achieved using existing api, but UI would be much cleaner with header button.

 And perhaps it makes sense to group expandable options too. (see proposal api).

p.s. Thanks for the amazing product!

### What does the proposed API look like?
```
<Table
        ...
        rowExpansion={{
          expandedRowKeys: <...>,
          expandedRowRender: <...>,
         ...


          onExpandAll: <..>,
        }}
/>
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Difference in trait object default bounds for early/late bound lifetimes
Labels: A-lifetimes,C-bug,T-types,A-trait-objects

It looks like early- and late-bound lifetimes behave differently in default object bounds:

```rust
trait A<'a>: 'a {}

pub fn foo<'a>(x: Box<A<'a>>) -> Box<A<'a> + 'static> // Infers 'static
{
    x
}
pub fn bar<'a>(x: Box<A<'a> + 'a>) -> Box<A<'a>> // Infers 'a
where 'a: 'a
{
    x
}
```
Repository: flutter
Issue: Building on Ubuntu Xenial requires installing gcc-multilib and g++-multilib
Labels: team,engine,platform-linux,P3,team-engine,triaged-engine

...and uninstalling `g*-arm-linux-gnueabihf` which got installed by our tools.

At least, that seems to have been the problem. I haven't tried to figure out exactly what part of `install-build-deps.sh` needs updating, since I'm not super familiar with the relevant packages and their interdependencies.
Repository: flutter
Issue: Need more error handling to handle connecting to an Android device that hasn't authorized the host
Labels: platform-android,tool,a: first hour,P2,team-android,triaged-android

```
ianh@burmese:~$ flutter devices
1 connected device:

Error retrieving device properties for ro.product.cpu.abi:
error: insufficient permissions for device

???????????? • ???????????? • android-arm • Android null (API null)
ianh@burmese:~$ 
```
Repository: vscode
Issue: Suggestion: Use RegEx classes in "editor.wordSeparators" settings
Labels: feature-request,editor-core

It looks like the settings string for "editor.wordSeparators" contains (almost) any punctuation character.

Wouldn't it make more sense to introduce the ability to utilize [regular expression character classes](https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions) for this purpose?
Repository: opencv
Issue: does cuda::cvtColor support the format of 'cv::COLOR_YUV2BGR_NV21'?
Labels: feature,priority: low,category: gpu/cuda (contrib)

the following code will give an error:

cv::cuda::cvtColor(g_src, g_dst, cv::COLOR_YUV2BGR_NV21);