sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: cv::transform requires Nx1 C-channel Mats, doesn't take NxC Mats
Labels: RFC

- OpenCV => 3.2

`cv::transform` uses .channels() to check if the src input has the appropriate number of "columns". however, it assumes that the src matrix has this dimension as a channel count, not as a number of columns. the function does use m.cols (of the transform matrix) though.

This requires me to pass reinterpreted input matrices. For the python case, that's a reshape to (-1, 1, dcn) or similar. I find that tedious.

Other OpenCV functions use .checkVector(). Maybe there's something even more fitting, but I'm not that familiar with the code base.
Repository: flutter
Issue: Accessibility Checker
Labels: c: new feature,tool,a: accessibility,P3,team-tool,triaged-tool

Would be cool to have an accessibility checker (maybe as analyzer plugin) that tells people what's missing in their flutter app to make it accessible. It should for example warn if there are controlls without meaningful labels.
Repository: TypeScript
Issue: TypeScript Language Service is slow to load projects over network file systems
Labels: Bug

**TypeScript Version:**  2.3.4

We have our code on a networked/FUSE file system with different root directories for generated files and such. We use the node module resolution. To load a fairly simple Angular+Angular material+RxJS project(transitively ~1.7K .ts and .d.ts files) the language service takes around 24 seconds to resolve all modules and return diagnostics. We can see about ~50K file stats being made to resolve everything.

In our case we actually generate tsconfig.json for our editors through a build step and we actually create the list of all the files the project needs in the "files" section of tsconfig.json.

We built a custom solution that uses this files list to proxy the ServerHost in the Language service - to respond to fileExists and directoryExists by using the "files" list instead of hitting the file system a whole lot of times. This reduced the initial project load time to 4 seconds (and is mostly just the overhead of reading all the files) which is very much an 

Here is a PR of the fix we have currently - https://github.com/vikerman/TypeScript/pull/1/files

It would be nice to have a cleaner solution for this in the language service itself (maybe as an option?). This would help any team who have a similar network/FUSE file system as their source repository.

@chuckjaz @alexeagle
Repository: go
Issue: x/net/netlink, vendor/golang.org/x/net/netlink: new package
Labels: Proposal,Proposal-Accepted,NeedsFix

I propose to have a x/net/netlink package and vendor it to the standard library for maintenance purposes.

Netlink is a Linux-specific service for manipulating networking facilities inside the kernel. Fortunately, unlike routing messages and sockets on BSD variants, it doesn't have much ABI incompatibility between major kernel releases, but its complexity like TLV-in-AVP-in-TLV data representation could be a root cause of issues like #18714, #16681. So I think it's better to have and maintain a small separated package like the existing x/net/route package.

The exposed API would be like the following:
- minimal netlink message types mostly for the use of standard library,
- minimal netlink message parsers mostly for the use of standard library,
- both types and parsers are ABI agnostic and safe from potential misaligned memory access.

Thoughts?
Repository: vscode
Issue: Add "line_padding_bottom", "line_padding_top" like sublime text
Labels: feature-request,editor-core

"Line height" property makes cursor indicator bigger. In Sublime Text `{"line_padding_bottom", "line_padding_top"}` is much better actually.

