sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: net: setKeepAlive options ignored before connect
Labels: net

<!--
Thank you for reporting a possible bug in Node.js.

Please fill in as much of the template below as you can.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**: v13.7.0
* **Platform**: linux 5.5.2
* **Subsystem**: net

<!-- Please provide more details below this comment. -->

If `setKeepAlive()` is called on a tcp socket before the `connect` event, then the `initialDelay` parameter is ignored.
This bug was alread reported [here](https://github.com/nodejs/node-v0.x-archive/issues/8572) for version 0.12, but it still seems to be there in 13.7.

If, for instance, I call `setKeepAlive(true, 10000)` before the `connect` event, the default initialDelay of 7200s is used.
`netstat -ntp --timers` gives:
```
tcp        0      0 10.10.15.220:56866      10.10.15.148:6666       ESTABLISHED 132820/node          keepalive (7132.09/0/0)
```
Repository: go
Issue: x/tools/gopls: add support for OnTypeFormatting
Labels: help wanted,FeatureRequest,gopls,Tools

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +b7689f5aa3 Fri Jan 31 06:02:00 2020 +0000 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.0.0-20200205190317-6e8b36d2c76b
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.1.8-0.20200205190317-6e8b36d2c76b
</pre>

### Does this issue reproduce with the latest release?

Per https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_onTypeFormatting, add support for `OnTypeFormatting`.

@stamblerre I'll leave you to milestone.

cc @findleyr 

FYI @leitzler
Repository: pytorch
Issue: Warning when link libtorch and opencv4.2.0 together
Labels: module: build,triaged,better-engineering

## To Reproduce

Steps to reproduce the behavior:

1. Download official opencv4.2.0
2. Download libtorch1.4.0 of windows 64 bits, cpu version
3. Create CMakeLists.txt

```
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
     
project(person_reid)    
     
set(LIBTORCH_PATH ${CMAKE_CURRENT_LIST_DIR}/../../3rdLibs/libtorch/libtorch_cpu_1_4_0/)
set(OPENCV_CV_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../3rdLibs/opencv/opencv_4_2_0/opencv/build/)

set(CMAKE_PREFIX_PATH "${OPENCV_CV_PATH};${LIBTORCH_PATH};${CMAKE_PREFIX_PATH};")

find_package(OpenCV REQUIRED)
find_package(Torch REQUIRED)

file(GLOB UTILS_SRC
    "*.hpp"
    "*.cpp"
)
     
add_executable(person_reid ${UTILS_SRC})
target_link_libraries(person_reid "${TORCH_LIBRARIES};${OpenCV_LIBS}")
set_property(TARGET person_reid PROPERTY CXX_STANDARD 11)


```

4. Codes

```
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>

#include <iostream>
#include <memory>

//#undef slots
#include <torch/script.h>
//#def slots Q_SLOTS

int main()try
{
    cv::Mat img = cv::imread("some.jpg");
    // Deserialize the ScriptModule from a file using torch::jit::load().
    torch::jit::script::Module module = torch::jit::load("traced_osnet_ain_x1_0.pt");   
}catch(std::exception const &ex){
    std::cerr << ex.what() << "\n";
    return -1;
}

```
5. Build with release version

## Expected behavior

Compile without any warnings

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

 - PyTorch Version: 1.4.0
 - OS (e.g., Linux): windows 10 64 bits
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Python version: 3.6.7
 - CUDA/cuDNN version: none, cpu only
 - GPU models and configuration: use libtorch with cpu only
 - Compiler vc2017 64bits

## Warnings

```
cl : Command line warning D9025 : overriding '/EHs' with '/EHa'
C:\Users\yyyy\programs\Qt\3rdLibs\libtorch\libtorch_cpu_1_4_0\include\torch/csrc/jit/tracer.h(289): warning C4273: 'torch::jit::tracer::addInputs': inconsistent dll linkage
C:\Users\yyyy\programs\Qt\3rdLibs\libtorch\libtorch_cpu_1_4_0\include\torch/csrc/jit/tracer.h(277): note: see previous definition of 'addInputs'
C:\Users\yyyy\programs\Qt\3rdLibs\libtorch\libtorch_cpu_1_4_0\include\torch/csrc/jit/tracer.h(296): warning C4273: 'torch::jit::tracer::addInputs': inconsistent dll linkage
C:\Users\yyyy\programs\Qt\3rdLibs\libtorch\libtorch_cpu_1_4_0\include\torch/csrc/jit/tracer.h(283): note: see previous definition of 'addInputs'
```
Repository: opencv
Issue: matchTemplate returns different scores for same input with IPP
Labels: bug,category: imgproc,category: 3rdparty

<!--
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 => 4.2.0-dev (also observed on 4.1.2 release)
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015

##### Detailed description

If IPP is active (`WITH_IPP=ON`), `matchTemplate` scores are non-deterministic. I.e. the function returns different scores for the same input. The problem can be observed for all [TemplateMatchModes](https://docs.opencv.org/3.4.0/df/dfb/group__imgproc__object.html#ga3a7850640f1fe1f58fe91a2d7583695d).

Note that `ipp_matchTemplate` is will *not* be used in the sample below, as the images are the same size. So the issue is probably not caused by a bug in `templmatch.cpp`, but comes from somewhere deeper down.

##### 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
-->

```python
import cv2
import numpy as np


image = np.full([64, 64], 0, dtype=np.uint8)
cv2.circle(image, (32, 32), 30, 255, cv2.FILLED)

template = np.full([64, 64], 0, dtype=np.uint8)
cv2.circle(template, (45, 45), 30, 128, cv2.FILLED)

method_names = ['SQDIFF', 'SQDIFF_NORMED', 'CCORR', 'CCORR_NORMED', 'CCOEFF', 'CCOEFF_NORMED']
# just testing non-normalized methods, as the normed versions rely on their results anyway
methods = [cv2.TM_SQDIFF, cv2.TM_CCORR, cv2.TM_CCOEFF]

for method in methods:
    print('======= {} ======='.format(method_names[method]))
    scores = []

    run_count = 100000
    for i in range(run_count):
        match_res = cv2.matchTemplate(image, template, method)
        _, score, _, pos = cv2.minMaxLoc(match_res)
        scores.append(score)

    scores = np.array(scores)

    mx = np.max(scores)
    mn = np.min(scores)
    max_diff = mx - mn
    rel_diff = max_diff / mx if mx != 0 else 0
    print('max: {} | min: {} | diff: {} ({:.3f}% of max)'.format(mx, mn, max_diff, rel_diff * 100))
```
Sample output:

```
======= SQDIFF =======
max: 104318944.0 | min: 104318488.0 | diff: 456.0 (0.000% of max)
======= CCORR =======
max: 56597880.0 | min: 56597652.0 | diff: 228.0 (0.000% of max)
======= CCOEFF =======
max: 9839805.0 | min: 9839601.0 | diff: 204.0 (0.002% of max)
```
Repository: pytorch
Issue: Recover from CUDA runtime error
Labels: module: cuda,triaged,module: third_party

## ❓ Questions and Help

I wanted to recover from 
RuntimeError: inverse_cuda: For batch 0: U(2344,2344) is zero, singular U.
so I tried to catch the error and do 
torch.cuda.empty_cache()
which leads to the another error
RuntimeError: CUDA error: misaligned address
without empty cache I got the illegal memory access error below.
Any suggestions?
I use CUDA 10 pytorch 1.1.0~ TitanXP *4
Also I use dataparallel (not distributed one) during training.
Thanks a lot.

CUDA runtime error: an illegal memory access was encountered (77) in magma_sgetrf_batched at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/src/sgetrf_batched.cpp:213
CUDA runtime error: an illegal memory access was encountered (77) in magma_sgetrf_batched at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/src/sgetrf_batched.cpp:214
CUDA runtime error: an illegal memory access was encountered (77) in magma_sgetrf_batched at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/src/sgetrf_batched.cpp:215
CUDA runtime error: an illegal memory access was encountered (77) in magma_sgetri_outofplace_batched at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/src/sgetri_outofplace_batched.cpp:137
CUDA runtime error: an illegal memory access was encountered (77) in magma_queue_destroy_internal at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/interface_cuda/interface.cpp:944
CUDA runtime error: an illegal memory access was encountered (77) in magma_queue_destroy_internal at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/interface_cuda/interface.cpp:945
CUDA runtime error: an illegal memory access was encountered (77) in magma_queue_destroy_internal at /opt/conda/conda-bld/magma-cuda100_1549065924616/work/interface_cuda/interface.cpp:946
### Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum:

- [Discussion Forum](https://discuss.pytorch.org/)


cc @ngimel
Repository: go
Issue: misc/android: go_android_exec fails to copy other package sources in the main module when executing tests
Labels: help wanted,NeedsFix,mobile

In order to ensure that a test binary can find any associated test data, `go test` runs the resulting test binary in its own source directory.

That implies that, if a `go` binary is present, the test can `go build` both files in its own directory and any associated packages in the same module.

Unfortunately, `adbCopyTree` function in `go_android_exec.go` does not ensure that the source code for the complete module is present. Instead, it copies only the `go.mod` and `go.sum` files and `testdata` directories going up the tree.

That implies that `go_android_exec` cannot successfully execute an external test that runs an associated `main` package as a subprocess if that `main` package imports any other package outside of the standard library, such as in [CL 218277](https://golang.org/cl/218277).

CC @hajimehoshi @hyangah @steeve @eliasnaur
Repository: pytorch
Issue: [docs] Strange order of items in docs contents in left pane
Labels: module: docs,triaged

```
torch.optim
Quantization
Distributed RPC Framework
torch.random
```
why this order? not even alphabetical. I'd suggest that big special topics such as Quantization are presented on top in a separate section, and the rest to be in alphabetical order.

![image](https://user-images.githubusercontent.com/1041752/73972687-8c035b00-4921-11ea-82a9-01c4d09cc5b3.png)
Repository: flutter
Issue: Dynamically load ICU
Labels: engine,c: performance,a: internationalization,a: size,perf: app size,P3,team-engine,triaged-engine

I will fill this out more shortly, but want to brain dump some things before I forget:

- Move ICU to a storage bucket
- See if we can split ICU into a "core" package and language specific packages (for Burmese, Japanese, Thai, Lao, Khmer, and Finish).
- Always grab the core package on first load
- Grab language specific packages only if needed.

This would reduce the core distribution size of a Flutter app by about 500kb, and reduce the on disk footprint for users who never see or enter burmese text for example.

Need to determine:

- Can ICU support this, or would we need to customize the ICU build?
- Does this have a highly adverse impact on startup times/early frame performance?
- Is supporting the infra for it worthwhile (a storage bucket that would be hit by users of Flutter apps rather than developers using the framework).

/cc @goderbauer @xster
/cc @blasten
Repository: go
Issue: text/template: Permit user of Reader objects in templates
Labels: NeedsInvestigation,FeatureRequest

In the case where we need to use a reader to avoid buffering large amounts of data in memory, there appears no way to use this reader in a go template.

This issue was raised before here:

https://github.com/golang/go/issues/25160

In summary, it was dismissed on the basis of "most people don't need this".  I would like to contest this. There are a lot of things "most people don't need" but what if the reason for the need is an important edge case (i.e. applications processing large data sets). Surely there are some people processing applications that operate over large data sets?
Repository: three.js
Issue: Seams with normal map and mirrored uvs
Labels: Needs Investigation

##### Description of the problem

I guess it may not be just a threejs issue but I ran into a problem when using a normal map with a mesh having mirrored uvs.

With the current code, my understanding is that the RGB value (128, 128, 255) which is supposed to represent a non perturbed normal by convention is read as (0.50196, 0.50196, 1.0) - in linear color space. When converted to [-1, 1] using the function `map * 2.0 - 1.0` the vector encoded in the texture becomes (0.00392, 0.00392, 1.0) when it shall be (0.0, 0.0, 1.0). This is the reason why when using a mesh with mirrored uvs and a normal texture, the two normals at a seam have different directions creating the artifact.

It can be easily proven by modifying the **perturbNormal2Arb** function.
Replace `vec3 mapN = map * 2.0 - 1.0;` by `vec3 mapN = map * 2.0 - 1.00392;` and the seams disappear. I attached two screenshots made using a fully metallic material and no roughness to make it very obvious:

![seams](https://user-images.githubusercontent.com/45501180/73978584-880f2180-4991-11ea-930e-ea411455f716.jpg)

![noseams](https://user-images.githubusercontent.com/45501180/73978590-89404e80-4991-11ea-8382-e581280f0da5.jpg)

Not too sure how this problem is generally solved as this is not my area of expertise.

##### Three.js version

- [x] Dev
- [x] r113

##### Browser

- [x] All of them

##### OS

- [x] All of them
Repository: godot
Issue: Outlines go around shadows on (non-RichText) Labels
Labels: enhancement,discussion,topic:gui

**Godot version:**
3.2

**OS/device including version:**
Windows 10
AMD FX-8320
GTX 1060 6GB

**Issue description:**
3.2 caused (non-RichText) Label nodes with an outline and a shadow to have the outline to go around the shadow, instead of the outline going around the text and the shadow going underneath the outline.

RichTextLabel nodes still have expected functionality. If you open the project in 3.1 then regular Labels also work as expected.

![outline text bug](https://user-images.githubusercontent.com/60757668/73977511-2185f700-48f0-11ea-8dc2-ff49871854ba.png)


**Steps to reproduce:**
Create a (regular, non-RichText) Label with a shadow and outline.

**Minimal reproduction project:**
[outline_text_bug.zip](https://github.com/godotengine/godot/files/4167682/outline_text_bug.zip)
Repository: flutter
Issue: Make ShellTestPlatformView fully runtime configurable
Labels: engine,platform-fuchsia,P3,team-engine,triaged-engine

Right now there is #ifdef soup in ShellTestPlatformView.cc in order to determine which backends are available.

We'd like to move to a system where all backends are built for `ShellTest` and at runtime we do proc resolution for GL or Vulkan symbols then determine which backends can be run based off that.

This is currently not possible because the code doesn't compile on all platforms (e.g. `//testing/opengl` won't compile on Fuchsia, `//flutter/vulkan` won't compile on Windows).
Repository: terminal
Issue: TestMouseWheelReadConsoleInputHelper tests are flaky
Labels: Product-Conhost,Help Wanted,Area-Input,Issue-Task,Area-CodeHealth

In the InputTests, there are a handful of them that inject mouse events into the window handle.

They center around the method `TestMouseWheelReadConsoleInputHelper`.

They tend to fail when there are two input events in the queue instead of just the one they expect.

My theory is that the extra event in the queue is a focus or unfocus event.

We should make them all more robust to the point where they don't care/skip excess focus/unfocus events.
Repository: vscode
Issue: [Feature-request] Remove cursor
Labels: feature-request,editor-multicursor

I would like the multi cursor to behave like this plugin - https://atom.io/packages/multi-cursor
This plugin allows to remove last created cursor by adding new cursor in oposite direction.

Exaple.
```
some text|
some text 2
some text 3
```
add cusor down
```
some text|
some text| 2
some text 3
```
add cursor dows
```
some text|
some text| 2
some text| 3
```
add cursor up
```
some text|
some text| 2
some text 3
```
add cursor up
```
some text|
some text 2
some text 3
```

this also works with ctrl - d command.
Repository: go
Issue: cmd/compile: ARM's MOVWnop causes regalloc to insert unnecessary copies
Labels: Performance,NeedsInvestigation,compiler/runtime

MOVWnop is a nop/copy designed to ensure type safety. It generates no code. However, it is not free; regalloc sometimes makes a copy of a value to provide to MOVWnop, since it doesn't know that MOVWnop doesn't modify its argument.

I noticed this while tracking down regressions due to changes in rewrite rule order application.

I don't know what the best approach to fixing it is. Suggestions?

cc @cherrymui
Repository: TypeScript
Issue: Support closed-file diagnostics in VS Code
Labels: Suggestion,Committed

For https://github.com/microsoft/vscode/issues/13953

## Background
Project wide diagnostics are the most requested VS Code JS/TS feature. However, we've been blocked on implementing them by the fact that TS server is single threaded. This means that computing these diagnostics could interrupt normal user operations like completions.

We currently recommend that people use tasks to get around this limitation (since tasks always run as separate process) however few people actually use tasks.

With https://github.com/microsoft/vscode/commit/f0942786b4ee338f02449e2e5751091e028eb898, I've added a new setting that spins up a new TS Server just for diagnostics. This accomplishes much the same thing as using a task.

## Problem
In the prototype, I'm using the `geterrForProject` command. This works ok for smaller projects but triggers a huge number of events for larger projects like the VS Code source. Instead, we need an API that: given a file, returns a list of inverse dependencies (i.e. the files that need to be rechecked after the file changes)

I believe that this API more or less already exists with `compileOnSaveAffectedFileList`? But that command only works if `compileOnSave` is enabled. We'd like to enable project wide error reporting even when users have not enabled compileOnSave.

/cc @sheetalkamat For background on `compileOnSaveAffectedFileList`
/cc @amcasey As you suggested using a separate diagnostics only server
Repository: flutter
Issue: Scaffold body is hidden behind bottomSheet
Labels: framework,f: material design,has reproducible steps,found in release: 3.3,found in release: 3.7,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. Clone https://github.com/yringler/reproduce-bottom-sheet
2. Run it

**Expected results:**
The body should be scroll-able to see all content.

**Actual results:** <!-- what did you see? -->
Part of the body content is cut off, and it can't be scrolled to
Repository: godot
Issue: Path (3D) is not selectable/editable near some objects
Labels: bug,topic:editor,usability

**Godot version:**
3.2
**OS/device including version:**
Windows 10 
**Issue description:**
The path circles are hard to select whenever an object is near the point you select, selecting the object insterad of creating/selecting the circle you want to handle. 
**Steps to reproduce:**
Place lot of objects and then a path, try to make non-uniformed scaled objects too 
**Minimal reproduction project:**
will provide if needed
Repository: go
Issue: syscall/js: add support for fork/exec syscalls?
Labels: NeedsInvestigation,FeatureRequest,arch-wasm

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +b7689f5aa3 Fri Jan 31 06:02:00 2020 +0000 linux/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
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myitcv/gos"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/myitcv/gostuff/src/github.com/myitcv/playground/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build703123889=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

```
-- go.mod --
module mod

-- main.go --
package main

import (
        "fmt"
        "os"
        "os/exec"
)

func main() {
        cmd := exec.Command("echo", "hello")
        cmd.Stdout = os.Stdout
        cmd.Stderr = os.Stderr
        if err := cmd.Run(); err != nil {
                fmt.Fprintln(os.Stderr, err)
                os.Exit(1)
        }
}
```

```
GOOS=js GOARCH=wasm go build -o main.wasm
$(go env GOROOT)/misc/wasm/go_js_wasm_exec main.wasm
```

### What did you expect to see?

```
hello
```

### What did you see instead?

```
exec: "echo": executable file not found in $PATH
```

As some folks on Slack kindly pointed out, this is because `GOOS=js ARCH=wasm` does not support fork/exec syscalls. Those same folks were not clear that it made sense for this to be supported (especially given the browser focus of this port), but when executing through NodeJS (i.e. the `go_js_wasm_exec` wrapper) it does have meaning.

Thoughts?

cc @neelance