sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vue
Issue: dynamic v-slot maybe overwite when used together with v-for on same element
Labels: bug,has workaround

### Version
2.6.10

### Reproduction link
[https://jsfiddle.net/zrh122/scg6eq1t/](https://jsfiddle.net/zrh122/scg6eq1t/)







### Steps to reproduce
1. open the reproduction link
2. look at the rendered result

### What is expected?
```js
a: a
b: b
```

### What is actually happening?
```js
a:
b: b
```

---
This is an english version of issue #10165.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: TypeScript
Issue: Allow constant strings as string literals for dynamic import statements.
Labels: Needs Investigation

## Search Terms

Use constant string in place of string literal for dynamic import statements.

## Suggestion

Honestly I don’t know if this is a bug or a suggestion.

Is there a way to allow constant string to represent string literals?  I’m thinking this should work, but it doesn’t.  For example:

    const moduleName = "../../../Project/src/Mod";

    async function doSomething() {
        var mod = await import(moduleName); // (works only if a string literal at the moment)
    }

In the case above, "mod" is of type "any" because the compiler doesn't recognize the string literal in the constant `moduleName` (for literal strings, the types are correctly pulled).  I'm not sure if this was an oversight, but it makes sense to allow it, since constant strings cannot be reassigned.  The only workaround is to wrap `await import("../../../Project/src/Mod");` in a function:

    async function getMod() { return import("../../../Project/src/Mod"); }
    async function doSomething() {
        var mod = await getMod(); // (method required since const strings cannot be used to import module type)
    }    

I may also add, it seems very difficult to import namespaces using dynamic imports, which I think is another terrible oversight.

    async function doSomething() {
        var mod = await import("../../../Project/src/Mod"); // (forced to use a string literal to get typings)
        var o: mod.SomeClass; // ERROR, cannot find namespace 'mod'
        // var o: InstanceType<typeof mod.SomeClass>; // workaround1
        // var o: import("../../../Project/src/Mod").SomeClass; // workaround2 (who wants to keep typing full paths? A const string would be nice here.)
    }

That doesn't even make sense.  A namespace, while a type, is still a reference under the hood, and thus should still be importable dynamically somehow; perhaps like:

    async function doSomething() {
        import mod = await import("../../../Project/src/Mod"); // (forced to use a string literal to get typings)
        var o: mod.SomeClass;
    }

I think all this would aim to better support dynamic imports "on demand" instead of modules forcibly loading every single module when some may not be needed at all,  It could also help promote faster initial page loads in many cases. ;)

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: opencv
Issue: Error while reading DeeplabV3+ xception_65 model in Opencv4.0
Labels: category: dnn

##### System information (version)
- OpenCV => 4.0
- Operating System / Platform => Ubuntu 16.04
- Compiler => cmake
- Tensorflow => 1.13.1
- Python => 3.5
- protobuf => 3.6.1

##### Detailed description

terminate called after throwing an instance of 'cv::Exception' what():  OpenCV(4.0.0) /home/cas/work/opencv-4.0.0/modules/dnn/src/tensorflow/tf_importer.cpp:1155: error: (-213:The function/feature is not implemented) Unsupported squeeze configuration in function 'populateNet'

##### Steps to reproduce
when i run the codes below, above problem occurred:
```
#include <string>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utils/filesystem.hpp>
using namespace std;
using namespace cv;
int main()
{
  cv::Mat src;
  src = imread("/home/cas/work/readpb_opencv/src/opencv_pb/test_image/33.jpg");
  string weights = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb";
  string prototxt = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt";
  dnn::Net net = cv::dnn::readNetFromTensorflow(weights, prototxt);
  cv::Mat blob = cv::dnn::blobFromImage(src,1.0,cv::Size(640, 480),cv::Scalar(),true,false,CV_8U);
  net.setInput(blob);
  Mat output = net.forward();
  imshow("result",output);
  waitKey(0);
  return 0;
}
```
the way i get the 'step13000_graph.pbtxt' is :
```
import tensorflow as tf
# Read the graph.
with tf.gfile.FastGFile('/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb','rb') as f:
    graph_def = tf.GraphDef()
    graph_def.ParseFromString(f.read())
# Remove Const nodes.
for i in reversed(range(len(graph_def.node))):
    if graph_def.node[i].op == 'Const':
        del graph_def.node[i]
    for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
                 'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
                 'Tpaddings']:
        if attr in graph_def.node[i].attr:
            del graph_def.node[i].attr[attr]
# Save as text.
tf.train.write_graph(graph_def, "", "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt", as_text=True)
```
Any help in resolving this would be greatly appreciated. Thanks !
Repository: pytorch
Issue: CRITICAL:root:Cannot load caffe2.python. Error: DLL load failed: The specified module could not be found.
Labels: caffe2

