sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/crypto/acme: provide mock implementation for tests
Labels: NeedsInvestigation

Without faking out the whole of GetCertificate, it's not easy
to test an autocert-based system, and doing things that way
leaves substantial room for getting the Manager configuration
wrong.

The autocert tests contain an ACME CA server stub - maybe that
could be made available publicly in some form.
Repository: opencv
Issue: Full screen window causes not responding keyboard on mac OS X 
Labels: bug,category: highgui-gui,affected: 3.4,platform: ios/osx

##### System information (version)
- OpenCV => 3.2
- Operating System / Platform => OS X 10.12.2
- Compiler => GNU++11
##### Detailed description

I use Xcode 8.2.1 to build OpenCV C++ applications. When displaying an image in a fullscreen window, only white color and mouse cursor appears on whole screen. Moreover, I am not able to quit the application even force quit does not work. The only thing I can do is to force quit the computer. 
##### Steps to reproduce

```
 cv::namedWindow(main_window_name, CV_WINDOW_NORMAL);
 cv::setWindowProperty(main_window_name, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
 cv::imshow(main_window_name, frame);
```
Repository: vscode
Issue: [html] closing </script> tag is not proposed
Labels: feature-request,html

Testing #12100 

```
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <script>

    </head>
</html>
```

After `<script>` tag type `</` 

Expected closing `</script>` tag is proposed. But not.
Repository: TypeScript
Issue: tsconfig.json options not applied if files section doesn't use extensions
Labels: Bug,VS Code Tracked

Copied from https://github.com/Microsoft/vscode/issues/12547 
Reported by @nomaed
- VSCode Version: 1.5.3 (5be4091987a98e3870d89d630eb87be6d9bafd27)
- OS Version: macOS Sierra 10.12

Steps to Reproduce:
- Create an empty directory
- Run `npm init` and then `npm i --save-dev typescript`
- Run `tsc --init` (or `./node_modules/.bin/tsc --init`)
- Create `test.ts` and add code that's using `Map` and `Set`:

``` typescript
const foo = new Map();
const bar = new Set();
```
- Edit `tsconfig.json`, set `target` to be `es2015`, and add `files` section with the test script (`test`) without its extension:

``` json
{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es2015",
        "noImplicitAny": false,
        "sourceMap": false
    },
    "files": [ "test" ]
}
```
- Run `tsc` (or `./node_modules/.bin/tsc`), see that `test.js` is created with exactly the same code, as expected, and no warnings or errors have been seen.

At this point, `tsc` compiled the file `test` while adding the default `.ts` extension when resolving.

Now adding VSCode into the picture:
- Run `code .` to open VSCode with the current testing directory loaded. Either that, or from GUI go to `Files > Open` and loaded the current directory.
- Open `test.ts` file. At this point VSCode may ask about TypeScript version, if TypeScript 2.0 was installed by npm. It doesn't matter whether you choose TS 2.0 or TS 1.8, both produce the same behavior.
- Observe `Map` and `Set` being unrecognized:
  <img width="583" alt="screen shot 2016-09-23 at 22 31 53" src="https://cloud.githubusercontent.com/assets/9551921/18800492/93defa6e-81dd-11e6-8511-992ec277e43e.png">

The observed behavior is inconsistent with `tsc`.

Now, to "fix" it:
- Open `tsconfig.json` and change the `files` section to have the full file-name with its extension `test.ts`.
- Reload TypeScript project or reload VSCode, and open `test.ts`. Everything is fine now.
  <img width="612" alt="screen shot 2016-09-23 at 22 30 14" src="https://cloud.githubusercontent.com/assets/9551921/18800457/56e30d9e-81dd-11e6-858d-291a121c4b5b.png">

