sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Cuda streams do not run concurrently when using the convolve function 
Labels: priority: low,category: gpu/cuda (contrib)

<!--
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).

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.4.0
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015

##### Detailed description
Using streams to run multiple different convolutions do not run concurrently . I have not used any compiler flags such as  `–default-stream per-thread`
##### Steps to reproduce
The code is in a .cpp file. 

	Ptr<cuda::Convolution> convolver;
	cuda::Stream s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
	convolver->convolve(im_32fc1_d, x, a_d, false, s1);
	
	convolver->convolve(im_32fc1_d, xy, b_d, false, s2);
	
	convolver->convolve(im_32fc1_d, xx, c_d, false, s3);
	
	convolver->convolve(im_32fc1_d, yy, d_d, false, s4);
	
	convolver->convolve(im_32fc1_d, xy, e_d, false, s5);

![cuda streams not concurrent](https://user-images.githubusercontent.com/518314/37871560-6970a918-2fbe-11e8-9c35-a5fbe447fb32.png)
Repository: rust
Issue: Tracking issue for libtest JSON output
Labels: T-libs-api,B-unstable,A-libtest,C-tracking-issue,T-testing-devex

Added in https://github.com/rust-lang/rust/pull/46450
Available in nightly behind a `-Z` flag.
Repository: go
Issue: net/http: BenchmarkClientServerParallelTLS64 sometimes reports an error
Labels: Testing,NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!


### What version of Go are you using (`go version`)?
go version devel +cc155eb

### Does this issue reproduce with the latest release?
Yes.

### What operating system and processor architecture are you using (`go env`)?
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/*/.cache/go-build"
GOEXE=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/username/go"
GORACE=""
GOROOT="/home/username/go-temp"
GOTMPDIR=""
GOTOOLDIR="/home/username/go-temp/pkg/tool/linux_arm64"
GCCGO="gccgo"
CC="gcc"
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"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build212786936=/tmp/go-build -gno-record-gcc-switches"

### What did you do?
I found this error in the log of our daily job (cd  /src ;   go test -count 3 -timeout 180m -run=^$ -bench=. ... ).

Running the command "go test -bench BenchmarkClientServerParallelTLS64" alone can also reproduce this error, but the error sometimes appears, sometimes does not appear, you may need to run it several times.


### What did you expect to see?
PASS

### What did you see instead?
I have seen two kinds of error messages. When executing command "go test -bench BenchmarkClientServerParallelTLS64" , the error message appears:

goos: linux
goarch: arm64
pkg: net/http
BenchmarkClientServerParallel4-32                  30000             37850 ns/op           12324 B/op         88 allocs/op
BenchmarkClientServerParallel64-32                 10000            307570 ns/op           13278 B/op         96 allocs/op
BenchmarkClientServerParallelTLS4-32               20000            112708 ns/op           41859 B/op        433 allocs/op
BenchmarkClientServerParallelTLS64-32           2018/03/25 13:47:49 http: TLS handshake error from 127.0.0.1:58119: read tcp 127.0.0.1:34212->127.0.0.1:58119: use of closed network connection
   20000            106537 ns/op           43259 B/op        454 allocs/op
PASS
ok      net/http        47.081s

When running all the benchmarks ( cd  /src ;   go test -count 3 -timeout 180m -run=^$ -bench=. ... ) , in addition to the above error, another error may also occur., namely:
15:10:47 BenchmarkClientServerParallelTLS64-64          	Build timed out (after 10 minutes). Marking the build as aborted.
15:20:47 Build was aborted

I do not understand what the problem is. How did it come about? Can anyone explain it to me, thank you!
Repository: TypeScript
Issue: Represent the types of function parameters that mutate inside the function.
Labels: Suggestion,Awaiting More Feedback

<!-- If you have a SUGGESTION:
  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.
  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md
-->

In JavaScript is possible to mutate objects inside functions. Right now, the following code in JavaScript:

```js
function merge(x,y) {
  Object.assign(x,y);
} 

let x = {a: 1};   
merge(x, {b: 2});
console.log(x.b);
```

Can't be written in TypeScript without casting the type. There are a few options whose type definition is wrong in all scenarios I can think of (maybe I'm missing a better option):

## Option 1

```ts
let x: {a: number, b: number} = {a: 1}; // Error, missing b
merge(x, {b: 2});
```

## Option 2

```ts
let x: {a: number, b: number} = {a: 1, b: 2};
merge(x, {b: null});
// From here, x.b is not a number anymore, but you could do
let y: number= x.b;
```

## Suggestion

There could be an extension to function parameter definition like the following:

```ts
// then keyword indicates that before it can be type A, and after it will be of type A&B.
function merge<A,B>(x: A then x2: A&B, y: B) {
  Object.assign(x2,y);
}

let x: {a: number, b: number} = {a: 1, b: 2};
merge(x, {b: null});
// Here, type of x is {a: number, b: number} & {b: null}
x.b; // Type null
```

There, we indicate that whatever type was x before, now it is something different. The code above could be written in TypeScript as follows:

```ts
// then keyword indicates that before it can be type A, and after it will be of type A&B.
function merge<A,B>(x: A, y: B) {
  Object.assign(x,y);
}

let x: {a: number, b: number} = {a: 1, b: 2};
merge(x, {b: null});
// Here, type of x is {a: number, b: number} & {b: null}
let xAfterMerge = x as {a: number, b: number} & {b: null};
// Since this line, x should not be used but xAfterMerge
xAfterMerge.b; // Type null
```

### Another example

```ts
interface Before {
  address: string;
}

interface After {
  addr: string;
}

function map(userb: Before then usera: After) {
   usera.addr = userb.address;
   delete userb.address;
}

let u = {adress: "my street"};
map(u);
console.log(u.addr);
```

That could be syntax sugar for this:

```ts
interface Before {
  address: string;
}

interface After {
  addr: string;
}

function map(userb: any) {
   userb.addr = userb.address;
   delete userb.address;
}

let u = {adress: "my street"};
map(u); 
console.log((u as After).addr);
```

## Syntax

It could be something like:

```
identifier: type *then* identifier: type  
```

With the identifiers being different, and with the types being mandatory an extension of Object.
Repository: vscode
Issue: Feature Request : SHOW / HIDE comments in editor
Labels: feature-request,languages-basic,editor-comments

Hi VsCode teams !

# Why developers need it 
- Adding comments and documentation in a codebase is very important for maintenance. 
- But often it could make it harder to read (especially if you use jsdoc or swagger)

**Conclusion:** toggling comments visibility could be a very nice productivity feature directly inside VSCode ! Moreover, **this feature exists on most of other text editors.**

# Question
If i missed the feature in VSCode, how could i show / hide comments in my code ? 
I saw [this extension](https://marketplace.visualstudio.com/items?itemName=3dGrabber.HideShowComments) on vscode store, but it's not maintained and it doesn't work with last versions of VSCode 

Thanks for your work ! :open_hands: 


```[tasklist]
### Tasks
```
Repository: opencv
Issue: Error installing on Ubuntu
Labels: category: build/install,incomplete

##### System information (version)

- OpenCV => 3.4.1
- Operating System / Platform => Ubuntu 16.04.4 LTS

##### Detailed description

Trying to install latest build on Ubuntu. Before compiling I installed all of these: https://pastebin.com/raw/DhKkF0Da

This is where it stops after sudo make. What am I missing?

[ 90%] Generate files for Java bindings
Traceback (most recent call last):
  File "/home/tonyrulez/Letöltések/opencv-3.4.1/modules/java/generator/../generator/gen_java.py", line 1093, in <module>
    copy_java_files(java_files_dir, target_path)
  File "/home/tonyrulez/Letöltések/opencv-3.4.1/modules/java/generator/../generator/gen_java.py", line 1032, in copy_java_files
    src = checkFileRemap(java_file)
  File "/home/tonyrulez/Letöltések/opencv-3.4.1/modules/java/generator/../generator/gen_java.py", line 25, in checkFileRemap
    assert path[-3:] != '.in', path
AssertionError: /home/tonyrulez/Letöltések/opencv-3.4.1/modules/java/generator/src/java/org/opencv/osgi/OpenCVNativeLoader.java.in
modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/build.make:357: recipe for target 'CMakeFiles/dephelper/gen_opencv_java_source' failed
make[2]: *** [CMakeFiles/dephelper/gen_opencv_java_source] Error 1
CMakeFiles/Makefile2:2547: recipe for target 'modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all' failed
make[1]: *** [modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Repository: opencv
Issue: Implement HoughCircles and HoughLines with specifying bounds on parameters in order to lessen complexity
Labels: feature,category: imgproc,priority: low

For HoughCircles I mean the range of coordinates of their centers.
Repository: TypeScript
Issue: Object.getPrototypeOf returns `any` instead of `object | null`
Labels: Suggestion,Breaking Change,Awaiting More Feedback


<!-- If you have a BUG:
  Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  2.7.2

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** `Object.getPrototypeOf`, `ObjectConstructor.getPrototypeOf`, wrong return type

**Code**

```ts
let prototype = Object.getPrototypeOf(foo);
```

**Expected behavior:**
The type of `prototype` should be `object | null`. According to the spec, `getPrototypeOf` returns the value of the internal property `[[Prototype]]` [[1]](https://www.ecma-international.org/ecma-262/5.1/#sec-15.2.3.2) whose values can only be of type `object` or `null` [[2]](https://www.ecma-international.org/ecma-262/5.1/#sec-8.6.2).

**Actual behavior:**
`prototype` has type `any`

**Playground Link:** [here](http://www.typescriptlang.org/play/#src=%0D%0Alet%20foo%20%3D%20%7B%7D%3B%0D%0Alet%20prototype%20%3D%20Object.getPrototypeOf(foo)%3B%0D%0A%0D%0Aprototype.thisPropertyDefinitelyDoesntExist()%3B%0D%0A)
Repository: godot
Issue: -s flag fails in tools=no builds without project
Labels: discussion,topic:core

**Godot version:**
Tried 3.0.2 and 928cdb4

**OS/device including version:**
Tried HTML5 and Windows


**Issue description:**
Attempted to run `godot -s script.gd` with `godot` being a template executable (`tools=no`).
Neither the working directory, nor any of its parents, contain a project. No project is specified on the command line.
Expected `script.gd` to run as main loop with default values used for project settings.
Instead exited right away after logging the following:

    Error: Could not load game path '.'.
    **ERROR**: Condition ' !_start_success ' is true. returned: false

Source: https://github.com/godotengine/godot/blob/928cdb4f8a72c2de5751cddd3205c2a3c09e6f6d/main/main.cpp#L1230


**Steps to reproduce:**
Run `godot -s script.gd` with `godot` being a template executable.

**Minimal reproduction project:**

    extends MainLoop

    func _iteration(dt):
        OS.alert('Success: main loop script is running')
        return true
Repository: go
Issue: cmd/compile: less optimized AMD64 code
Labels: Performance,NeedsFix,binary-size

Please answer these questions before submitting your issue. Thanks!


### What version of Go are you using (`go version`)?
the newest master branch on March 25, 2018

### Does this issue reproduce with the latest release?
not tried

### What operating system and processor architecture are you using (`go env`)?
amd64/ubuntu16.04

### What did you do?
test commit https://github.com/golang/go/commit/4b00d3f4a2d1379377a0f2312564ae405b946d65#diff-6b1f55ed5d66ec08fb9cbe82259791e9

	func ssa(a []int) bool {
	        return a[0] > a[1]
	}

is compiled to 

	        00000 (2)       TEXT    "".ssa(SB)
	        00001 (2)       FUNCDATA        $0, gclocals·4032f753396f2012ad1784f398b170f4(SB)
	        00002 (2)       FUNCDATA        $1, gclocals·69c1753bd5f81501d95132d08af04464(SB)
	 v13    00003 (2)       MOVQ    "".a+8(SP), AX
	 v9     00004 (3)       TESTQ   AX, AX
	 b1     00005 (3)       JLS     13
	 v25    00006 (3)       MOVQ    "".a(SP), CX
	 v16    00007 (3)       MOVQ    (CX), DX
	 v3     00008 (3)       CMPQ    AX, $1
	 b2     00009 (3)       JLS     13
	 v4     00010 (3)       CMPQ    8(CX), DX
	 v27    00011 (3)       SETLT   "".~r1+24(SP)
	 b4     00012 (3)       RET
	 v12    00013 (3)       PCDATA  $0, $1
	 v12    00014 (3)       CALL    runtime.panicindex(SB)
	 b3     00015 (3)       UNDEF
	        00016 (?)       END

which is expected. but 

	func ssb(a []int) (bool, bool) {
	        return a[0] > a[1], a[2] != a[3]
	}

is compiled to

	        00000 (6)       TEXT    "".ssb(SB)
        	00001 (6)       FUNCDATA        $0, gclocals·4032f753396f2012ad1784f398b170f4(SB)
        	00002 (6)       FUNCDATA        $1, gclocals·69c1753bd5f81501d95132d08af04464(SB)
 	v7     00003 (6)       MOVQ    "".a+8(SP), AX
 	v4     00004 (7)       TESTQ   AX, AX
 	b1     00005 (7)       JLS     24
 	v38    00006 (7)       MOVQ    "".a(SP), CX
 	v17    00007 (7)       MOVQ    (CX), DX
 	v16    00008 (7)       CMPQ    AX, $1
 	b2     00009 (7)       JLS     24
 	v10    00010 (7)       MOVQ    8(CX), BX
 	v12    00011 (7)       CMPQ    BX, DX
 	v24    00012 (7)       CMPQ    AX, $2
 	b4     00013 (7)       JLS     24
 	v34    00014 (7)       MOVQ    16(CX), SI
 	v33    00015 (7)       CMPQ    AX, $3
 	b5     00016 (7)       JLS     24
 	v43    00017 (7)       MOVQ    24(CX), AX
 	v8     00018 (7)       CMPQ    AX, SI
 	v40    00019 (7)       CMPQ    BX, DX
 	v46    00020 (7)       SETLT   "".~r1+24(SP)
 	v14    00021 (7)       CMPQ    AX, SI
 	v48    00022 (7)       SETNE   "".~r2+25(SP)
 	b6     00023 (7)       RET
 	v13    00024 (7)       PCDATA  $0, $1
 	v13    00025 (7)       CALL    runtime.panicindex(SB)
	 b3     00026 (7)       UNDEF
			00027 (?)       END

The issue here
1. a dead "v8     00018 (7)       CMPQ    AX, SI" is not eliminated
2. CMPQmem are not used as expected
Repository: electron
Issue: Support accessory view option in `dialog.showMessageBox` and `dialog.showErrorBox`
Labels: enhancement :sparkles:,platform/macOS,2-0-x

<!--
Thanks for opening an issue! A few things to keep in mind:

- The issue tracker is only for bugs and feature requests.
- Before reporting a bug, please try reproducing your issue against
  the latest version of Electron.
- If you need general advice, join our Slack: http://atom-slack.herokuapp.com
-->

* Electron version: 2.0.0-beta.5
* Operating system: macOS 10.13.3

### Expected behavior

I expected `dialog.showMessageBox` and `dialog.showErrorBox` to have an option to specify an accessory view. In the native world, you can render anything inside it, but I'd be happy to just have a multi-line text field.

My specific use-case is that I need to be able to display an error stack trace in the dialog, for [`electron-unhandled`](https://github.com/sindresorhus/electron-unhandled) which currently looks like:

<img width="532" alt="screen shot 2018-03-26 at 21 45 07" src="https://user-images.githubusercontent.com/170270/37913395-fb0c3546-313e-11e8-83cc-c506cc987754.png">


But I would like something like this:

![image](https://user-images.githubusercontent.com/170270/37913320-c9e0d65c-313e-11e8-86e4-49a8455fb089.png)


<!-- What do you think should happen? -->

### Actual behavior



<!-- What actually happens? -->

### How to reproduce

<!-- 

Your best chance of getting this bug looked at quickly is to provide a REPOSITORY that can be cloned and run.

You can fork https://github.com/electron/electron-quick-start and include a link to the branch with your changes.

If you provide a URL, please list the commands required to clone/setup/run your repo e.g.

  $ git clone $YOUR_URL -b $BRANCH
  $ npm install
  $ npm start || electron .

-->
Repository: pytorch
Issue:  Clean up the extra copies that occur in the execution engine and other places
Labels: oncall: jit

Known changes:

* Come up with a plan for removing tensor_list<->variable_list copies from the execution engine. 
* Switch the execution engine to work using a stack abstraction so that recursive invocations (such as running a white-box `Subgraph`), do not need to create copies of their inputs.
* Switch the FusionCompiler to also use a stack abstraction for similar reasons to the above.
Repository: pytorch
Issue: Develop a strategy for writing leak tests for pytorch. 
Labels: oncall: jit

Use it to test for leaks in the graph executor/interpreter, etc. 

Ideas:
* Add an api to create a tensor, hold a weak reference to it, and assert after a certain point that it is not longer present. Use this tensor as an input to various things that might accidentally hold references to it. 
* Add a function like `should_be_freed(x)` that can go in the middle of the network, and adds `x` to a list of tensors that should only be temporaries. A later call `assert_freed()` should check that all those tensors have disappeared.
* Make `should_be_freed` work during tracing and in the script so that intermediates in that code path are checked as well.


Why? Currently our tests will not find when a major leak occurs unless it causes some test to completely run out of GPU memory. This means we often find leaks weeks later when the cause is harder to find. Pybind and python's APIs make introducing leaks very easy, so this happens frequently.
Repository: flutter
Issue: [camera] Improve CameraPreview to size itself appropriate for video and picture previews 
Labels: customer: crowd,p: camera,package,team-ecosystem,P2,triaged-ecosystem

I am working with a g3 client who is prototyping a camera UI in Flutter, and they're having difficulty getting the preview image from the camera to have a fixed aspect ratio.  

They've attempted using an AspectRatio to contain the CameraPreview, but haven't had any results.

Is there a solution to this problem, and can we document it or incorporate it into the CameraPreview API?
Repository: flutter
Issue: Function to check if an element is present or not on flutter_driver(QA environment)
Labels: a: tests,c: new feature,tool,t: flutter driver,P3,team-tool,triaged-tool

## Steps to Reproduce

Currently testing an application and the lack of ability to check if an element is present/visible is stopping me right dead in the tracks. Something on the lines of that would go a long way in bringing flutter framework on par with appium testing.

## Logs

No issues with the application as such.
Repository: go
Issue: time: set specific rule for Date on daylight savings transitions
Labels: NeedsInvestigation


### What version of Go are you using (`go version`)?
go1.7.4 linux/amd64

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/go-1.7"
GOTOOLDIR="/usr/lib/go-1.7/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build628236315=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1

### What did you do?
I called `time.Date` for March 11, 2018, 2:00 AM, and printed the resulting time.
https://play.golang.org/p/N-XUwlGxpaF

### What did you expect to see?
March 11, 2018, 2:00 AM is the moment when the clock in Vancouver changes to 3:00 AM due to switching from PST to PDT. So I would expect one of the following:
- Either 2:00 is interpreted in PST, and the time printed is 2:00 PST
- Or 2:00 is interpreted in PDT, and the time printed is 2:00 PDT

### What did you see instead?
Instead, `time.Date` apparently interprets 2:00 in PDT, but prints 1:00 PST.
Repository: vscode
Issue: [folding] Fold block comments scrolls editor
Labels: bug,editor-folding

re #46597

* open `/src/vs/base/common/arrays.ts`
* set cursor on line 200
* scroll line 200 out of view
* select F1 > Fold Block Comments
* 🐛 line 200 is scrolled back into view
Repository: vscode
Issue: [folding] blocked while language server is starting up
Labels: feature-request,editor-folding

from  https://github.com/Microsoft/vscode/issues/44524#issuecomment-376479712\

the collapse button now doed nothing until the language server is up. Not a very pleasant experience.
Repository: vscode
Issue: VS Code not being able to open a large file
Labels: feature-request,editor-textbuffer

<!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode. -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.21.1
- OS Version: Windows 10 pro

Steps to Reproduce:

1. Get or create a large file (in my case a **19gb** .sql file with insert queries) 
2. Try to open the file

Does this issue occur when all extensions are disabled?: Yes
Repository: scrcpy
Issue: Using another android device as client
Labels: feature request,android client

Thanks for this amazing project. 
Is it possible to mirror one android screen to another android device using scrcpy-adb connect method? I found adb clients compiled for arm devices and also java implementation of adb client on github.  What are your thoughts?
Repository: TypeScript
Issue: Organize Imports: Add option to change between relative and absolute paths
Labels: Suggestion,Awaiting More Feedback,VS Code Tracked,Domain: Organize Imports

https://github.com/Microsoft/vscode/issues/46699

**Feature Request**
Add a configuration option that can force auto imports to be converted to relative or absolute paths. This option should be off by default (we leave the paths untouched)
Repository: TypeScript
Issue: Organize imports should remove blank lines within imports
Labels: Suggestion,Awaiting More Feedback,Domain: Organize Imports

**TypeScript Version:**  2.9.0-dev.20190327

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** 
- Organize imports

**Code**
1. For the js:

```ts
import { x } from 'x';


import { y } from 'y';

console.log(x, y)
```

2. Run organize imports. 

**Expected behavior:**
Blank lines within the import are removed

```js
import { x } from 'x';
import { y } from 'y';

console.log(x, y)
```

**Actual behavior:**
Blanklines preserved but shifted to end of imports:

```js
import { x } from 'x';
import { y } from 'y';



console.log(x, y)
```