## ❓ Questions and Help
I'm installing into a conda env. it is on Windows 10 . No GPU on machine.
I am following instructions from https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile

And the build is success.
![image](https://user-images.githubusercontent.com/30762967/61205807-9eb70800-a723-11e9-8cb1-375938b085a1.png)

Then I copy C:\Users\v-hadong\pytorch\build\caffe2\python\caffe2_pybind11_state.pyd to Python’s DLL folder C:\Users\v-hadong\AppData\Local\Continuum\anaconda2\envs\caffe2\DLLs\

and then the error is happened as the following picture:
![image](https://user-images.githubusercontent.com/30762967/61207459-bb553f00-a727-11e9-9f1d-e3968dfcae70.png)
Repository: angular
Issue: Default Content-type entity header for JSON differs between Angular vs AngularJs 
Labels: type: bug/fix,freq1: low,area: common/http,P4

**IMPORTANT**
This is not necessarily a bug. Primarily I am just trying to gather some additional information about different behaviour of AngularJs (`$http`) and Angular (`HttpClient`) APIs.

Please note that I've asked the same question on SO and Gitter but haven't received any answers so I decided to ask it there:

In AngularJs the default `Content-type` for `JSON` request is set like:

`Content-Type: application/json; charset=UTF-8`

This is the part of the AngularJs code that does it:

[http.js](https://github.com/angular/angular.js/blob/6706353a71e3c11c56c0b19be03600dac57aafe1/src/ng/http.js#L333)

... and this is the commit in which `charset=UTF-8` parameter was added:

[angular/angular.js@10f80d7](https://github.com/angular/angular.js/commit/10f80d7d2918f98262090b425ecc294d9518aa7e)

Now in the case of Angular only 

`Content-Type: application/json` 

is used:

[xhr_backend.ts](https://github.com/angular/angular/blob/f8096d499324cf0961f092944bbaedd05364eea1/packages/http/src/backends/xhr_backend.ts#L165)

Side note:
We've noticed this when migrating from AngularJs (`$http`) to Angular (`HttpClient`).

Does anyone know why this difference?
Repository: go
Issue: x/net/icmp: Hogs CPU on Windows, doesn't capture packets
Labels: NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.7 windows/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
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\bob\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\bob\go
set GOPROXY=
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 GOMOD=
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\bob\AppData\Local\Temp\go-build347592694=/tmp/go-build -gno-record-gcc-switchesv
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

I would like to receive all incoming ICMP packets and their payload/message, and once I am able to do that I would like to filter said packets so only specific IP sources and/or payloads/messages are captured and logged. 
I would like this to work on both Linux and Windows, but at the moment I am experiencing issues specifically on Windows (works as expected on Linux). Tested on a Window 7 64-bit virtual machine on VirtualBox (running on Arch Linux).

I'm using the code found in the accepted answer for this StackOverflow question, with slight alterations:
https://stackoverflow.com/questions/33345683/how-to-listen-for-icmp-packets 

My code (running as Admin):
https://play.golang.org/p/RmuJmXgLKJk

I've replaced the IP address in `ListenPacket()` to the local address of the virtual machine on which I would like to log incoming ICMP packets (`192.168.0.111` in Playground link, also tried `0.0.0.0`). 

I've also added `if sourceIP == nil { continue }` so that only ICMP packets containing a source IP are displayed. Without this condition, I was seeing infinite logs displaying an empty message and `nil` source address. 

When I ping the virtual machine on which this code is running, the program does not display any messages. Also, the program uses up a lot of CPU (%90-%99) and the machine almost freezes up. 

### What did you expect to see?

Logs of ICMP packets with source IP and message. Minimal CPU usage.

### What did you see instead?

With `if sourceIP == nil { continue }`: No logs, program hogs CPU ~%98.
Without `if sourceIP == nil { continue }`: Infinite logs, program uses %10-%20 CPU.
Repository: pytorch
Issue: Make it easier to bisect on PyTorch
Labels: module: build,module: ci,triaged,better-engineering

@pietern mentioned recently that he attempted to bisect a bug in 0.4.1, and it was difficult; only 2 out of 10 commits were buildable. It would be helpful if we had some set of scripts or documentation that made it easier to do bisect; e.g., telling us about when build commands changed, or how to work around a symbol error (or fix some Git configuration.)

@fmassa also suggests that if we have nightlies, we can just query for specific dates, and use those builds to test more quickly. @pietern Each build is about 400M for each architecture. So the aggregate size would be a couple of gigabytes; doing this for every commit would be very excessive.
Repository: TypeScript
Issue: Bug in typing iterable iterator with symbol
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.6.0-dev.20190713

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** symbol iterableiterator

**Code**

```ts
const Foo = Symbol()
type FooType = typeof Foo

type SomeType = number | FooType

function giveMeSomeType(): SomeType {
    return (Math.random() > 0.5) ? 42 : Foo
}

const it: IterableIterator<SomeType> = [giveMeSomeType()][Symbol.iterator]()
```

**Expected behavior:** local constant `it` is typechecked correctly

**Actual behavior:**

Typechecking fails with error:

```
index.ts:10:7 - error TS2322: Type 'IterableIterator<number | symbol>' is not assignable to type 'IterableIterator<SomeType>'.
  Type 'number | symbol' is not assignable to type 'SomeType'.
    Type 'symbol' is not assignable to type 'SomeType'.

10 const it: IterableIterator<SomeType> = [giveMeSomeType()][Symbol.iterator]()
```

**Playground Link:** http://www.typescriptlang.org/play/#code/MYewdgzgLgBAYiEMC8MDKBPAtgIxAGwAoBKAKCgwAcBTeRAFSttQppADM6RTyn0Qs1RjRQwwAV1zUATjAA+XYdR4B6FTA4xQ46RFoBDCBEm0oAC32xzASwgx24sMCjXwWkOPwATGNOpQdMBhqa3MZLg1ZCSlpUgcnFzcAc2sAN2oAWWo0ASEmEgAufkElGABvUhgq339AmAAWACZSAF8eUEhYUKKASSgZfRx8aj6BqBBpAB4ckqYAPlEAbRT0rJm8mhIAXUXMXAIAOlCxia2SUiA

**Related Issues:** couldn't find
Repository: pytorch
Issue: Difference between dropout2d and dropout3d
Labels: module: nn,triaged


## 🐛 Bug
The difference between ``Dropout2d`` and ``Dropout3d`` is not clear. They use exactly same code but different documentation. As in the documentation of ``Dropout2d`` and ``Dropout3d``, they should have different shapes of input, but it seems that they can work for inputs with other shape (dimension > 2). Should we just combine them (a generalized one)? Or at least restrict the input?
<!-- A clear and concise description of what the bug is. -->

## To Reproduce
```
torch.manual_seed(0)
m = nn.Dropout3d(p=0.2)
input = torch.randn(2, 2, 2)
output = m(input)
output
tensor([[[ 1.9262, -0.3668],
         [-2.7235,  0.7105]],

        [[-1.3557, -1.7482],
         [ 0.5042,  1.0475]]])

torch.manual_seed(0)
m = nn.Dropout2d(p=0.2)
input = torch.randn(2, 2, 2)
output = m(input)
output
tensor([[[ 1.9262, -0.3668],
         [-2.7235,  0.7105]],

        [[-1.3557, -1.7482],
         [ 0.5042,  1.0475]]])
```
Repository: flutter
Issue: Add support in flutter analyze for context messages
Labels: c: new feature,tool,a: quality,P3,team-tool,triaged-tool

As of (https://dart-review.googlesource.com/c/sdk/+/108967) the analysis server is now sending context messages with the diagnostics it reports. They are represented as `DiagnosticMessage` objects attached to the `AnalysisError` objects returned via `analysis.errors`.

These context messages contain additional information that should help users understand the root cause of an issue. The `DiagnosticMessage` contains a textual message, but also contains a location that can be used to find a line to be displayed, support navigation, etc.

It would be great if we could get support for this feature in `flutter analyze`.
Repository: TypeScript
Issue: Add a "keep-current" label for PRs that causes the bot to keep them rebased onto `master`, if possible
Labels: Infrastructure

This way long-running PRs for experiments can get notified when they become out of date with `master`.
Repository: go
Issue: cmd/go: go mod mvs: explain MVS selection
Labels: NeedsInvestigation,FeatureRequest,GoCommand,modules

Actually, I'm not sure if it should be `go mod mvs`, some different subcommand, or rolled into something like `go mod why`. But, what I'd like is something like:

```
$ go mod graph
cloud.google.com/go go.opencensus.io@v0.21.0
cloud.google.com/go github.com/foo/bar@v0.0.1
cloud.google.com/go google.golang.org/api@v0.4.0
google.golang.org/api@v0.4.0 go.opencensus.io@v0.22.0
github.com/foo/bar go.opencensus.io@v0.17.3
$ go mod mvs
go.opencensus.io@v0.22.0
    go.opencensus.io@v0.22.0
    go.opencensus.io@v0.21.0
    go.opencensus.io@v0.17.3
github.com/foo/bar@v0.0.1
    github.com/foo/bar@v0.0.1
google.golang.org/api@v0.4.0
    google.golang.org/api@v0.4.0
```

I'm also not sure what the exact output should be. The above's output isn't great because it's not easily combined with things like `go mod graph`. Basically, I'm reaching for a way to get an explanation of which versions of modules were actually picked, and why they were picked.
Repository: flutter
Issue: Update the ui_unittests harness to run Dart code.
Labels: a: tests,team,engine,P2,team-engine,triaged-engine

Currently, only the `shell_unittests` and `runtime_unittests` can run Dart code.
Repository: flutter
Issue: Dart tests in the engine should be able to specify dependencies.
Labels: a: tests,engine,P3,team-engine,triaged-engine

Currently, no `pub` dependencies may be specified in engine unit-tests that use Dart.
Repository: flutter
Issue: Creating an iOS platform view needs a way to return an error message
Labels: platform-ios,framework,a: platform-views,c: proposal,a: error message,P2,team-ios,triaged-ios

Right now [FlutterPlatformViewsFactory](https://github.com/flutter/engine/blob/0fa6f40fcfc1b28d5150d414c147488f3922a99b/shell/platform/darwin/ios/framework/Headers/FlutterPlatformViews.h#L41) does not allow the implemented to return an error message when creating a view.
Repository: flutter
Issue: iOS: Blank screen in running my flutter app in release mode
Labels: c: crash,platform-ios,tool,engine,customer: crowd,t: xcode,P2,team-ios,triaged-ios

Currently when running my app either from the terminal through the command `flutter run -d "iPhone" --release` or directly from xcode in release mode I got blank screen, and when inspecting the logs I can find the following error.
`Runner[3296:651656] [VERBOSE-2:engine.cc(116)] Engine run configuration was invalid.
Runner[3296:651656] [VERBOSE-2:FlutterEngine.mm(294)] Could not launch engine with configuration.`
Kindly find below the output of `flutter doctor`

```
- Doctor summary (to see all details, run flutter doctor -v):
- [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.5 18F132, locale en-EG)
- [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
- [!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
-     ✗ CocoaPods not installed.
-         CocoaPods is used to retrieve the iOS platform side's plugin code that
-         responds to your plugin usage on the Dart side.
-         Without resolving iOS dependencies with CocoaPods, plugins will not work
-         on iOS.
-         For more info, see https://flutter.io/platform-plugins
-       To install:
-         brew install cocoapods
-         pod setup
- [✓] Android Studio (version 3.2)
- [✓] Connected device (2 available)
```

Any help would be appreciated, 
thanks in advance :)
Repository: electron
Issue: Disable SIG handler of AtomBrowserMainParts
Labels: enhancement :sparkles:,pr welcome

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
<!-- Is your feature request related to a problem? Please add a clear and concise description of what the problem is. -->
There is no API to disable AtomBrowserMainParts' shutdown handlers so that OS or S/W platform already supports own signal handler.

### Proposed Solution
<!-- Describe the solution you'd like in a clear and concise manner -->
By Electron API or By native method (i.e. atom switch)

### Alternatives Considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

### Additional Information
<!-- Add any other context about the problem here. -->
Repository: kubernetes
Issue: [Performance] Etcd get node-lease latency is higher than put latency and not within SLO limits
Labels: kind/bug,sig/scalability,sig/api-machinery,lifecycle/frozen

**What happened**:
When running GCE 5K scale tests (either kubemark or regular) we discovered that the get Lease latency is significantly higher than put Lease latency. This is counter-intuitive and what's even worse the 99th pctl of get lease latency is often not withing our SLOs. Some graphs

ApiServer Latency:
![PVSS3XgtWvQ](https://user-images.githubusercontent.com/2604887/61286449-29027900-a7c3-11e9-869a-b20b67b6c253.png)


ETCD latency:
 
![974GOWuxZ4g](https://user-images.githubusercontent.com/2604887/61286624-839bd500-a7c3-11e9-88ab-f0fc2d96d15a.png)

![t3sGUmmEqW6](https://user-images.githubusercontent.com/2604887/61286633-8a2a4c80-a7c3-11e9-9d8b-4b6cebde7dc4.png)

 
**What you expected to happen**:
The get latency should be lower than put latency on the etcd level, the e2e get lease latency should be within scalability SLOs

**How to reproduce it (as minimally and precisely as possible)**:
Run ci-kubernetes-e2e-gce-scale-performance

**Anything else we need to know?**:
SIG scalability has already reached out to the etcd team and asked about this.

/sig scalability
/assign
Repository: TypeScript
Issue: Allow configuration of ts.server.maxFileSize
Labels: Suggestion,Awaiting More Feedback

## Search Terms
```
configure maxFileSize
largeFileReferenced
```

## Suggestion

Allow the maxFileSize property to be configurable.
## Use Cases

Currently, when trying to import large JSON files, the Typescript Language Service fails to provide intellisense due to the maxFileSize limit being exceeded.

## Examples
```
[Trace  - 10:29:07 AM] <semantic> Event received: largeFileReferenced (0).
Data: {
    "file": "/home/user/project/src/data.json",
    "fileSize": 6534662,
    "maxFileSize": 4194304
}
```
## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).