However, I would expect vscode behavior in this to be the same as of `tsc`.
Repository: go
Issue: x/text: support API for Unicode word breaking and word extraction (Annex #29)
Labels: help wanted,NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?

`go version go1.7 linux/amd64`
### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ioe/sources/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/user/1000/go-build353744209=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
```
### What did you do?

Trying to split text at word boundaries like mentioned at http://unicode.org/reports/tr29/#Word_Boundaries and also trying to extract words from strings as mentioned in the same document.
### What did you expect to see?

Given the sentence "The quick (“brown”) fox can’t jump 32.3 feet, right?"
- detecting word boundaries at all places marked with "|"

``` none
The| |quick| |(|“|brown|”|)| |fox| |can’t| |jump| |32.3| |feet|,| |right|?
```
- support word extraction to a string slice with the following content

``` go
words := []string{"The", "quick", "brown", "fox", "can’t", "jump", "32.3", "feet", "right"}
```
### What did you see instead?

That depends on the API used. example with strings.Fields at https://play.golang.org/p/dhJtlR-b3w displays:

``` none
[]string{"The", "quick", "(“brown”)", "fox", "can’t", "jump", "32.3", "feet,", "right?"}
```

Note: Proper test vectors are here: Test vectors are here: http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakTest.txt

An implementation using Ruby magic and a state machine generated by Ragel can be found here: [github.com/blevesearch/segment](https://godoc.org/github.com/blevesearch/segment)
Repository: flutter
Issue: The position of PopupMenuButton's menu does not follow the Material Design spec
Labels: framework,f: material design,a: quality,has reproducible steps,P3,team-design,triaged-design,found in release: 3.16,found in release: 3.19

In the Menus demo of the Gallery:
1. Tap 'An item with a simple menu'.
2. Tap 'Menu item value three'.
3. Tap 'An item with a simple menu' item again.

Expected: menu opens up from the bottom (where you're actually tapping)
Observed: menu opens up from the top
Repository: neovim
Issue: temp files (e.g. for filtered commands) are not deleted
Labels: bug-vim,io

"Filtered" bang/shell commands like `:r !...` create temp files. These temp files are not deleted. These files may grow very large for long-running commands. 

For example, let this command run for a few minutes (or hours):

```
:r !yes
```

this will create a ~20 GB tempfile.
Repository: youtube-dl
Issue: Add support for live.line.me
Labels: site-support-request

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.27**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

https://live.line.me/r/channels/21/broadcast/51883
Repository: rust
Issue: Compilation of a crate using a large static map fails on latest i686-pc-windows-gnu Beta
Labels: I-crash,P-medium,T-compiler,A-MIR,regression-from-stable-to-stable,I-compilemem,C-bug,O-x86_32

I'm trying to build a `cdylib` (https://github.com/urschrei/lonlat_bng) which requires the https://github.com/urschrei/ostn15_phf crate.

building on AppVeyor, on `i686-pc-windows-gnu`, using the latest beta, is failing with an OOM error:
### Details

The `ostn15_phf` crate is essentially just a very big static map, built using PHF (the generated, uncompiled map is around 42.9mb)

The build passed when running `cargo test`, using `rustc 1.12.0-beta.3 (341bfe43c 2016-09-16)`:
https://ci.appveyor.com/project/urschrei/lonlat-bng/build/105/job/3y1llt6luqs3phs3

It's now failing when running `cargo test`, using `rustc 1.12.0-beta.6 (d3eb33ef8 2016-09-23)`:
https://ci.appveyor.com/project/urschrei/lonlat-bng/build/job/27pgrkx2cnn2gw50

The failure occurs when compiling `ostn15_phf` with `fatal runtime error: out of memory`
Repository: go
Issue: x/net/http2: access to maxConcurrentStreams
Labels: Suggested,help wanted

### What version of Go are you using (`go version`)?

go version go1.7.1 darwin/amd64
### What operating system and processor architecture are you using (`go env`)?

GOARCH="amd64"
GOOS="darwin"
### What did you do?

I am working on an HTTP/2 client for Apple's push notification service. When using [JWT tokens](https://jwt.io/) to authenticate, Apple initially sends maxConcurrentStreams = 1. Once authentication is complete they send maxConcurrentStreams = 500 (though this number may vary).

Currently I have a worker pool to send multiple requests concurrently. If I could monitor the maxConcurrentStreams, I would know how big the worker pool should be -- or how many workers should be active.
### What did you expect to see?

Access to maxConcurrentStreams via httptrace or some other x/net/http2 API.

https://github.com/golang/net/blob/master/http2/transport.go#L1735

Possibly related: https://github.com/golang/go/issues/13774
### What did you see instead?

If I send more requests than maxConcurrentStreams dictates

With Go 1.7.1 http.DefaultClient I am getting the following error.

```
http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=REFUSED_STREAM, 
debug="Maximum active streams violated for this endpoint."
```

With the latest `x/net/http2` I'm getting slightly different errors (still looking into these).

```
2016/09/28 10:14:43 (9) device: [my-token], error: Post https://api.development.push.apple.com/3/device/[my-token]: 
http2: no cached connection was available
```

and

```
2016/09/28 10:14:43 (11) device: [my-token], 
error: invalid character 'M' looking for beginning of value
```

In any case, the best I can do is prime the connection with a single request, and then send some number of concurrent requests, but not really knowing how many I can send.
Repository: flutter
Issue: Investigate alternatives to libimobiledevice 
Labels: platform-ios,tool,platform-mac,P3,team-ios,triaged-ios

Given #5397, #6067, #6105, it's clear there's some risk in depending on libimobiledevice, particularly around new Xcode/iOS release times.
Repository: youtube-dl
Issue: Couldn't download video from lesports.com, again
Labels: bug,geo-restricted

Hi,

Similar to bug #9750.

I tried `youtube-dl -v http://www.lesports.com/match/1023203003.html`, which is original url. Output:

> [debug] System config: []
> [debug] User config: []
> [debug] Command-line args: ['-v', 'http://www.lesports.com/match/1023203003.html']
> [debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
> [debug] youtube-dl version 2016.09.27
> [debug] Python version 3.5.0 - Windows-post2012Server-6.3.9600
> [debug] exe versions: none
> [debug] Proxy map: {}
> [generic] 1023203003: Requesting header
> WARNING: Falling back on generic information extractor.
> [generic] 1023203003: Downloading webpage
> [generic] 1023203003: Extracting information
> ERROR: Unsupported URL: http://www.lesports.com/match/1023203003.html
> Traceback (most recent call last):
>   File "c:\program files\python 3.5\lib\site-packages\youtube_dl\YoutubeDL.py", line 694, in extract_info
>     ie_result = ie.extract(url)
>   File "c:\program files\python 3.5\lib\site-packages\youtube_dl\extractor\common.py", line 355, in extract
>     return self._real_extract(url)
>   File "c:\program files\python 3.5\lib\site-packages\youtube_dl\extractor\generic.py", line 2424, in _real_extract
>     raise UnsupportedError(url)
> youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.lesports.com/match/1023203003.html

I then tried to use `youtube-dl -v http://sports.le.com/match/1023203003.html`, which is similar to the pattern in #9750. Output is similar to #9750,

> [debug] System config: []
> [debug] User config: []
> [debug] Command-line args: ['-v', 'http://sports.le.com/match/1023203003.html']
> [debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
> [debug] youtube-dl version 2016.09.27
> [debug] Python version 3.5.0 - Windows-post2012Server-6.3.9600
> [debug] exe versions: none
> [debug] Proxy map: {}
> [LePlaylist] 1023203003: Downloading webpage
> [download] Downloading playlist: 拜仁慕尼黑,罗斯托夫,拜仁慕尼黑VS罗斯托夫,欧洲冠军联赛,足球
> [LePlaylist] playlist 拜仁慕尼黑,罗斯托夫,拜仁慕尼黑VS罗斯托夫,欧洲冠军联赛,足球: Collected 0 video ids (downloading 0 of them)
> [download] Finished downloading playlist: 拜仁慕尼黑,罗斯托夫,拜仁慕尼黑VS罗斯托夫,欧洲冠军联赛,足球
Repository: go
Issue: x/mobile: com.android.dex.DexException: Multiple dex files define Lgo/LoadJNI;
Labels: NeedsInvestigation,mobile

Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?

```
x-MacBook-Pro:mobile-sdk apple$ go version
go version go1.7.1 darwin/amd64
```
### What operating system and processor architecture are you using (`go env`)?

```
x-MacBook-Pro:mobile-sdk apple$ gomobile version
gomobile version +9640137 Tue Sep 27 16:37:51 2016 +0000 (android,ios); androidSDK=/Users/apple/Library/Android/sdk/platforms/android-24

x-MacBook-Pro:mobile-sdk apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build085920980=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"

```
### What did you do?

I was working in Android Studio, and had one aar from a go project referenced as a aar module.
I added a 2nd aar as a module from a golang project.
In the "Project Structure.." i made sure both aar modules were dependencies of the app module.
and when building my APK got:

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lgo/LoadJNI;

How to reproduce ?

Take 2 simple gomobile compiled projects, and build their .aar. Hello World & FooBar will do..
Add the first to an android project, reference it and build. All is good.
Add the second aar to the same android project.  
Make sure the app module has a dependency on both aar modules..
Now , all is bad :) Multiple dex files error occurs on build...

How to stop the bug ?
Remove one of the aar modules from the Project Structure app module dependencies.
But thats not fixing the problem, but thats how you can toggle the error happening easily..

Not sure whats going ok...

Why this sucks ?
I can work around it by making sure all my code fits into a single golang project. Composition is easy with golang.
But it makes me wonder what the bug is, and i also dont knwo if this is a deal breaker for others.
Repository: TypeScript
Issue: Ambient class augmentation with export =
Labels: Bug

**TypeScript Version:**  2.0.3

**Code**

``` ts
// a.ts
declare module 'a' {
  class MyClass {
  }
  export = MyClass
}
```

``` ts
// b.ts
declare module 'a' {
  interface MyClass {
  }
}
```

**Expected behavior:**
Files compile successfully.

**Actual behavior:** 
Compiler error: 

```
a.ts(4,3): error TS2309: An export assignment cannot be used in a module with other exported elements.
```
Repository: TypeScript
Issue: [typingsInstaller] Provide information about auto-installed types in project info
Labels: Bug,Domain: JavaScript

`"projectInfo"` command should return a list of auto-installed typings files, along with information about their inference source.
Repository: rust
Issue: item_like_imports: Can "ambiguity error" items be reexported?
Labels: C-enhancement,A-resolve,T-compiler

Is the next code well formed or not?

```
#![feature(item_like_imports)]

mod ty1 {
    pub type A = u8;
}
mod ty2 {
    pub type A = u8;
}
mod ambig {
    // Create an ambiguity item in type namespace.
    pub use ty1::*;
    pub use ty2::*;
}
mod merge {
    pub use ambig::*; // <- reexports an ambiguity error, or reexports nothing?
    pub use ty1::*; // <- does this contribute to the ambiguity error or create a valid name?
}

fn main() {
    let _: merge::A; // <- Valid or an ambiguity error?
}
```

Currently the behavior of this code depends on whether the "merge" step is done in the same crate or in some other crate.
In a single crate scenario the snippet above fails to compile with `A is ambiguous` error.
If `merge` is moved to another crate, then all erroneous resolutions are filtered away and are not represented in metadata, `pub use ambig::*` becomes an empty import and `merge::A` unambiguously means `ty1::A`.
Supposedly, local and cross-crate behavior should be the same.

cc @jseyfried @nrc
Repository: TypeScript
Issue: Suggestion: Quick info for `return` keyword to get the function return type
Labels: Suggestion,Domain: Quick Info,Experience Enhancement

Now to get a function return type the only way is to hover on function declaration or reference locations; however if the function body is quite long, it can be annoying to go back and forth. We could provide the function return type information if the user hovers on the `return` keyword.
Repository: youtube-dl
Issue: general --mirror option
Labels: request

- [x] I've **verified** and **I assure** that I'm working with youtube-dl **git master (b0582fc)** (to be precise: i read its README, because even if i ran the code, i wouldn't have found the feature if it's not in the man page)
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---
### Description of your _issue_, suggested solution and other information

when running youtube-dl, i usually want to make sure to have as much (meta)data available locally as i would have if i used the video page online; thus, my typical command line arguments are `--all-subs --write-description --write-info-json --write-annotations --write-all-thumbnails`. (no `--all-formats` for that is not likely to contain any information that can't to a reasonable approximation be obtained from the best format; under the same argument, `--write-thumbnail` might be the better choice here.)

even if i were sure that i'm not missing a feature (i did miss `--all-subs` for some time), such an invocation is not future-proof against new metadata extraction features (eg. if at some point there'll be a `--write-user-comments`). would you consider adding a `--mirror` or similar flag that enables a sane set of "i want to be able to run a mirror of this if the site goes down" flags like there is for wget?
Repository: rust
Issue: parent() returns Some("") for single-component relative paths
Labels: C-bug,T-libs,A-io

``` rust
use std::path::Path;

fn main() {
    println!("{:?}", Path::new("/").parent());  // None
    println!("{:?}", Path::new(".").parent());  // Some("")
    println!("{:?}", Path::new("foo").parent());  // Some("")
}
```

The latter two cases feel weird to me. `Some("")` by itself is kind of a contradiction, on the one hand saying "yes there _is_ a parent" and on the other hand returning an invalid path that really means "no there isn't actually a parent." We've also tried to avoid creating empty path components in other cases, like the double-slash case `Path::new("a//b").parent()`, which returns `Some("a")` rather than `Some("")`.

For consistency with `/`, it probably makes sense to have the parent of `.` be `None`. For `foo` I could imagine going either of two ways, either `Some(".")` or `None`. If folks agree that one of those options would be nice in theory, then I guess the second question is whether a behavior change here would break backwards compatibility too much to consider doing it. Would it make sense for me to put together a PR and then ask for a Crater run or something like that?
Repository: node
Issue: zlib deflate results in a memory leak
Labels: confirmed-bug,zlib,memory

- **Version**:6.7.0
- **Platform**:Darwin ITs-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
- **Subsystem**:zlib

<!-- Enter your issue details below this comment. -->

I'm using the graylog2 package for logging, and we ran into significant memory leak issues.
After tracking it down, I found zlib.deflate is the source of the issue.
The issue is magnified when running code inside of docker with the latest node distribution.

Running the below code on my macbook pro results in the memory spiking to ~3GB, then released down to 600MB.
Running the code in the latest node docker distro results in memory spiking to ~3GB, and it is never released.

```js
let zlib = require('zlib');

let message = {
  some:"data"
};
let payload = new Buffer(JSON.stringify(message));

for(var i =0; i < 30000; ++i){
  zlib.deflate(payload, function (err, buffer) {
  });
}

setTimeout(()=>{}, 2000000);
```

This has resulted in our docker containers crashing due to memory exhaustion.
Repository: opencv
Issue: Add additional compute method to the BOWImgDescriptorExtractor
Labels: feature,category: features2d

based on the documentation of Object Categorization, object_categorization, BOWImgDescriptorExtractor has a method that you pass the image and key-points and the compute method computes the image descriptors and return it as third parameter:

http://docs.opencv.org/2.4/modules/features2d/doc/object_categorization.html#bowimgdescriptorextractor-compute

must of the times, we have computed the image descriptor and we can pass the calculated descriptor as a parameter, so please add an additional method that we will able to pass the image descriptor, so it is not required to calculate in compute method