sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: absolute-paths-not-starting-with-crate gives bad suggestion for string-based attribute path
Labels: A-lints,A-edition-2018

Running 
```
cargo fix --features "test" --all --edition
```

(Note that https://github.com/lalrpop/lalrpop/issues/426 forces some manual fixup to make generated files writeable)

on https://github.com/gluon-lang/gluon gives a lot of errors (`
cargo fix --features "test" -p gluon_base --edition` to only fix the first crate does not help either).

Errors seems to be mainly on the form

```
warning: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
  --> base\src\ast.rs:12:5
   |
12 | use metadata::{Comment, Metadata};
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::metadata::{Comment, Metadata}`
   |
   = note: `-W absolute-paths-not-starting-with-crate` implied by `-W rust-2018-compatibility`
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
   = note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
```

Output at https://gist.github.com/Marwes/6fbbd86ba442e8a6158c009d5d560dd0

```
rustc --version --verbose
rustc 1.32.0-nightly (14997d56a 2018-12-05)
binary: rustc
commit-hash: 14997d56a550f4aa99fe737593cd2758227afc56
commit-date: 2018-12-05
host: x86_64-pc-windows-msvc
release: 1.32.0-nightly
LLVM version: 8.0
```
Repository: opencv
Issue: RGB frames for video files with Alpha channel support
Labels: feature,category: videoio

<!--
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)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Ubuntu
- Compiler => gcc
-->

- OpenCV => 3.4
- Operating System / Platform => Ubuntu
- Compiler => gcc

##### Detailed description

