sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/tools/cmd/eg: matches should be limited to value expressions
Labels: Tools

```
$ cat a.go
package a
func before(x *int) int { return *x }
func after(x *int) int { return 42 }

$ cat b.go
package b
func x(p **int) {}

$ eg -t a.go b.go
=== b.go (1 matches)
package b

func x(p 42)    {}
```

The problem appears to be that in the type expression `**int`, the subexpression `*int` has type `*int`, so eg is deciding that it's a candidate match for the original expression.  However, `*int` is a type expression, so it doesn't make sense to replace it with a value expression like `42`.

I think eg needs to make use of `go/types.TypeAndValue`'s `IsValue` method.

/cc @alandonovan
Repository: vscode
Issue: Render errors & warnings in gutter
Labels: feature-request,editor-rendering

_From @koulmomo on February 24, 2016 23:37_

It would be good if the extension would mark the line at which errors occur along with **JUST** where it exactly occurs (this could just be a mark in the gutter at the line the error occurs).

This would make it easier to quickly scan through files.

Current:
![screen shot 2016-02-24 at 3 33 41 pm](https://cloud.githubusercontent.com/assets/983861/13304835/0b1d6436-db0c-11e5-9e9b-f259b464f353.png)

Suggested (taken from sublime):
<img width="842" alt="screen shot 2016-02-24 at 3 33 32 pm" src="https://cloud.githubusercontent.com/assets/983861/13304848/20c26958-db0c-11e5-94cc-c4a141720410.png">

_Copied from original issue: Microsoft/vscode-eslint#33_
Repository: go
Issue: runtime: throttle heap growth
Labels: compiler/runtime

GC goal is calculated as:

```
goal = reachable * (1 + GOGC/100)
```

This works good in steady state and it is not a problem when heap is shrinking. But it is a problem when reachable heap size has episodic short-term spikes.

Consider that typical reachable heap size is 1GB, so heap grows to 2GB (provided GOGC=100). Now consider that there is a short spike of reachable heap size to 1.5GB. If GC is triggered after the spike, everything is fine. However if we are unlucky and GC observes 1.5GB of reachable heap, it will set goal to 3GB. And at this point we will necessary consume these 3GB and increase RSS by 1.5x unnecessary.

The proposal is to throttle GC goal if we see that the new goal will increase max heap size. We can either use, say, GOGC/2 in such cases; or maybe set heap goal to current max heap size. In the above example, if we set goal to 2GB we can avoid growing heap at all. This way we pay a fixed amount of CPU during heap growth, but can get lower RSS in return. Note that heap growth can't continue infinitely, so the amount of additional CPU is limited.

FWIW client-side GC-based systems (most notably javascript), go to great effort to throttle heap growth in such scenarios. AFAIK, v8 uses something like GOGC=10% during growth just to not over-allocate.
Repository: opencv
Issue: dc1394_video_get_supported_framerates bug returns.
Labels: bug,category: videoio(camera),affected: 3.4

- OpenCV version: 3.1.0
- Host OS:  Mac OS X 10.11.3 
  Xcode 7.2.1
- libdc1394 2.2.3. February 2016
### In which part of the OpenCV library you got the issue?

Opening a Point Grey Grasshopper3 USB/IIDC camera.
### Expected behaviour

// This should open the camera and return true
bool isOpen = camera.isOpened();
### Actual behavior

Throws error from libdc1394:
"libdc1394 error: Invalid video format: in dc1394_video_get_supported_framerates (control.c, line 595): Modes corresponding for format6 and format7 do not have frame rates!

camImage.data = nil: camera.readfailed!
40"
### Additional description

Camera is alive and "talking" as I can read/modify camera capture properties.
This camera is supposed to be IIDC compliant. The camera works fine with the Point Grey gui app on Windows 7.
### Code example to reproduce the issue / Steps to reproduce the issue

Please try to give a full example which will compile as is.

```
#include "opencv2/videoio/videoio.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/utility.hpp"

#include <ctype.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <time.h>
#include <chrono>
#include <unistd.h>
#include <dirent.h> // for POSIX directory methods.

#if !defined WIN32 && defined HAVE_DC1394
#include <stdint.h>

#include <dc1394/dc1394.h>
#include <dc1394/dc1394.h>
#include <libraw1394/raw1394.h>
#include <libdc1394/dc1394_control.h>
#endif

using namespace std;
using namespace cv;

int main()
{
        VideoCapture camera(CV_CAP_DC1394);
/* this line modifies camera properties and reads them back successfully: 
setupCamera(&camera, true);
*/
        // can we open the camera?
        bool isOpen = camera.isOpened();
        if (!isOpen) {
            fprintf(stderr, "VideoCapture can't open camera\n");
        }
    return 0;
}
```

The error message is printed to stdout and main crashes before this code:
        if (!isOpen) {
            fprintf(stderr, "VideoCapture can't open camera\n");
        }
# 

NOTE: This bug was reported 6 years ago and was supposedly fixed. It was signed off by Andrey Kamaev in 2013 in OpenCV DevZone:
Camera capturing fails with libdc1394_v2 because of Format_7 ([Bug #82](http://code.opencv.org/issues/82))
Repository: vscode
Issue: Support Elastic Tabstops
Labels: feature-request,editor-core

ref: http://nickgravgaard.com/elastic-tabstops/
Repository: youtube-dl
Issue: `youtube-dl -F` often hangs for a long time on vimeo videos
Labels: cant-reproduce

Usually it's pretty quick (1-2 seconds), but often it can take 1-2 minutes just to get the formats on a vimeo video. It seems to be the step downloading webpage or JSON.  Any idea what might be causing the delay, and the inconsistency?
Repository: flutter
Issue: Test application exit on the bots 
Labels: a: tests,c: new feature,team,tool,t: flutter driver,P3,team-tool,triaged-tool

Once we have https://github.com/flutter/flutter/issues/2409 checking that applications launch and don't crash when you touch them, we should also test that application exit doesn't crash, so that we don't regress https://github.com/flutter/flutter/issues/2549.
Repository: go
Issue: cmd/vet: validate that time.Format strings are sane
Labels: Suggested,Analysis

vet will let the user know if `fmt.Printf` strings are incorrect and if the types passed to them are incorrect. It'd be very handy if the also rather specific format for `time.Format` strings were similarly checked for validity.
Repository: TypeScript
Issue: Rename symbol on a HTML tag inside of JSX globally renames all tags
Labels: Suggestion,Domain: JSX/TSX,VS Code Tracked,Experience Enhancement

_From @xirzec on March 9, 2016 22:24_
1. Open a project that uses TypeScript + JSX (with react.d.ts loaded)
2. Put the cursor over a common HTML tag like `<div>`
3. Hit F2 to rename symbol
4. Rename the div to something else (like span)

Expected: Just the matching open/close is renamed to `<span>`
Actual: Every div in **every** JSX file is now a span and even react.d.ts has had its div attribute in the HTML tag names renamed to span

VS Code version: 0.10.10

_Copied from original issue: Microsoft/vscode#3937_
Repository: go
Issue: encoding/json: parser ignores the case of member names
Labels: Security,NeedsDecision

1. What version of Go are you using? `5.3`
2. What operating system and processor architecture are you using? `amd64,windows`
3. What did you do?
   Read this: https://mailarchive.ietf.org/arch/msg/json/Ju-bwuRv-bq9IuOGzwqlV3aU9XE
4. What did you expect to see?
   ...
5. What did you see instead?
   ...
Repository: vscode
Issue: Add suggested completions for key chords
Labels: feature-request,keybindings

With more complex key chords, it would be incredibly helpful to have "suggested" completions, based on the first element of the chord. For example, consider the following complicated workflow:
1. You type `CMD + K`
2. Visual Studio Code waits for the next key of the chord (but doesn't tell you what valid options could be typed)
3. User forgets or doesn't know the shortcut he wants, so he hits `ESCAPE` 
4. User hits `F1` to search for the desired command and keyboard shortcut
5. User hits `ESCAPE`
6. User executes keyboard shortcut

Instead, what should happen is that VS Code should show the users all of the key chords (or perhaps most commonly used commands _by that specific user_, based on telemetry data), that could possibly be pressed.

This would have the following benefits:
- Significantly improve the user experience
- Ease the learning of new keyboard shortcuts
- Tailor the Visual Studio Code environment to each user (optional)

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
https://trevorsullivan.net
https://twitter.com/pcgeek86
Repository: TypeScript
Issue: Feature Request: Line Breaks in Assignments in Compiled Javascript
Labels: Suggestion,Help Wanted

One of typescript's key advantages over Babel (at least as far as I'm concerned), is the readability of its compiled javascript.  It is so readable, in fact, that I often use typescript for non-typescript projects, and just submit the compiled javascript.  One issue that often arises, however, is that the compiled javascript will not match style rules in these javascript projects.  One style rule is to have each assignment on its own line.  Typescript generally does this, except when destructuring.  It would be extremely valuable to be able to specify a compiler option for assignmentsOnNewLine which would add line breaks after each assignment.

For example, the following typescript code:

``` typescript
const aVeryLargeObject = {
    firstValue: 1,
    secondValue: 2,
    thirdValue: 3,
    fourthValue: 4
};
const {firstValue, secondValue, thirdValue, fourthValue} = aVeryLargeObject;
```

Produces the following javascript:

``` javascript
var aVeryLargeObject = {
    firstValue: 1,
    secondValue: 2,
    thirdValue: 3,
    fourthValue: 4
};
var firstValue = aVeryLargeObject.firstValue, secondValue = aVeryLargeObject.secondValue, thirdValue = aVeryLargeObject.thirdValue, fourthValue = aVeryLargeObject.fourthValue;
```

If this feature was implemented it should produce the following javascript:

``` javascript
var aVeryLargeObject = {
    firstValue: 1,
    secondValue: 2,
    thirdValue: 3,
    fourthValue: 4
};
var firstValue = aVeryLargeObject.firstValue,
    secondValue = aVeryLargeObject.secondValue,
    thirdValue = aVeryLargeObject.thirdValue,
    fourthValue = aVeryLargeObject.fourthValue;
```
Repository: go
Issue: cmd/compile: let SSA store to PPARAMOUT variables earlier than return
Labels: Performance,NeedsFix,early-in-cycle

Currently SSA cannot store early to named output variables.  It was disabled to fix #14591.  This issue is to track figuring out how to re-enable this feature at some point.
Repository: neovim
Issue: TCP authentication token
Labels: bug,security,gsoc

- Neovim version: Any
- Operating system: Any
- Terminal emulator: Any
### Actual behaviour

NeoVIM allows itself to be controlled over an insecure interface (unauthenticated TCP socket).  This is a potential arbitrary code execution exploit.
### Expected behaviour

NeoVIM does not itself to be controlled over an insecure interface.

This can be done in a couple ways:
- do not allow TCP sockets, only AF_UNIX sockets (but this does not work on Windows)
- cryptographic authentication of all messages

I prefer the second approach _if it is implemented correctly_.  My preferred solution:
- create a temporary file, read/write only to current user, no access to others
- obtain cryptographically secure random bytes from OS using libsodium
- write key to temporary file
- use this key to authenticate all communication using Blake2b or SHA2-HMAC.
- ensure that the first message sent by the client is authenticated, but contains no secrets (to prevent another process from impersonating the server).
- rudely close the connection if an unauthenticated message is detected.

Note that none of this is necessary if a Unix domain socket in a secure directory is used.

I am also assuming that NeoVIM has no business listening on anything but the loopback interface.  If remote control is desired, then a simple program that can be used as an SSH shell should be used.
### Steps to reproduce
- Launch NeoVIM and tell it to bind to a socket, then have a different user control it via the socket.
- Get pwnd.
Repository: neovim
Issue: shada: can't clear register after recording in it
Labels: enhancement,needs:design,core,editor-state

- Neovim version: 0.1.2
- Operating system: Arch Linux
- Terminal emulator: Gnome-Terminal
### Actual behaviour

Recorded sequence persists in a register after reopening neovim despite clearing it, even though it does get cleared for the current session.
### Expected behaviour

Register should stay empty after being cleared.
### Steps to reproduce
1. Type "qaaaaa<Esc>q"
2. Press "@a", watch "aaa" get inserted.
3. Press "qaq", then "@a" again.
4. Nothing happens, as is expected.
5. Close and open again neovim.
6. Press "@a", "aaa" gets inserted despite the register being cleared in the previous session.

":let @a=''" instead of "qaq" produces exactly the same bug. VIM version 7.4.1529 behaves correctly.
Repository: go
Issue: encoding/json: marshaller does not provide Base64Url support
Labels: NeedsInvestigation

1. Go version: _5.3_
2. Operating system: _Windows 8.1 64-bit_
3. What did you do?
   https://play.golang.org/p/k1Wgec8cVB
4. What did you expect to see?
   I had hoped that there would be a field option allowing you to override the default encoding because Base64Url is nowadays the preferred format in standards including IETF's JOSE 
5. What did you see instead?
   No such option :-)
Repository: youtube-dl
Issue: Add support for www.courrierinternational.com
Labels: site-support-request

```
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.courrierinternational.com/article/amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.03.06
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.3
[debug] exe versions: avconv 11.6-6, avprobe 11.6-6, rtmpdump 2.4
[debug] Proxy map: {}
[generic] amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179: Requesting header
WARNING: Falling back on generic information extractor.
[generic] amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179: Downloading webpage
[generic] amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179: Extracting information
ERROR: Unsupported URL: http://www.courrierinternational.com/article/amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1309, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 248, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=etree.TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 237, in _XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 68, column 69
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 668, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 319, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1956, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.courrierinternational.com/article/amours-interdites-chine-cici-et-max-un-amour-secret?utm_campaign=Echobox&utm_medium=Social&utm_source=Facebook#link_time=1457868179
```
Repository: go
Issue: cmd/compile: unnecessary bounds checks are not removed
Labels: Performance,compiler/runtime

Please answer these questions before submitting your issue. Thanks!
1. What version of Go are you using (`go version`)?
   go version devel +8ec8017 Sun Mar 13 22:12:01 2016 +0000 linux/amd64
2. What operating system and processor architecture are you using (`go env`)?
   GOARCH="amd64"
   GOHOSTARCH="amd64"
   GOHOSTOS="linux"
   GOOS="linux"
3. What did you do?
4. What did you expect to see?
5. What did you see instead?

I composed a list of [bounds checks](https://docs.google.com/document/d/1vdAEAjYdzjnPA9WDOQ1e4e05cYVMpqSxJYZT33Cqw2g/edit#) that the compiler at tip can and cannot eliminate. For some I provided an alternative implementation.
Repository: opencv
Issue: Inconsistency of method inputs' names within the same module
Labels: feature,category: documentation,category: gpu/cuda (contrib)

### System information:
- OpenCV version: 3.0 & 3.1
### In which part of the OpenCV library you got the issue?

[photo > denoising](http://docs.opencv.org/master/d1/d79/group__photo__denoise.html)
### Description

Photo denoising functions belonging to the `cv::cuda` namespace have different names for the same inputs used in functions belonging to the `cv` namespace (slightly different names + snake_case vs camelCase, respectively). 

**`block_size`** <=> **`templateWindowSize`**
**`search_window`** <=> **`searchWindowSize`**
**`h_luminance`** <=> **`h`**
**`photo_render`** <=> **`hColor`**

Also, documentation needlessly varies between functions. These inconsistencies might lead to confusion.
### Additional details (example)

The optional inputs to the [`cv::cuda::nonLocalMeans`](http://docs.opencv.org/master/d1/d79/group__photo__denoise.html#gafa990f16548581987e7e509b435c3648) function include the following:

```
int     search_window = 21
int     block_size = 7
```

With the descriptions:

> **`search_window`**   Size of search window.
> **`block_size`**      Size of block used for computing weights.

Whereas in the [`void cv::fastNlMeansDenoising`](http://docs.opencv.org/master/d1/d79/group__photo__denoise.html#ga0db3ea0715152e56081265014b139bec) function within the same module, these parameters are referred-to as:

```
int     searchWindowSize = 21
int     templateWindowSize = 7
```

With the descriptions:

> **`searchWindowSize`**    Size in pixels of the window that is used to compute weighted average for given pixel. Should be odd. Affect performance linearly: greater `searchWindowsSize` - greater denoising time. Recommended value 21 pixels 
> **`templateWindowSize`**  Size in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels

I suggest standardizing the input names and the descriptions of said parameters.
Repository: go
Issue: x/text: add grapheme cluster iteration
Labels: NeedsInvestigation

Hi, I'm in the middle of implementing support for iterating over [grapheme clusters](http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) in a project that I am working on and it seems like something that would be a good fit for the `golang.org/x/text`. I wanted to reach out and see how much interest there would be around this and whether I should work on making something that would fit into this project. I was thinking the interface could be somewhat like this (naming just a stand-in for now, not a big fan of the name decode) :

``` go
package grapheme

// Decode reads the first grapheme cluster out of s and return it. To get the length of the
// grapheme simply take the len() of the return value.
func Decode(s string) string
```

I didn't want to go through the whole proposal process until I get an idea of whether there might be interest for this. I hope this is the right forum for this, if not, I'd appreciate being pointed to the right place.

Thanks
Repository: three.js
Issue: bubbling / propagation of events throughout the display list
Labels: Suggestion

Hi there!

What do you guys think about having bubble/propagation of events throughout the display list? It could work exactly the way it works for DOM events: https://dom.spec.whatwg.org/#dom-event-bubbles

I'm developing a GUI in which a deep node triggers a mouse event, and I'd like to have the listener on a parent node to deal with that, as follows the representation:

```
Scene
    > Object3D ~> listens to "click" event
        > Object3D
            > Object3D
            > Object3D ~> triggers the "click" event
```

The implementation could be something similar to this:

``` javascript
THREE.Object3D.prototype.dispatchEvent = function (event) {
  THREE.EventDispatcher.prototype.dispatchEvent.apply(this, arguments);
  if (event.bubbles && this.parent) {
    this.parent.dispatchEvent(event)
  }
}
```

Note that `bubbling` is `false` by default when instantiating DOM events. In case we implement this feature in three.js this wouldn't be an overhead.

Looking forward to know your thoughts about this.
Cheers!
Repository: flutter
Issue: Pargraph paint() should throw StateError if layout is dirty
Labels: team,engine,P3,team-engine,triaged-engine
Repository: rust
Issue: Trait implementation docs list methods that can't be called
Labels: T-rustdoc,E-hard,C-bug

https://doc.rust-lang.org/std/collections/hash_map/struct.Iter.html lists "cloned" as a method for hash_map::Iter, but it doesn't actually exist because the bound on Item cannot be fulfilled. It does not make sense to list that method there, and actually confused me a lot because I thought I should be able to call it.
Repository: youtube-dl
Issue: Support for http://www.andtv.com/
Labels: site-support-request

URL Tested:  http://www.andtv.com/shows/bhabi-ji-ghar-par-hai/video/bhabi-ji-ghar-par-hain-episode-272-march-15-2016-full-episode.html

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.andtv.com/shows/bhabi-ji-ghar-par-hai/video/bhabi-ji-ghar-par-hain-episode-272-march-15-2016-full-episode.html']
[debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252
[debug] youtube-dl version 2016.03.14
[debug] Python version 2.7.10 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-73189-g7728d23, ffprobe N-73189-g7728d23
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "youtube_dl\YoutubeDL.pyo", line 1627, in process_info
  File "youtube_dl\YoutubeDL.pyo", line 1569, in dl
  File "youtube_dl\downloader\common.pyo", line 344, in download
  File "youtube_dl\downloader\http.pyo", line 58, in real_download
  File "youtube_dl\YoutubeDL.pyo", line 1929, in urlopen
  File "urllib2.pyo", line 437, in open
  File "urllib2.pyo", line 550, in http_response
  File "urllib2.pyo", line 475, in error
  File "urllib2.pyo", line 409, in _call_chain
  File "urllib2.pyo", line 558, in http_error_default
HTTPError: HTTP Error 403: Forbidden