sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Check if route contains a specific coordinates or not
Labels: c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

<!-- 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
-->

## Use case
I am using google map to draw a route between source and destination, With that I need to check if given lat long coords falls on path that is being drawn or not. 
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
Need to know if polyutil is avaialbe in flutter or not? if yes how to install it or use it. 
this is what I am looking for to be specific.
`PolyUtil.isLocationOnPath(LatLng point, java.util.List<LatLng> polyline, boolean geodesic, double tolerance)`
<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: rust
Issue: Incorrect suggestion given private function
Labels: A-diagnostics,A-visibility,T-compiler,C-bug,A-suggestion-diagnostics,D-invalid-suggestion

In `constants.rs` I have a private method: `fn defaultConfig() -> bool { ... }`.

If I import all members into another file using: `use crate::constants::*`, then call `defaultConfig`, I get the following error:

```
error[E0425]: cannot find function `defaultConfig` in this scope
  --> src/playgame.rs:28:18
   |
28 |     let config = defaultConfig();
   |                  ^^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
   |
4  | use crate::constants::defaultConfig;
   |
```

However, the suggested fix won't help. Adding `use crates::constants::defaultConfig` suggests adding `pub` to `defaultConfig`. Suggesting `crates::constants::defaultConfig` isn't useful when we already have `crates::constants::*`, so should go straight to the suggestion about adding `pub`?
Repository: terminal
Issue: Support multi-code-point characters in TerminalInput::HandleKey
Labels: Issue-Feature,Product-Conhost,Area-Input,Product-Terminal

# Description of the new feature/enhancement

Starting with #2836 key events containing combinations like <kbd>Shift</kbd><kbd>.</kbd> (here: US keyboard layout) will be mapped to their matching, potentially non-ASCII, counterparts (here: <kbd>></kbd>).
This is achieved using the [`ToUnicodeEx` method](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-tounicodeex).

