sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/compile: thread support for webassembly
Labels: NeedsDecision,FeatureRequest,arch-wasm,compiler/runtime

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.11.1 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sion/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sion/go1.X"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/6z/bfzgs4bs75bdjmr9c7dggct40000gn/T/go-build090156779=/tmp/go-build -gno-record-gcc-switches -fno-common"

</pre></details>

### What did you do?

It is very nice to use goroutine browsers, [WebAssembly Threads ready to try in Chrome 70](https://developers.google.com/web/updates/2018/10/wasm-threads). I found no related issues here, so i just add this issue. 
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->



### What did you expect to see?

Thread feature supported in xx.wasm.


### What did you see instead?

Not supported in chromium 72.
Repository: rust
Issue: There's no good way to iterate over all newlines with BufRead
Labels: T-libs-api,A-str,A-io

If you have files with a newline of '\r', the only way to handle them is to use split. But if you have files with a newline of '\n' or '\r\n', then you can use lines().

This is counterintuitive and problematic from the perspective of the BufRead interface - there's no way to use it to iterate over any of the three types. I'd typically expect that lines() would handle this transparently.

I'm not sure if this is the right place, but I don't want it to get lost because it cost me major hassle.
Repository: opencv
Issue: cvtColor for BGR to YUV 4:2:0 returns darker image
Labels: category: imgproc,RFC

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)

- OpenCV => 3.1
- Operating System / Platform => Ubuntu 16.04 64 bit
- Compiler => gcc version 5.4.0

##### Detailed description

The grayscale image  that comes from cvtColor function with COLOR_BGR2YUV_I420 (or COLOR_BGR2YUV_IYUV), which converts RGB to YUV 4:2:0 family, is darker than the grayscale image that comes from COLOR_BGR2GRAY. I think in theory they should be the same because the Y channel is actually the grayscale image. Here is a simple code that I used for testing:



##### Steps to reproduce


```
    cv::Mat inputImage=cv::imread("Lenna.png");
    cv::Mat gray_BGR2GRAY;
    cv::cvtColor(inputImage, gray_BGR2GRAY, cv::COLOR_BGR2GRAY);
    imshow("gray_BGR2GRAY", gray_BGR2GRAY);
    cv::Mat mat_BGR2YUV_I420;
    cv::cvtColor(inputImage, mat_BGR2YUV_I420, cv::COLOR_BGR2YUV_I420);
    cv::Mat grayPart_BGR2YUV_I420(mat_BGR2YUV_I420, cv::Rect(0, 0, inputImage.cols, inputImage.rows));
    imshow("grayPart_BGR2YUV_I420", grayPart_BGR2YUV_I420);
    cv::waitKey(0);
```

for reading the grayscale part I used the answer to the following question:
http://answers.opencv.org/question/100149/how-to-get-y-u-v-from-image/
Repository: pytorch
Issue: Caffe2 install
Labels: caffe2

i'm trying to install Caffes2 by the following commands:
##########
brew install \
    automake \
    cmake \
    git \
    gflags \
    glog \
    python

pip install --user \
    future \
    numpy \
    protobuf \
    pyyaml \
    six

git clone https://github.com/pytorch/pytorch.git && cd pytorch
git submodule update --init --recursive
python setup.py install
########
but I get an error when running"python setup.py install":
########
Building wheel torch-1.0.0a0+a132a7d
running install
setup.py::run()
running build_deps
setup.py::build_deps::run()
Traceback (most recent call last):
  File "setup.py", line 1244, in <module>
    rel_site_packages + '/caffe2/**/*.py'
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 724, in run
    self.run_command('build_deps')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 465, in run
    check_pydep('yaml', 'pyyaml')
  File "setup.py", line 346, in check_pydep
    raise RuntimeError(missing_pydep.format(importname=importname, module=module))
RuntimeError: Missing build dependency: Unable to `import yaml`.
Please install it via `conda install pyyaml` or `pip install pyyaml`
########
then, I tried "pip install pyyaml":
Requirement already satisfied: pyyaml in /Users/Winnie/Library/Python/3.7/lib/python/site-packages (3.13)
########
can any one tell me what happened?

OS X El Capitan
python 2.7.10
Repository: vue
Issue: Throw error when using interpolation instead of JS expression for slot names
Labels: feature request,good first issue,has PR

### What problem does this feature solve?
For this demo:

[https://jsfiddle.net/2os9jken/](https://jsfiddle.net/2os9jken/)

opening the console and running it throws the `Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead.` error for the `span`, but it should also throw it for the `slot`, as it has the exact same issue for its `name` attribute.

### What does the proposed API look like?
N/A

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: TypeScript
Issue: parameter property's modifier may not be followed by newline
Labels: Bug



<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  has been that way since at least 2.4

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
class Foo {
  constructor(public
    foo: string) {}
}
```

**Expected behavior:**

Treat is as a parameter property. Or at least document this in the spec (related #28395)

**Actual behavior:**

Treats it as two parameters with a syntax error because of a missing comma.

**Playground Link:** https://agentcooper.github.io/typescript-play/#code/MYGwhgzhAEBiD29oG8BQ1rHgOwgFwCcBXYPeAgCgAciAjEAS2HQ2gDNEAuafAh7AOYBKFAF9UooA

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: godot
Issue: Add "hover" and "pressed" styles to Slider theme options
Labels: enhancement,topic:gui

The HSlider theme class currently offers the following options:

![image](https://user-images.githubusercontent.com/180032/48132348-838e2180-e293-11e8-9a03-cbb5b7321342.png)

From what I've seen, there is no way to make the Slider StyleBox look different when hovered or pressed, which limits customization possibilities. For those wondering, it's used to represent the "filled" area of the slider (shown in orange below):

![image](https://user-images.githubusercontent.com/180032/48132406-b6d0b080-e293-11e8-8fbd-593438a412de.png)
Repository: pytorch
Issue: [caffe2] Modify models in model zoo
Labels: caffe2

I'd like to load the imagenet resnet50 in model zoo and make a change on it. But I can not find any documents or examples of how to do that. A related issues is [https://github.com/pytorch/pytorch/issues/7614](url), but no answers for that yet.
To be specific, I'd like to skip the final fc operator in the original resnet. I can think of two possible ways:

1) Change the pbtxt model file and load the modified model.
As the pbtxt model file is a text file, I can edit it directly. But I can not find how to convert the modified pbtxt file to a pb model file. Another possible way is to load model from the pbtxt file directly, but again I don't find document about that.
2) Load the original model and edit the mode in memory.
This may require APIs to change the model structure of a loaded model.

Does anyone know how to do that?
Repository: vscode
Issue: Exclude gitignored files from file watcher
Labels: feature-request,file-watcher

I would like an option to disable watching of gitgnored files (i.e. add them to the `files.watcherExclude` option automatically).

I think this makes sense, at least I couldn't think of a use case for watching gitignored files. It might also help with [autorefresh related issues](https://github.com/Microsoft/vscode/issues/42821#issuecomment-436627837) and could make the `files.watcherExclude` option thinner.
Repository: pytorch
Issue: Caffe2 Build Static
Labels: caffe2

Is it possible to build caffe2 as static library? 
I was trying to add flag STATIC, but it seems a lot of problems with install
Repository: rust
Issue: 2018 idioms: incorrect suggestion for root module and crate of same name
Labels: A-lints,E-needs-test,A-suggestion-diagnostics,A-edition-2018

First reported at https://github.com/rust-lang/cargo/issues/6273

this code:

```rust
#![warn(rust_2018_idioms)]

extern crate time as std_time;

pub mod time {
    pub fn f() {
        println!("{:?}", crate::std_time::now());
    }
}

fn main() {}
```

[when compiled](https://play.rust-lang.org/?version=beta&mode=debug&edition=2018&gist=b3d0b4244408b208f6dc9ad9b60f7fa5) gives a warning that, when applied, produces code that doesn't compile
Repository: vue
Issue: Conditional template not rendering when it has the same slot name
Labels: has workaround

### Version
2.5.17

### Reproduction link
[https://jsfiddle.net/ad17bgtq](https://jsfiddle.net/ad17bgtq)





### Steps to reproduce
1. Create a component that has a named slot exposing a boolean flag in its scope
2. Consume the component with two templates inside it, each with a v-if using the exposed boolean flag
3. Only the last template written in the order of code is rendered

### What is expected?
All templates using the same slot name should render when their v-if evaluates true.

### What is actually happening?
Only the last template written in the code order is rendered. Any other template with the same slot name will not render even if its v-if permits it.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: go
Issue: cmd/compile: reduce generated algs for compiler created array types
Labels: Performance,NeedsInvestigation,compiler/runtime

There are alot of types algs that seem to be generated due to slicelit initializations:

example from go binary:
```
TEXT type..hash.[11]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[12]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[186]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[20]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[28]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[2]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[3]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[41]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[5]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[6]debug/elf.intName(SB) <autogenerated>
TEXT type..hash.[9]debug/elf.intName(SB) <autogenerated>
```

There are a few other places were the compiler constructs an array type (e.g. non escaping small slice) where algs are likely not needed.

We should vet the compiler for compiler created types (sinit.go, walk.go) that dont need algs and do a SetNoalg where algs are not needed. 

Some overzealous application of SetNoalg on new array types in gc seems to remove the above examples and saves ~45kbyte from the go binary. This might be an upper bound because maybe for some cases we will need them.

I have some other ideas/cls to improve algs (or remove them) for go1.13 so happy to work on this.

@josharian @randall77
Repository: TypeScript
Issue: Suggestion and codefix to add missing cases to switch
Labels: Suggestion,In Discussion,Domain: Quick Fixes

**TypeScript Version:** 3.2.0-dev.20181106

**Code**

```ts
enum E { A, B, C }
function f(x: E) {
    switch (x) {
        case E.A: return "a";
        case E.C: return "c";
    }
}
```

**Expected behavior:**

Suggestion on `x` recommending to add a case `case E.B:`, and a codefix which does that (perhaps by adding `case E.B: throw new Error("todo");`).

**Actual behavior:**

No suggestion.
Repository: rust
Issue: Investigate & fix compiler options that print to stdout
Labels: C-enhancement,T-compiler

Compiler options that print to stdout instead of stderr will break Rustbuild if they are enabled during a bootstrap (see #43855).

We should audit `rustc` for options which print to stdout and change them to print to stderr instead.

As @eddyb [points out](https://github.com/rust-lang/rust/pull/55495#issuecomment-436634290) we should also investigate any `*.stdout` files in the `src/test` directory.
Repository: vscode
Issue: Add a command to put OS / VS Code info into clipboard
Labels: feature-request,workbench-diagnostics,issue-reporter

A lot of times I want to open issues directly on GitHub. Now if I want to provide VS Code's info, I need to launch the issue helper, fill in title / body, open GitHub link, copy the info from there.

I would want a command to directly get those informations into the clipboard.
Repository: pytorch
Issue: [caffe2] Adding CUDA operators for generate proposals and NMS layers
Labels: caffe2

## 🚀 Feature
Adding CUDA version for the operator generate proposals + CUDA version of the NMS utils.

## Motivation
Both CUDA layers have been implemented and show significant speed up against their CPU version.  

## Pitch
For a Mask-R-CNN network, we see a ~25% end-to-end speed up on training against the same network using the CPU version of those layers. We see an inference speed up of more than 5x. 

## Additional context
We've been working with FB engineers on this - The choice to work on those specifics layers + the benchmarking results are part of this work
Repository: vscode
Issue: Git - Provide task progress
Labels: feature-request,git

**Request**
It could be a nice feature to show the git progress details in the GIT output console or since Visual Studio even though is 'Code' has the characteristic to being 'Visual', polish the user interface with some indicator. 
In the following images there are some suggestions:
![progress 1](https://user-images.githubusercontent.com/8238828/48170162-9c7bee80-e2f6-11e8-830f-7c440c1ef7b2.png)
![progress2](https://user-images.githubusercontent.com/8238828/48170168-a30a6600-e2f6-11e8-807c-817580ac5e84.png)

**Use case**
It happen sometime that users have in their own repository some big amount files or maybe the connection slow down during the 'git push', users don't have any idea what is happening or what is the current operation state (it could take even plenty of minutes).
In the example I'have done, this is what is showed actually in VS Code:
![nothappen](https://user-images.githubusercontent.com/8238828/48170294-2b890680-e2f7-11e8-9737-4397bc03bb06.png)
And this is what it can be read from the git executable output:
![expected](https://user-images.githubusercontent.com/8238828/48170317-4c515c00-e2f7-11e8-9903-c5816dcc2084.png)

**Advantages**
Users that have this kind of experience can think that the git integration (that is already amazing in VS Code) is not working very good because the operations appears 'blocked'. So they give up and jump on the CLI for the daily usage of git. With some nice improvements like I showed they wouldn't do it.

**Technical inspection**
I inspected the main source code file about the default GIT extension:
[https://github.com/Microsoft/vscode/blob/master/extensions/git/src/git.ts](https://github.com/Microsoft/vscode/blob/master/extensions/git/src/git.ts)
A nice implementation could be extract more information on the 'git commands output' parsing, ex. Operation 'N' of 'M' and 'Percentage', expose it and use on higher layer of Visual Studio Code.

Waiting for a your feedback.

Thank you.
Repository: go
Issue: net: only js/wasm returns an error on writes to closed connections
Labels: NeedsInvestigation,arch-wasm,OS-JS

If a localhost connection is closed by the peer, all other GOOS seem to allow writes to happen without error, while js/wasm returns `write tcp 127.0.0.1:XXX->127.0.0.1:1: Socket is not connected` with XXX changing.

I admit it does feel like something that should return an error, and I don't know if there is a precise requirement to do otherwise, but js being the only GOOS to do it is very inconsistent, and not even NaCl on the playground with its fictitious network returns an error.

This came up because js/wasm were the only broken TryBots in some crypto/tls CL: https://storage.googleapis.com/go-build-log/ca02321c/js-wasm_d63aa3d8.log

https://play.golang.org/p/lRhq44NJXTr (this specific program will actually panic on js/wasm due to #28649, but it proves the `log.Print` is being reached)

/cc @neelance
Repository: scrcpy
Issue: Media Control Shortcuts
Labels: feature request

I think a useful addition would be to support Play/Pause, Next and Previous key support.

When connecting a USB or Bluetooth keyboard with media keys to a phone the buttons work as expected, but they don't seem to be passed through to the device when using scrcpy.

I'm not sure if it makes more sense to have a separate shortcut or to actually listen to the media keys themselves.
Repository: go
Issue: cmd/go: go test -cover doesn't collect the coverage of a second call to m.Run
Labels: help wanted,NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go1.10.3 darwin/amd64

</pre>

### Does this issue reproduce with the latest release?



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/wangheng/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/wangheng/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
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"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qf/_x6np3lx7qb9sn_0ymk53fqr0000gn/T/go-build681943823=/tmp/go-build -gno-record-gcc-switches -fno-common"

</pre></details>

### What did you do?
I wrote a very simple code to describe the issue. Please see the go files I attached. It seems 'golang cover' only counted the first main thread coverage and cast the coverage of second m.Run() away.
➜  first go test -cover
PASS
coverage: 0.0% of statements
PASS
ok  	go/test/first	0.013s
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->



### What did you expect to see?



### What did you see instead?
Repository: flutter
Issue: Allow SliverAppBar to have other slivers laid out below it
Labels: c: new feature,framework,f: material design,f: scrolling,P3,team-design,triaged-design

AppBar has a `floating` property and `pinned` property.  Currently when both of these are set to true, and the AppBar is made transparent, the AppBar still pushes content below it (in the y-axis), leaving an empty box beneath the AppBar (in the z-axis).

Either, the behavior of setting `floating` and `pinned` to `true`, when combined with transparency, should cause content to expand up and beneath the AppBar, or we need to implement this behavior with a flag because developers need it.
Repository: opencv
Issue: cvTriangulatePoints() supports only two-view triangulation
Labels: priority: low

**Feature request** to add multi-view triangulation (more than 2 views) to `cvTriangulatePoints()`.
Repository: pytorch
Issue: depthwise convolution are slow on cpu 
Labels: module: performance,module: cpu,module: convolution,triaged

I try to use depthwise convolution to reduce parameters of my model. However I found depthwise convolutions are slow on cpu, just 4x~5x than normal 3x3 convolution, while input_channel and output channel are 256. Is there any way to speed up the process? My version is pytorch 0.4.1.



cc @VitalyFedyunin @ngimel
Repository: go
Issue: x/build/cmd/gopherbot: add command to ping owners of the package
Labels: Builders,FeatureRequest

It would be good to ping owners of the package in the ticket without remembering who is the owner of it. What if one could say:
```
@gopherbot please ping owners 
@gopherbot please ping owners to critique the solution
```

And then gopher would produce something like:
```
@name has asked @firstowner @secondowner to review this issue
@name has asked @firstowner @secondowner to critique the solution
```
Repository: react-native
Issue: SafeAreaView doesn't respect `padding` property in style
Labels: Component: SafeAreaView,Component: View,Bug,Needs: Repro

## Environment
```
React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
      Memory: 34.00 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 9.7.1 - ~/.nvm/versions/node/v9.7.1/bin/node
      Yarn: 1.2.1 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v9.7.1/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
      Android SDK:
        Build Tools: 21.1.2, 22.0.1, 23.0.1, 23.0.3, 25.0.0, 25.0.2, 26.0.1, 26.0.2, 27.0.1, 27.0.3, 28.0.2, 28.0.3
        API Levels: 17, 18, 19, 22, 23, 25, 26, 27, 28
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.0/10A254a - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0 => 16.6.0
      react-native: ^0.57.3 => 0.57.3
    npmGlobalPackages:
      react-native-cli: 2.0.1
```

## Description
Applying `padding` to SafeAreaView's style doesn't work.

## Reproducible Demo
https://snack.expo.io/@danielmartin/c2FmZW