When reading a `.mov` file with alpha channel support, the `cv::VideoCapture` returns a BGR frame instead of BGRA frame. The issue was highlighted in [this SO post](https://stackoverflow.com/q/53552698/3051961). Sample file is also attached.
[sample_mov_file_with_alpha.zip](https://github.com/opencv/opencv/files/2659641/out.zip)



##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

```cpp
int main() {
    cv::VideoCapture cap("/path/to/file.mov");

    cv::Mat m;
    while(true) {
        cap.read(m);

        if (m.empty()) {
            break;
        }

        std::cout << m.channels() << std::endl;
    }
}
```
Repository: pytorch
Issue: caffe2/predictor missing from libtorch
Labels: caffe2

## 🐛 Bug

I want to use the `caffe2::Predictor` API, but when I download `libtorch` from the website, even on the current stable (1.0) zip file, `libtorch/include/caffe2/predictor` folder is entirely missing.

## To Reproduce

Steps to reproduce the behavior:

1. Download `libtorch` from https://pytorch.org (Linux, CUDA 9.0)
2. Observe that `libtorch/include/caffe2` is missing `predictor` folder

## Environment

PyTorch version: 1.0.0 (pip installed)
Is debug build: No
CUDA used to build PyTorch: 9.0.176

OS: Ubuntu 16.04.5 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
CMake version: version 3.13.1

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: Tesla P100-PCIE-16GB
Nvidia driver version: 384.145
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.4.1
/usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a

Versions of relevant libraries:
[pip] Could not collect
[conda] Could not collect
Repository: godot
Issue: Overdraw viewport mode is not affected by vertex shader displacement
Labels: bug,topic:rendering,confirmed

Godot 3.0.6

Out of curiosity, I wanted to check what the overdraw viewport mode would look like with my terrain plugin.
![image](https://user-images.githubusercontent.com/1311555/49689716-0e756c80-fb1d-11e8-93a8-1c6631c68233.png)
But with overdraw mode:
![image](https://user-images.githubusercontent.com/1311555/49689718-1b925b80-fb1d-11e8-8104-20d5bb8fe59b.png)

Wireframe and unshaded modes work.
I think it is caused by the fact my terrain rendering is using vertex displacement in the vertex shader, overdraw mode ignores it...

Edit: in 3.2 I'm using it to debug Transvoxel geometry and it's unusable as well.
Repository: pytorch
Issue: caffe2::Predictor: Cannot find operator schema for GivenTensorFill. Will skip schema checking.
Labels: caffe2

## 🐛 Bug

Calling `new caffe2::Predictor(init_net, pred_net)` where each `net` is of type `caffe2::NetDef` (devicetype set to `caffe2::CUDA`) raises an error that says `Cannot find operator schema for GivenTensorFill. Will skip schema checking.`

-- EDIT --

I found a couple of other similar issues ([this](https://github.com/facebookresearch/Detectron/issues/171), [this](https://github.com/caffe2/caffe2/issues/347) and [this](https://github.com/caffe2/caffe2/issues/701))

In the last one, @peterneher says that `caffe2::Predictor` uses `TensorCPU` internally, so I checked and even on the latest libtorch (stable 1.0) this is true.

For now, I'll use raw nets as suggested, but supporting CUDA tensors would be great :)

## To Reproduce

Steps to reproduce the behavior:

This works on my macbook, but not on my linux system. The platform where the error is occurring will be stated below in the environment section. Briefly, it's Ubuntu 16.04 + CUDA 9.0 + cudnn 7.3.0. Maybe it has to do with the `libtorch` distribution for mac and for linux?

## Environment

PyTorch version: 1.0.0a0+db5d313
Is debug build: No
CUDA used to build PyTorch: 9.0.176

OS: Ubuntu 16.04.5 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
CMake version: version 3.13.1

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: Tesla P100-PCIE-16GB
Nvidia driver version: 384.145
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.3.0
/usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a

Versions of relevant libraries:
[pip] Could not collect
[conda] Could not collect
Repository: pytorch
Issue: [Feature request] create sparse coo matrix w/o index check
Labels: module: performance,module: sparse,triaged,enhancement

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
Currently, creating a sparse coo matrix requires checking all the provided indices are within bound. However, this is costly and sometimes not needed (e.g. when the sparse matrix is from a graph adj). Request to provide a way to create sparse coo matrix w/o index check.

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
The recent v1.0 update breaks an API in the [DGL](https://github.com/dmlc/dgl) project. We are a library for deep learning on graphs. We built it atop of framework like Pytorch. Sparse matrix is critical in implementing efficient message passing algorithm. We found that creating a sparse matrix in pytorch is slow due to the unnecessary index check (our graph construction guarantees that all indices will be within bound). As a result, we use an internal API `_sparse_coo_tensor_unsafe` in the v0.4 time, which is removed in v1.0. It will be great if pytorch could have such support.

## Pitch

<!-- A clear and concise description of what you want to happen. -->
Add a flag in `sparse_coo_matrix` interface called `validate_index`. It default to be `True`, but when set `False`, the index check will be skipped.

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
No alternatives. The internal API has been removed.


cc @aocsa @nikitaved @pearu @mruberry @VitalyFedyunin @ngimel
Repository: terminal
Issue: WSL: Pasting text from a clipboard manager doesn't insert text at the console's cursor
Labels: Issue-Question,Product-Conhost,Area-Interaction

Microsoft Windows [Version 10.0.17763.134]

---

I'm using Ubuntu WSL and the default `ubuntu.exe` terminal. It's been configured so that `CTRL+Shift+C/V` allow for copy / pasting, which by itself is working.

However, I use Ditto which is an open source clipboard manager which allows you to write to and access multiple clipboard items. It can be found at https://ditto-cp.sourceforge.io/.

#### Expected outcome

- Store multiple items in the Ditto clipboard by using the clipboard naturally.
- Trigger the Ditto menu to pick an item using Ditto's registered key binding of `CTRL + ALT + V`.
- Select the desired clipboard item from Ditto's menu.
- See the clipboard item output at my cursor inside of the Ubuntu terminal so I can press enter to execute the command (or do whatever I want with the text that was inserted).

#### Actual outcome

- Store multiple items in the Ditto clipboard by using the clipboard naturally.
- Trigger the Ditto menu to pick an item using Ditto's registered key binding of `CTRL + ALT + V`.
- Select the desired clipboard item from Ditto's menu.
- See nothing in the Ubuntu terminal because the item gets absorbed by `ubuntu.exe`, and occasionally see `^V` instead of the desired text depending on how I select the item (mouse click or pressing Enter).

I've tried other terminals like ConEmu and Hyper, and in those cases Ditto works. Ditto also works just fine with every other application (browser, IRC client, code editor, etc.). It's only failing with `ubuntu.exe` and related terminals.
Repository: ant-design
Issue: Make it possible to directly turn a Slider into a flexbox
Labels: Inactive,IssueHuntFest

- [X ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Currently - in order to use flexbox to style the elements inside a `Sider`, you have to do this:

          <Sider style={{ background: "white" }}>
            <div style={{ display: "flex", flexDirection: "column", justifyContent: "space-evenly", height: "100%" }}>
              <SourcePicker/>
              <TimeSelector setTimeRange={this.setTimeRange} />
            </div>
          </Sider>

This is bad because it requires adding an unecessary `div` just to use flexbox. The reason this happens currently is because a `Sider` is composed of 2 nested divs, so adding `display: flex` to the style prop of the `Sider` only affects the outer div, thus making flexbox unusable. 

This is a problem because it forces developers to add unnecessary divs to their site. This

A] Might make the webpage more inaccessible since excessive use of divs, etc. harms screen readers and is non-semantic HTML 

B] bad for performance / webpage size. Also causes inelegant/bloated code.

### What does the proposed API look like?
Add a `bodyStyle` or `childrenStyle` prop, or something similar, that allows developers to style the inner div of the sider, thus letting them use flexbox without creating an extra div. Or, just remove the inner `div` inside the sider.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Slow syntax highlighting
Labels: feature-request,tokenization

- VSCode Version: Insider 1.30
- OS Version: Windows 10 1607 LTSB x64

Steps to Reproduce:

1. Load large C++ file (60k LOC)
2. Observe the slowness. Takes like 10s to highlight the code.

Does this issue occur when all extensions are disabled?: Yes
Repository: go
Issue: net/http: support "gzip" as a Transfer Encoding
Labels: help wanted,FeatureRequest

### What version of Go are you using (`go version`)?
go version go1.10.3 windows/amd64

### Does this issue reproduce with the latest release?
Yes.


### What operating system and processor architecture are you using (`go env`)?

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\xxxx\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\xxxx\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\xxxx\AppData\Local\Temp\go-build557436246=/tmp/go-build -gno-record-gcc-switches

### What did you do?
I am requesting a URL with code below:

```go
package main

import (
	"fmt"
	"net/http"
	"time"
)

func main() {

	
	urlReq2 := "https://www.azulseguros.com.br/azul-cms/wp-content/themes/azul2016/integracao-azul-leve.php?timestamp=NGJYHX7MXNS"
	req, err := http.NewRequest("GET", urlReq2, nil)
	netClient := &http.Client{
		Timeout: time.Second * 10,
	}
	_, err = netClient.Do(req)
	if err != nil {
		fmt.Println(err)
	}

	

}
```
I got this error:
net/http: HTTP/1.x transport connection broken: unsupported transfer encoding "gzip"



### What did you expect to see?

I expect to be foward to other page and get HTML.
In other languages like nodejs and c#, the same request is OK.
Running cURL also bring me the result.

### What did you see instead?
Error on netClient.Do():
net/http: HTTP/1.x transport connection broken: unsupported transfer encoding "gzip"
Repository: pytorch
Issue: get/set device in c++
Labels: module: cpp,triaged,small

## Issue description

it’s been tricky to chase down the various ways to get/set current cuda device as the c++ interface has evolved.

recently, _current_device()_ has been dropped from Context,
_at::detail::DynamicCUDAInterface::set_device(d.index())_ no longer exists, 
etc.

currently, the best way i know is:
`at::Device d(at::kCUDA);`
`auto *g = c10::impl::getDeviceGuardImpl(d.type());`

then:
`g->getDevice()`
`g->setDevice(d)`

this is workable, but it would be useful to have 
_torch::cuda::get_device()
torch::cuda::set_device()_

defined along with the other functions in _api/include/torch/cuda.h_
thanks
Repository: pytorch
Issue: PyTorch 1.0 source build fails (error in caffe2/utils/fatal_signal_asan_no_sig_test.cc)
Labels: caffe2

I was trying to build PyTorch 1.0 from source and ended up getting this error:
```
Scanning dependencies of target simple_queue_test
[ 86%] Linking CXX executable ../bin/fatal_signal_asan_no_sig_test
[ 86%] Building CXX object caffe2/CMakeFiles/simple_queue_test.dir/utils/simple_queue_test.cc.o
CMakeFiles/fatal_signal_asan_no_sig_test.dir/utils/fatal_signal_asan_no_sig_test.cc.o: In function `(anonymous namespace)::forkAndPipe(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::function<void ()>) [clone .constprop.98]':
fatal_signal_asan_no_sig_test.cc:(.text+0x72d): undefined reference to `read(int, char*, unsigned long)'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/fatal_signal_asan_no_sig_test.dir/build.make:114: recipe for target 'bin/fatal_signal_asan_no_sig_test' failed
make[2]: *** [bin/fatal_signal_asan_no_sig_test] Error 1
CMakeFiles/Makefile2:6724: recipe for target 'caffe2/CMakeFiles/fatal_signal_asan_no_sig_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/fatal_signal_asan_no_sig_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state_gpu.dir/python/pybind_state_registry.cc.o
[ 86%] Linking CXX executable ../bin/NeuralNetTest
[ 86%] Linking CXX executable ../bin/workspace_test
[ 86%] Linking CXX executable ../bin/simple_queue_test
[ 86%] Built target NeuralNetTest
[ 86%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state_gpu.dir/python/pybind_state_ideep.cc.o
[ 86%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state_gpu.dir/python/pybind_state_gpu.cc.o
[ 86%] Built target workspace_test
[ 86%] Built target simple_queue_test
[ 86%] Linking CXX executable ../bin/math_test
[ 86%] Linking CXX executable ../bin/operator_test
[ 86%] Built target math_test
[ 86%] Built target operator_test
[ 86%] Linking CXX shared module python/caffe2_pybind11_state_gpu.cpython-36m-x86_64-linux-gnu.so
[ 86%] Built target caffe2_pybind11_state_gpu
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'
```

**System Information**:
1. Ubuntu 18.04
2. CUDA 10.0
3. GCC 7.3.0
4. Cloned PyTorch at fa12e1e4d43ca2839159cfb723ecf3ef3ad754db

_I saw the same issue #14398 but didn't understand the fix suggested by the person who posted it. Why do I have to comment out a certain block of code ?_
Repository: javascript-algorithms
Issue: QuickSort : Instead of taking pivot as 1st element, we should take the pivot as last element, due to time complexity
Labels: enhancement


Instead of this
`const pivotElement = array.shift();` // O(n)

we should use 
`const pivotElement = array.pop();` // O(1)

When taking the pivot as last element 2 test cases are failing.
1. QuickSort › should do stable sorting
2. QuickSort › should visit NOT SORTED array element specified number of times
Repository: vscode
Issue: Allow to configure cursor keys for input fields
Labels: feature-request,keybindings

Version 1.29.1 Linux 64 bit

Consistency issue.

Steps to Reproduce:

1. Configure anything (e.g. Ctrl+B) for cursorLeft (Global)
2. Find all other conflicting key bindsings and remove them.
3. Observe that key works in an editor.
3. Open Search Bar (for example) or Find Widget (for another example) or search boxes.
4. Observe cursorLeft does not work in text boxes.

Only a finite subset of (generic named e.g cursor*, delete*) shortcuts are required if this is to be fixed. I do realise that sometimes these things can be tricky, especially if using stock widgets for these.

Does this issue occur when all extensions are disabled?: Yes
Repository: pytorch
Issue: [Caffe2] "Same" padding 
Labels: caffe2

Hello,

I tried to use "same" padding through the legacy_pad parameter of conv and maxpool, however, it does not work. 
`conv1 = brew.conv(model, 'data', 'conv1', dim_in=1, dim_out=20, kernel=5, stride=1, legacy_pad=2)`

I always get a BAD ARGUMENT ERROR or something similar.

How can I achieve the "same" padding?? What are the value options for the parameter "pad" in conv and maxpool?
Repository: flutter
Issue: `flutter drive --tags` or `flutter drive -t` does not focus on tag-specific test
Labels: a: tests,tool,t: flutter driver,P2,team-tool,triaged-tool

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. write integration test as instructed from https://flutter.io/docs/cookbook/testing/integration
2. mark one test case with tag "ios" as instructed from https://pub.dartlang.org/packages/test#platform-specific-configuration
```dart
    test('starts at 0', () async {
      // Use the `driver.getText` method to verify the counter starts at 0.
      expect(await driver.getText(counterTextFinder), "0");
    }, tags: "ios");
```
3. run `flutter drive test_driver/app.dart --tags ios` (with iOS emulator, but this does not matter)

## Expected & Observed
- expected: only `starts at 0` case runs, no other cases
- observed: all cases run

## `flutter doctor -v`
```
Inspectorios-MacBook-Pro-10:backend truongsinh$ flutter doctor -v
/usr/local/Cellar/flutter/0.9.2/bin/cache/dart-sdk/bin/dart

/usr/local/Cellar/flutter/0.9.2/bin/cache/flutter_tools.snapshot
doctor -v
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14 18A391, locale en-VN)
    • Flutter version 1.0.0 at /usr/local/Cellar/flutter/0.9.2
    • Framework revision 5391447fae (10 days ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/truongsinh/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.29.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • iPhone 5s • 1D34B2DC-9EAB-482B-ADED-E3C8B9322F50 • ios • iOS 10.1 (simulator)

• No issues found!
Inspectorios-MacBook-Pro-10:backend truongsinh$ 
```
Repository: opencv
Issue: dnn vulkan for android
Labels: optimization,feature,platform: android,category: dnn

- OpenCV => 4.0
- Operating System / Platform => Ubuntu/Android
- Compiler => Android Studio
##### Detailed description

I try to run dnn network by vulkan in Android. After I compiled opencv 4 android (ver 4.0) with vulkan enabled, I made a simple test app to run a simple dnn network(containing few conv layers).
First of all, I got a error (loadVulkanLibrary failed) from vkcom/src/context.cpp(line 116)
It might be caused by no android definition in vk_loader.cpp
I added below codes in vk_loader.cpp after linux defintion.

```.cpp
#if defined(__ANDROID__)
#include <dlfcn.h>
#include <stdio.h>
typedef void* VulkanHandle;
#define DEFAULT_VK_LIBRARY_PATH "libvulkan.so"
#define LOAD_VK_LIBRARY(path) dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
#define FREE_VK_LIBRARY(handle) dlclose(handle)
#define GET_VK_ENTRY_POINT(handle) \
        (PFN_vkGetInstanceProcAddr)dlsym(handle, "vkGetInstanceProcAddr");
#endif // __ANDROID__
```

Then vulkan is finally running on android, but it's too slow. I tested it on LG G7(Snapdragon 845)
Backend/Target : speed
Opencv/CPU : 74ms
VKCOM/VULKAN : 350ms
abi : armeabi-v7a

Can anyone please optimize or analyze vulkan code for android to run faster than cpu?