![image](https://user-images.githubusercontent.com/17777237/113779857-9dffaa00-972e-11eb-84cd-e4f8a96e61a3.png)


All the best ... VSCode Team.
Repository: neovim
Issue: E576: Error while reading ShaDa file: there is an item at position 270498 that must not be there: Missing itemsare for internal uses only
Labels: bug,needs:repro

- v0.2.0
- Vim 8.0 works well.
- macOS Sierra 10.12.5 (16F73)
- iTerm2 v3.0.15
- `$TERM`: screen-256color

### Actual behaviour
When I start neovim by `nvim`, it prints an error message which is `E576: Error while reading ShaDa file: there is an item at position 270498 that must not be there: Missing items are for internal uses only`. But it works well before, I don't known what caused this.

### Expected behaviour

Start without printing any error message.

### Steps to reproduce using `nvim -u NORC`

```
# It has the same problem.
nvim -u NORC
```

### Similar issue

#6652 
#4108

![image](https://user-images.githubusercontent.com/3297602/27000720-f163b290-4dea-11e7-9944-f30f52cf34c8.png)
Repository: neovim
Issue: Method for debouncing/pausing folds
Labels: enhancement,folds

[parinfer](http://shaunlebron.github.io/parinfer/) is a method for editing lisp.

In the example "Insert or delete a line without rearranging parens:", there is a part where closing parens are closed. This then triggers an automatic re-balance.

In vim, with `set fdm=syntax`, the way this reacts with regards to folding is like:

```
(ns example.core
  (:require
    [clojure.string :refer [join]]
    [clojure.data :refer [diff]]))
```

Then doing `dd` leaves the parens unbalanced

```
(ns example.core
  (:require
    [clojure.string :refer [join]]
```

This causes folding to start searching for that closing paren, and in the process will open all of the current folds too. On a large file (I observed this on a 1.3k loc file) this search takes a noticable time. Then [nvim-parinfer.js](https://github.com/clojure-vim/nvim-parinfer.js) reacts to the `TextChanged` event, and re-balances, also triggering a re-fold (less time, but still noticeable).

Some possible solutions come to mind:

1. `TextChangedPre` event which runs before fold updates, which would allow nvim-parinfer to do `set fdm=manual`, before restoring the value in `TextChanged`
2. https://github.com/Konfekt/FastFold does speed up this case, so is a workaround
3. Trigger re-folding in some kind of `TextChangedPost` event, or generally after the TextChanged auto command has taken place (this seems like a potentially breaking change for anything that searches for those folds)

There may be other/better approaches.
Repository: rust
Issue: target_pointer_width in proc-macro crates provides build-time width, but some clients want runtime width
Labels: A-macros,T-dev-tools,C-feature-request

I'm trying to add cross compilation (to compile 32bit) to my crate, and `target_pointer_width` is 64 in the proc-macro crate (like the host), and 32 in the root crate (like the target):

How can I get the real `target_pointer_width` in a proc-macro crate?
Repository: go
Issue: x/crypto/acme/autocert: serve self-signed cert for localhost?
Labels: NeedsDecision,FeatureRequest

Idea inspired by a mailing list post on golang-nuts,

What if the autocert package [optionally?] could serve a self-signed cert for localhost connections?

It can look at SNI "localhost" and/or the connection addr being a loopback address.

Might be nice for testing / consistency.

/cc @x1ddos
Repository: nvm
Issue: nvm should allow installation of v8-canary
Labels: feature requests

Link: https://nodejs.org/download/v8-canary/ has the bleeding edge v8

This would be tremendously useful for testing
Repository: youtube-dl
Issue: Unable to download tv.com's embedded http://can.cbs.com/thunder/player/chrome/canplayer.swf videos.
Labels: site-support-request

Example:

$ youtube-dl -v http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.8
[debug] exe versions: ffmpeg 3.2.5-1, ffprobe 3.2.5-1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Requesting header
WARNING: Falling back on generic information extractor.
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Downloading webpage
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Extracting information
ERROR: Unsupported URL: http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/
Traceback (most recent call last):
  File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
    ie_result = ie.extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
    ie_result = self._real_extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/

Thank you in advance. :)
Repository: angular
Issue: Feature request: ngBeforeDestroy
Labels: feature,area: core,core: lifecycle hooks,feature: under consideration

**I'm submitting a ...**  (check one with "x")
```
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

**Current behavior**
When ngOnDestroy is called, the element is already removed from the DOM. 

**Expected behavior**
Before ngOnDestroy and before removing from DOM, ngBeforeDestroy would get called.

**What is the motivation / use case for changing the behavior?**
I have a list of items. When the currently focused one is removed, I want to focus the next item. However, due to the element already being out of DOM, I do not know what the next item in DOM is.

Thank you.
Repository: go
Issue: x/exp/mmap: should offer access to the mapped byte slice
Labels: NeedsInvestigation,FeatureRequest

Currently the only way the mapped data is accessible is through the `ReadAt(p []byte, off int64)` method, which copies from `r.data` (the mapped area) to `p`.

I realize that this was probably a deliberate decision, because if it were possible to create further references to the underlying (mapped) array of `r.data` and those references were accessed after the ReaderAt's `Close()` method was called, the application would crash.

However, one of the reasons to use mmap is usually performance. In my application I am just copying big chunks of data out of an mmapped area into a pipe. To be honest I have not quantified the impact, but I can imagine that if I could avoid the second copying I could increase the throughput/reduce the CPU load.

Maybe the issue of unsafeness can be addressed by allowing access through a Method named something like `UnsafeRawAccess()` or something?

The reason why I don't just implement the whole mmapping myself is that the package still offers some value in abstracting the mmap system calls for the different platforms.
Repository: vscode
Issue: [css] Use CSS custom properties imported via @import
Labels: feature-request,css-less-scss

Is it possible for VS code to recognize CSS variables declared in a separate CSS file that is imported with `@import` ?

For example, I would like to have a `variables.css` file that is all about declaring CSS custom properties. Then I would import that file on top of my main css file, and be able to have intellisense support for those variables.

The way things work now, VSCode is not able to recognize those variables. Or maybe I am missing something obvious?
Repository: flutter
Issue: Add parseable output for flutter doctor
Labels: c: new feature,tool,t: flutter doctor,P2,team-tool,triaged-tool

I thought I'd discussed this with someone before, but can't find it anywhere.. It'd be nice if an IDE can execute `flutter doctor` and provide info to the user when there are problems.

The current output isn't too bad for parsing, but it could be fragile if there are changes or if it becomes interactive and starts expecting input.

It'd be good to have a new switch (eg. `--machine`) that'll give output in a consistent format. Another possibility is adding it as a command to `flutter daemon`, however I don't know if the daemon can actually run if there are missing pre-requisites, so maybe that's not a good idea!
Repository: rust
Issue: rustc: Uses 75G of RAM and takes 1h30 on attached
Labels: C-enhancement,I-compiletime,T-compiler,I-compilemem

The code at http://www.treblig.org/daveG/play-75G.rs (attached) causes rustc to take 75G of RAM and 1.5hours to compile (before it spits a reasonable error)

It is an experiment with type unification and does contain a screwup; when I fixed the screwup it returned to taking about 2mins and about 250MB even with all my type unification fun;  I've not changed the recursion limits.

75G is probably bad; I can't necessarily call it a bug but it does smell suspicious;  I'm wondering if it's associated with the code that reports the 'trait bound .... is not satisfied' and providing the explanation of it.
[play-75G.txt](https://github.com/rust-lang/rust/files/1066696/play-75G.txt)

rustc 1.17.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 3.9
Repository: kubernetes
Issue: Multi Tenancy for Persistent Volumes
Labels: sig/storage,kind/feature,lifecycle/frozen,wg/multitenancy

**What keywords did you search in Kubernetes issues before filing this one?** tenancy

This issue intends to start a discussion on how to do Multi Tenancy in Kubernetes for Persistent Volumes in particular.  

My team is currently trying to enable Stateful Apps for our internal customers. One requirement that keeps coming up is how to isolate PV's of one internal customer from PV's of another internal customer. 

I see the following isolation mechanisms:-
- A PV when bound to a PVC(inside namespace A) cannot be bound to another PVC(inside namespace B) unless the unbind happens and hence are exclusive. 
- When using StorageClass, A PV of certain class can only be bound to PVC of the same class. So that means PVC(of class A) can only be bound to PV(of class A). This allows a PV allocated to one customer to not accidentaly get allocated to another customer), assuming each customer gets a separate StorageClass.

While the above isolation is good, its not enough(as i understand it). In a multi -tenant environment we want mechanisms which can guarantee that a volume allocated to one customer can never be accidentally allocated/mounted/accessed by another customer. 

When using Kubernetes, what should we recommend to our customers ?

Few more questions, considerations:-
- Why are Persistent Volumes not namespaced ?
- Is one or more  StorageClass'es per Customer a good multi tenancy model ? 
- Why does AttachDisk on volumes always happen on the node using kubelet ? The reason i ask is ,in some networked storage, for e.g. EBS and RBD, this can be dome from the master nodes. Doing this from kubelet means exposing more permissions to users then is necessary.

Some form of RBAC might be good, but currently it works cluster wide or per namespace. Since Volumes are considered cluster wide, we can only do cluster wide RBAC, but the volumes belong to different tenants, so we want something else(we need to define that something else)


Some related discussion on multi tenancy here.
https://github.com/kubernetes/kubernetes/issues/40403
Repository: javascript
Issue: Proposal. Simplify point 4.5 (Filter)
Labels: question

In this part of best practice I found a part of code
```
// bad
inbox.filter((msg) => {
  const { subject, author } = msg;
  if (subject === 'Mockingbird') {
    return author === 'Harper Lee';
  } else {
    return false;
  }
});

// good
inbox.filter((msg) => {
  const { subject, author } = msg;
  if (subject === 'Mockingbird') {
    return author === 'Harper Lee';
  }

  return false;
});
```

But, it seems that we can write this part of code better:

```
inbox.filter((msg) => {
  const { subject, author } = msg;
   return subject === 'Mockingbird' && author === 'Harper Lee';
});
```
Isn't it?

Thanks,
Andrii
Repository: opencv
Issue: opencv_annotations enhancement
Labels: feature,category: apps

I use opencv3.2. Iam very happy that there is the opencv_annotations tool included.
However - It is very hard to set the first click right because you dont know exactly if your cursor is aligned correctly in both axis.

It would improve usability and usage speed a lot when the cursor would be tracked by dotted lines in every dimension. 

```
         .
         .
         .
         .
.........C............................
         .
         .
         .
         .
         .
```
Repository: flutter
Issue: TextSpan gesture recognition 2.0: bubbling and managed recognizer lifetimes
Labels: c: new feature,framework,f: gestures,c: proposal,P3,team-framework,triaged-framework

## Steps to Reproduce

1. compose a simple widget containing a `TextSpan` with a `recognizer`.

```dart
final recognizer = new TapGestureRecognizer()
  ..onTap = (){ print('pressed'); };
final textSpan = new TextSpan(
  children: [new TextSpan(text: 'text')],
  style: someStyle,
  recognizer: recognizer
);
```

2. tap on the textSpan

## Expected

Callback getting invoked

## Really happened

Callback not getting invoked

---

Did I misunderstand something about the gesture mechanism?

I found something similar here: https://github.com/flutter/flutter/blob/bf017b79b3be7de9409b53d503cc8582c8fd5500/packages/flutter/test/widgets/hyperlink_test.dart
Repository: godot
Issue: UWP exported app does not work in release mode
Labels: bug,topic:buildsystem,platform:uwp

I'm having a hard time figuring out this problem, so I'll leave this issue open until I (or someone else) can solve it. This is valid for 2.1 and 2.2, so I assume it is the same for master.

The UWP app exported does not run when installed, it just crashes on opening. The only debug info I have is the EventViewer, which does not help at all:

`ActivateApplicationForContractByAppIdAsUserWithHost of the app Godot.Engine.Test_q1xfrwf3pzxew!App for the Windows.Launch contract failed with Access is denied..`

Trying to debug the installed app from Visual Studio (via Debug > Other Debug Targets > Debug Installed App Package) is not helpful because it runs fine there! So there's something fishy about how apps are launched that is a mystery (at least for me).

Summing up what I know:

1. The app runs fine if compiled with `target=debug` or `target=release_debug` build, but crashes on opening with `target=release`.
2. The `target=release` build runs fine from Visual Studio, even when debugging the installed app.
3. Compiling the release with `/SUBSYSTEM:CONSOLE` instead of `/SUBSYSTEM:WINDOWS` makes it work, but also opens the console window when launched.
4. This is not the case when running on the phone emulator. The release build opens fine there.
Repository: kubernetes
Issue: Make label metadata from container images available to Pods and their containers
Labels: sig/node,kind/feature,lifecycle/frozen,needs-triage

It should be possible for the user to apply custom labels to a pod's containers, and have those labels propagate down into docker.  
This would be helpful for interacting with non-k8s-specific programs that access docker directly.

Related: #3764

Outdated: #13513  (I don't want to fight a reopen-war, but this probably should not have been closed.)
Repository: TypeScript
Issue: String Enum Initializer
Labels: Suggestion,Awaiting More Feedback

# String Enum Initializer
A more typesafe and succinct way of defining enum types that compile to strings

## Search Terms
enum, string, string enum
default value
initializer
infer

## Proposal
It seems like you should be able to specify that you are using a string enum, and then you'd only have to write out the 'value' once, and it would be automatically made into a string matching the enum code.

```typescript
enum<string> Action {
   LOAD_PROFILE,
   ADD_TASK,
   REMOVE_TASK
}
```

or 

```typescript
enum Action: string {
   LOAD_PROFILE,
   ADD_TASK,
   REMOVE_TASK
}
```

instead of 

```typescript
enum Action {
   LOAD_PROFILE = "LOAD_PROFILE",
   ADD_TASK = "ADD_TASK",
   REMOVE_TASK = "REMOVE_TASK"
}
```
Thanks for all the great work!

**EDIT**
Recently updated to reflect variations proposed by @imcotton [here](https://github.com/microsoft/TypeScript/issues/16464#issuecomment-317595199) and @lostpebble [here](https://github.com/microsoft/TypeScript/issues/16464#issuecomment-325325553); as well as search terms proposed by @KennethKo (#36319) and @garrettmaring (#33015)
Repository: go
Issue: encoding/json: marshal of custom type not quoted when using ",string" tag field 
Labels: v2,NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
```
go version go1.8.3 linux/amd64
```

### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/var/lib/jenkins/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build418778517=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```

### What did you do?

We receive JSON which encodes booleans as numeric strings. Parsing that JSON works just fine with a `",string"` tag and a type with its own `UnmarshalJSON` definition. The quoting is removed and we get the proper boolean value. 

Quoting is not added when serializing this type, which means that JSON IN>decode>encode>OUT produces OUT different than IN.

```go
type parsedBool bool

func (basi *parsedBool) UnmarshalJSON(data []byte) error {
	v, err := strconv.ParseBool(string(data))
	if err != nil {
		return err
	}
	*basi = parsedBool(v)
	return nil
}

func (basi parsedBool) MarshalJSON() ([]byte, error) {
	if basi {
		return []byte(`1`), nil
	} else {
		return []byte(`0`), nil
	}
}
```

https://play.golang.org/p/ccIw4E6UJF

### What did you expect to see?

Equivalent support for `",string"` for this custom type when both encoding and decoding. I was surprised by the difference in behavior. Both cases should either err (because `parsedBool` is not `bool`) or properly handle the quotes.

The [json docs](https://golang.org/pkg/encoding/json/) state:
> The "string" option signals that a field is stored as JSON inside a JSON-encoded string. It applies only to fields of string, floating point, integer, or boolean types.

### What did you see instead?

Given:
```go
	wrapped := struct {
		P parsedBool `json:",string"`
		B bool       `json:",string"`
	}{
		P: true,
		B: true,
	}
```

This is marshaled as:

```
{"P":1,"B":"true"}
```

This was unexpected because we properly parse:
```
{"P":"1","B":"true"}
```