But this leads to a problem: `ToUnicodeEx` can potentially return multiple code points.
[`TerminalInput::HandleKey`](https://github.com/microsoft/terminal/blob/8afc5b2f596335b47ecc89172ccd9820ec510579/src/terminal/input/terminalInput.cpp#L364) and its [`KeyEvent`](https://github.com/microsoft/terminal/blob/8afc5b2f596335b47ecc89172ccd9820ec510579/src/types/inc/IInputEvent.hpp#L120) parameter only accept a single code point though.

👉 `TerminalInput` and `KeyEvent` should be modified to accommodate multi-code-point characters (i.e. e.g. by replacing `wchar_t` with `std::wstring`).
Repository: rust
Issue: Tracking issue for reserved impl `impl<T> From<!> for T`
Labels: A-trait-system,T-lang,C-tracking-issue,S-tracking-perma-unstable

## Background

This is a **tracking issue** for a temporary limitation related to the `From` trait and the `!` type. Specifically, we wish to eventually add an impl like the following:

```rust
impl<T> From<!> to T { }
```

We cannot do so now because it would overlap with existing impls. Specifically, the impl `impl<T> From<T> for T` as well as impls of the form `impl<T> From<T> for Foo<T>`, which exist for a number of smart pointer types. There are some plans for how we might add such an impl in the future, described below.

## What is allowed today

Currently you are permitted to add impls of `From<!>` for your own types:

```rust
struct LocalType;
impl From<!> for LocalType { }
```

This is true even though such impls will overlap our planned addition: after all, we already have a number of overlapping cases to deal with.

However, you are **not** permitted to assume that `From<!>` is **not** implemented. If that double negative threw you for a loop, consider this example (which will not compile):

```rust
struct LocalType;
trait SomeTrait { }
impl<T: From<!>> SomeTrait for T { }
impl SomeTrait for LocalType { }
```

Here, the two impls do not presently overlap. This is because `LocalType: From<!>` is not implemented. However, if we were to add the `impl<T> From<!> for T` impl that we would like to add, then these two impls would start to overlap, and your code would stop compiling. Thus we say that this program assumes that `From<!>` is **not** implemented -- because it cannot pass the coherence check unless that is the case. This is precisely the sort of case that is not currently allowed. For more information, see [RFC 1023](https://rust-lang.github.io/rfcs/1023-rebalancing-coherence.html), which introduced the rules limiting negative reasoning.

## How might we add the reserved impl in the future?

The precise mechanism to permit us to add the `From<!> for T` impl is not yet clear. The current "plan of record" is to extend the ["marker trait mechanism"](https://github.com/rust-lang/rust/issues/29864) to accommodate the idea of impls whose entire body consists of unreachable methods and to permit overlap.

cc #64631 -- the internal rustc mechanism used to achieve this limitation
Repository: node
Issue: Impossible to catch error during tls.connect(duplex)
Labels: tls

* **Version**: 10.16.3
* **Platform**: Ubuntu 16.04.1
* **Subsystem**: tls

There seems to be no way to catch synchronous error of underlying duplex stream during `tls.connect` operation.
Code sample:
```javascript
const stream = require('stream');
const tls = require('tls');

const async = false;
process.on('uncaughtException', e=>console.log('uncaught: '+e));

const socket = new stream.Duplex({
    read(size){},
    write(data, encoding, cb){
        let error = new Error('intended error');
        if (async)
            setTimeout(()=>cb(error), 1000);
        else
            cb(error);
    },
});
socket.on('error', e=>console.log('socket error: '+e));

const tls_socket = tls.connect({socket});
tls_socket.on('error', e=>console.log('tls_socket error: '+e));
```
Expected output:
```
socket error: Error: intended error
tls_socket error: Error: intended error
```
Actual output:
```
socket error: Error: intended error
uncaught: Error: intended error
```
Changing `async` to true solves the issue.
Can we allow passing `onError` handler to `tls.connect` method? So, it will be set before calling `_start()` method of TLSSocket.
Repository: opencv
Issue: SIGABRT by cv::Exception on ocl.cpp:4908 -> CV_Assert(u->origdata == data);
Labels: category: ocl

I'm having a lot of intermittent buy frequent aborts raised by this assertion:

https://github.com/opencv/opencv/blob/47007224445af3dce8dadb11174df14d81fd5a34/modules/core/src/ocl.cpp#L4908

inside a loop doing face detection and tracking. It usually happens on the tracking part, FaceEngine.hpp:135

I'm not sure if it's a real bug or a miss use on my side but some sort of race condition is involved on opencv/ocl library/driver side since it is not exactly 100% reproducible (it's somewhere around 70~50%) and depends on run modes and input timming.

You can find attached the outputs of clinfo, getBuildInformation() and a sample project.
[opencv-repro.tar.gz](https://github.com/opencv/opencv/files/3643700/opencv-repro.tar.gz)
[clinfo.txt](https://github.com/opencv/opencv/files/3643702/clinfo.txt)
[getBuildInformation.txt](https://github.com/opencv/opencv/files/3643703/getBuildInformation.txt)

To reproduce the error, run the sample using the "StaticFrameProvider" (as provided). Plz try several times alternating between "run" and "debug" modes if using an IDE (I'm using CLion). Although it fails too if make and run from the command line.

You can also change main.cpp line 36 with the "OpenCvFrameProvider" that uses opencv::VideoCapture. 
When using VideoCapture, the behavior becomes even more weird on an IDE, as launching the program in debug mode will most likely (but not always) result in an abort the first time a cv::Tracker is updated. Otoh if launch in "run" mode, it will only result in an abort if the very first frame contains a face but not if a face appears later in front of the camera.

I tried making copies and clones of the "colorFrame" variable (lenna image or frame from cv::VideoCapture over a webcam) before passing it to the Tracker but it doesn't help much.
Repository: go
Issue: x/tools/benchmark: support parsing custom metrics
Labels: NeedsInvestigation,Tools

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.13 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
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/jsternberg/go/pkg/bin/github.com/influxdata/flux"
GOCACHE="/Users/jsternberg/Library/Caches/go-build"
GOENV="/Users/jsternberg/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jsternberg/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jsternberg/go/src/github.com/influxdata/flux/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/w5/25fg3zv56y7cgd20q4fx_24m0000gn/T/go-build317574403=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

I used [ReportMetric](https://godoc.org/testing#B.ReportMetric) when running a benchmark and attempted to use `benchcmp` to compare the benchmarks.

### What did you expect to see?

I expected `benchcmp` to add an additional section showing the change in numbers for the custom benchmarks.

I then took a look at `golang.org/x/tools/benchmark/parse` to see if that functionality had been added or if the library had been updated so I could write the tool myself, but I see that the code there has not been updated to either read or expose the new custom metrics.

It would be very helpful to update this tool to support these custom metrics. We are beginning to use them to track other metrics and we would like to see how these other metrics change between two changesets.

### What did you see instead?

Nothing.
Repository: pytorch
Issue: torch::nn::Sequential not compatible with torch::nn::RNN
Labels: module: cpp,module: nn,triaged

## 🐛 Bug

(Note from @VitalyFedyunin: CPP implementation fails to report input/hidden sizes errors properly and returns cryptic asserts instead. Actual error hides is this line https://github.com/pytorch/pytorch/blob/420b37f3c67950ed93cd8aa7a12e673fcfc5567b/aten/src/ATen/native/cudnn/RNN.cpp#L1231 and similar for miopen).

-------------

Hello,

I am very new to Pytorch and trying to create a simple example using C++ frontend. After a long time of trying, I found out that I cannot get `torch::nn::Sequential` to work with `torch::nn::RNN`. Nor could I find any example code online where these two are combined. 



## To Reproduce

To reproduce the issue, use the following simple example
```c++
#include <torch/torch.h>
int main(int /*argc*/, char* /*argv*/[]) {
  // Use GPU when present, CPU otherwise.
  torch::Device device(torch::kCPU);
  if (torch::cuda::is_available()) {
    device = torch::Device(torch::kCUDA);
    std::cout << "CUDA is available! Training on GPU." << std::endl;
  }

  torch::nn::Sequential time_serie_detector(
      torch::nn::RNN(torch::nn::RNNOptions(1, 10).dropout(0.2).layers(2).tanh()));
  time_serie_detector->to(device);
  std::cout << time_serie_detector << std::endl;

  auto x = torch::ones(1).toBackend(c10::Backend::CUDA);
  auto a = torch::ones(10).toBackend(c10::Backend::CUDA);
  std::cout << "x = " << x << std::endl;
  std::cout << "a = " << a << std::endl;

  time_serie_detector->forward(x, a);
  time_serie_detector->zero_grad();

  return 0;
}
```
The above code compiles but gives run-time error:

```
terminate called after throwing an instance of 'c10::IndexError'
  what():  Dimension out of range (expected to be in range of [-1, 0], but got 2) (maybe_wrap_dim at ../../c10/core/WrapDimMinimal.h:20)
```

If I declare `time_serie_detector` as `torch::nn::RNN` without using `torch::nn::Sequential`, there is no error occurring.

## Expected behavior

I expected `torch::nn::Sequential` to be compatible with `torch::nn::RNN`. 

## Environment

PyTorch version: libtorch1.2.0
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.13.3

Python version: 2.7
Is CUDA available: Yes
CUDA runtime version: 10.2
GPU models and configuration: GPU 0: GeForce GTX 1060 3GB
Nvidia driver version: 430.26
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.3


cc @yf225
Repository: rust
Issue: std::process::Command doesn't follow Unix signal safety in forked child
Labels: P-medium,I-unsound,C-bug,E-needs-mcve,T-libs,O-unix,A-process

**Update (2022-12-12)**: The issue description is outdated, but [some problems remain](https://github.com/rust-lang/rust/issues/64718#issuecomment-1346099608).

These lines from spawn can cause a deadlock. It's wrong to assume that you can lock in the parent and the unlock in the child. Read man 2 fork and man 7 signal-safety on Linux.

        // Whatever happens after the fork is almost for sure going to touch or
        // look at the environment in one way or another (PATH in `execvp` or
        // accessing the `environ` pointer ourselves). Make sure no other thread
        // is accessing the environment when we do the fork itself.
        //
        // Note that as soon as we're done with the fork there's no need to hold
        // a lock any more because the parent won't do anything and the child is
        // in its own process.
        let result = unsafe {
            let _env_lock = sys::os::env_lock();
            cvt(libc::fork())?
        };

Qumulo has a custom thread library which exposes this issue.
Repository: go
Issue: cmd/go: provide package path for main packages to cmd/compile
Labels: NeedsDecision,FeatureRequest

Can cmd/go provide cmd/compile with the full package path to the source package, even when compiling main packages?

When benchmarking cmd/compile changes, it's useful to key stuff by `myimportpath` (i.e., the `-p` command-line flag) and just spit everything across an entire "go build -a std cmd" build into a single file, and then let `benchcmp` or `benchstat` handle it.

But this currently doesn't work for main packages, because cmd/go sets `-p main` for these:

https://github.com/golang/go/blob/7eef0ca17ae09ae40027dcc78138179e0ed19b10/src/cmd/go/internal/work/gc.go#L50-L56

So you end up with a bunch of "BenchmarkFoo:main" lines, which muddle the benchcmp/benchstat output.

I figure two main options:

1. Change cmd/go to just set `-p` to the package path regardless, and cmd/compile can rewrite it to `"main"` where/if necessary. (Looking briefly at `myimportpath`, some uses would be unaffected; but DWARF and the new ABI stuff might be impacted.)

2. Add another command-line flag for cmd/go to provide the package path, which cmd/compile can use for tagging benchmarking data with instead.

/cc @rsc @aclements
Repository: terminal
Issue: Add Registry Key Check/Set in Feature Tests
Labels: Product-Conhost,Issue-Task,Area-CodeHealth

We need to add a way to check and set the registry keys in the feature tests.

One important registry key to check/set is the wrap key.
Repository: go
Issue: x/perf/cmd/benchstat: GitHub markdown table output
Labels: NeedsInvestigation,FeatureRequest

GitHub supports tables in markdown format: https://help.github.com/en/articles/organizing-information-with-tables

It would be handy if benchstat could easily output in this format for pasting benchstat output into issues.
Repository: pytorch
Issue: Support FPGA Xilinx
Labels: triaged,module: backend

Hello, World!

We are a group intending to accelerate some Pytorch operations on Xilinx UltraScale FPGAs. However, we are a little lost to where to begin to port the functions.

From what we could see, we think we can start from the CUDA implementation and modify it to use the OpenCL API and add an FPGA device type and components _(Streams, Storage, Tensors, ...)_.

We would like to have some guidance on the right way to take. Would you be so kind to help us?
Thank you.
Repository: go
Issue: go/packages: return information on missing imports
Labels: NeedsFix

`gopls` currently has some handling for packages that were imported but not found by `go/packages`. This is something that `go/packages` could return more effectively, either through its errors or through an additional field.
Repository: vscode
Issue: [html] Jump to after next opening HTML tag
Labels: feature-request,html

It would be great if there were a keyboard shortcut which moved the cursor to within the next HTML element, right after the opening tag. This would be really useful, because Emmet is great for building out the structure, but then I have to type in the data and it's a lot of mouse clicking / arrow keys.

For example, say I am starting here:
![image](https://user-images.githubusercontent.com/22269691/65483112-f1ade980-de4f-11e9-85f7-4ed96b9bd3f4.png)

and I want to move the cursor here:
![image](https://user-images.githubusercontent.com/22269691/65483182-2752d280-de50-11e9-8593-694d3883eca5.png)

I'd like to do this with one keyboard shortcut instead of 5 arrow presses (I know Ctrl can be used with arrow keys to navigate between words but it is still an issue)
Repository: go
Issue: cmd/go: clarify error message when importing a package that could be (but isn't) in the main module
Labels: help wanted,NeedsFix,modules

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.13 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></summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/johnrinehart/Library/Caches/go-build"
GOENV="/Users/johnrinehart/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/johnrinehart/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/johnrinehart/MyGo/playground/test/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wg/8x33rs4j5d7bgr5z58_4ql0m0000gn/T/go-build825724138=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

I imported a path that was not a valid package (because of a combination of build tags, test files, `documentation` package files, and/or no files present, but was a valid path to a directory on a filesystem (one which contained (an)other package(s)). `go build ./...` and `go test ./...` and `go mod tidy` report an error in finding the path to the package within the module.

### What did you expect to see?
I guess it would have been nice to see (both) 2 things output (as @Helcaraxan and @thepudds have suggested in [Gophers slack (#modules)](https://gophers.slack.com/archives/C9BMAAFFB/p1569212040171800):

1. There’s no such module online
1. No *.go files matching current build constraints

### What did you see instead?
Before the module was pushed to a GitHub repository (everything local)
```
https://gist.github.com/johnrichardrinehart/2d9944249e4d1e0f17c608149d50ff39
```
and after the module was pushed to a repository (`github.com/johnrichardrinehart/a`) instead of (`github.com/a`, as in the gist):
```
johnrinehart@modie test (master) $ go mod tidy
go: finding github.com/johnrichardrinehart/a/folder latest
github.com/johnrichardrinehart/a/folder/pkg imports
        github.com/johnrichardrinehart/a/folder: no matching versions for query "latest"
```
Repository: opencv
Issue: Cannot read ONNX model, error in reshape_layer.cpp, function 'computeShapeByReshapeMask'
Labels: feature,category: dnn,category: dnn (onnx)

#### System information (version)
- OpenCV => 4.1.1 (master branch, commit a74fe2ec01d9218d06cb7675af633fc3f409a6a2)
- Operating System / Platform => Debian Linux 64 Bit
- Compiler => gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

##### Detailed description

Error while trying to read pretrained ONNX DNN model file:

> cv2.error: OpenCV(4.1.2-pre) /media/sdb2/opencv/modules/dnn/src/layers/reshape_layer.cpp:125: error: (-5:Bad argument) Copy dim[3] (which has zero size) is out of the source shape bounds in function 'computeShapeByReshapeMask'

##### Steps to reproduce

```.python
net = cv.dnn.readNetFromONNX('/media/sdb2/temp/mask_rcnn_R_50_FPN_1x.onnx')
```

Model file is available online at the [page](https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/mask-rcnn)  ([direct link](https://onnxzoo.blob.core.windows.net/models/opset_10/mask_rcnn/mask_rcnn_R_50_FPN_1x.onnx) )

I also tried model from [other page](https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/faster-rcnn) with the same error