sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Add more entry points
Labels: issue: proposal,tag: enhancement

In addition to src/index.js, I have other entry points in my app. How do I add them?
Repository: vscode
Issue: Highlight matching quotes, double quotes and backticks
Labels: feature-request,editor-bracket-matching

- VSCode Version: 1.7.1
- OS Version: Win10 x64

Steps to Reproduce:

My suggestion is to not only highlight matching square brackets, round brackets/parentheses and curly brackets (`[], (), {}`) as well as matching tags e.g. `<div></div>`,
**but also quotes, double quotes and backticks,** i.e. `''`, `""` and ` `` `.
_The highlighting would be via **underlining** these symbols,
in order to visually distinguish them from any matching brackets (which are highlighted with outline (box))._

This is a feature of one of the most popular packages for Sublime Text, BracketHighlighter. 

<br>


PS. [Template literals (which are quoted via **backticks**)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) are an ES6 feature.
Repository: flutter
Issue: AppBar is too tall in landscape mode on Android (and desktop)
Labels: framework,f: material design,a: tablet,a: desktop,dependency: android,has reproducible steps,P3,found in release: 3.7,team-design,triaged-design

Example screenshot:
https://github.com/flutter/flutter/issues/4607#issuecomment-262214734

https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/constants.dart#L6

https://material.google.com/layout/structure.html#structure-app-bar says 48p on landscape.

One of many metrics which are supposed to change with orientation. :(
Repository: vscode
Issue: Add ability to extend from other settings files
Labels: feature-request,config

Inspired by TSLint's ability to [extend](https://palantir.github.io/tslint/2016/03/31/sharable-configurations-rules.html) configuration files, it would be nice if `.vscode/settings.json` could behave the same way.

So if I have some global settings set up:

`~/example-repo/.vscode/my-company-settings.json`:
```json
{
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "editor.formatOnSave": false
}
```

I can use them in another file, without having to duplicate the settings:

`~/example-repo/my-project/.vscode/settings.json`:
```json
{
  "extends": "../../.vscode/my-company-settings.json",
  "editor.formatOnSave": true,
  "editor.fontLigatures": true
}
```

And the computed settings for `~/example-repo/my-project/.vscode/settings.json` would be:

```json
{
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "editor.formatOnSave": true,
  "editor.fontLigatures": true
}
```


Scenario:

Multi-root workspace doesn't solve this for our use case. We have a bunch of npm modules each in their own git repository. We have a package which contains our shared tsconfig.json and tslint.json settings that all the other packages include with extends. We don't use a multi-root workspace since the idea is that people can clone the specific package(s) they need to work on. Every repository contains the exact same .vscode directory which is essentially copy&pasted all over the place. Maintaining the .vscode settings for the projects is "not pretty" compared to the tsconfig.json and tslint.json which only require the settings package to be updated with for example yarn upgrade.
Repository: go
Issue: cmd/vet: add check for sync.WaitGroup abuse
Labels: Proposal-Accepted,Analysis

The API for WaitGroup is very easy for people to misuse. The documentation for `Add` says:
> calls to Add should execute before the statement creating the goroutine or other event to be waited for.

However, it is very common to see this incorrect pattern:
```go
var wg sync.WaitGroup
defer wg.Wait()

go func() {
	wg.Add(1)
	defer wg.Done()
}()
```
This usage is fundamentally racy and probably does not do what the user wanted. Worse yet, is that it is not detectable by the race detector.

Since the above pattern is common, I propose that we add a method `Go` that essentially does the `Add(1) ` and subsequent call to `Done` in the correct way. That is:
```go
func (wg *WaitGroup) Go(f func()) {
	wg.Add(1)
	go func() {
		defer wg.Done()
		f()
	}()
}
```
Repository: create-react-app
Issue: i18n support?
Labels: issue: proposal

Any plans to add support for i18n?

I've had previous success with [i18n webpack plugin](https://webpack.js.org/plugins/i18n-webpack-plugin/) - perhaps this could be integrated into the webpack configuration?

Given that it increases build time significantly (as it makes use of webpack's multi-compiler feature i.e. `module.exports = [configA, configB];` instead of `module.exports = config;`), it would most likely have to be an opt in feature. We could look for an `i18n/` directory that users could drop a bunch of json files into the like so:

```
src/
i18n/
├─ en-gb.json
├─ de-de.json
├─ ...
```
The idea that CRA would produce an output bundle per locale in conjunction with [i18n webpack plugin](https://webpack.js.org/plugins/i18n-webpack-plugin/).

Thoughts? Happy to attempt a PR if you have no objections.
Repository: electron
Issue: Add option for renaming a file dragged with contents.startDrag()
Labels: enhancement :sparkles:,component/drag-and-drop

When use contents.startDrag(item), It would be great to allow us to change the name of the file dragged. This can be done by adding a "name" optional option to the item given to startDrag().

By exemple, if I drag a file named "localFileName.jpg" from my app to the desktop and that I will rename this file name to "realName.jpg"...
Repository: youtube-dl
Issue: Reuters failed
Labels: request

<pre>C:\Users\***\Desktop>youtube-dl -v http://www.reuters.com/article/us-usa-trump
-britain-farage-vacancy-idUSKBN13H0HC
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.reuters.com/article/us-usa-trump-b
ritain-farage-vacancy-idUSKBN13H0HC']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2016.11.18
[debug] Python version 3.4.4 - Windows-8.1-6.3.9600
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://www.reuters.com/article/us-usa-trump-britain-fara
ge-vacancy-idUSKBN13H0HC
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmptx6jnsy6\bu
ild\youtube_dl\YoutubeDL.py", line 694, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmptx6jnsy6\bu
ild\youtube_dl\extractor\common.py", line 357, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmptx6jnsy6\bu
ild\youtube_dl\extractor\generic.py", line 2433, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.reuters.com/artic
le/us-usa-trump-britain-farage-vacancy-idUSKBN13H0HC
</pre>
Repository: go
Issue: x/sys/unix: Does not build on mipsel/mips64el/alpha/powerpc with gccgo
Labels: NeedsFix,compiler/runtime

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

* `go version go1.6.1 gccgo (Debian 6.2.1-4) 6.2.1 20161119 linux/mipsn64`
* `go version go1.6.1 gccgo (Debian 6.2.1-4) 6.2.1 20161119 linux/mipso32`

Same for alpha and powerpc (the 4 arches use gccgo in Debian).

### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="mipsn64"
GOHOSTARCH="mipsn64"
GOHOSTOS="linux"
GOOS="linux"
```

### What did you do?

```
$ go build golang.org/x/sys/unix
# golang.org/x/sys/unix
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/flock.go:15:30: error: reference to undefined name 'SYS_FCNTL'
 var fcntl64Syscall uintptr = SYS_FCNTL
                              ^
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/sockcmsg_linux.go:15:30: error: reference to undefined name 'SizeofUcred'
  b := make([]byte, CmsgSpace(SizeofUcred))
                              ^
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/sockcmsg_linux.go:16:9: error: reference to undefined name 'Cmsghdr'
  h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
         ^
```
(The log of errors is huge, you can see a complete build log here: https://buildd.debian.org/status/fetch.php?pkg=mtail&arch=powerpc&ver=0.0%2Bgit20161027.a7b3e3c-1&stamp=1479766693)


---

For mips64el, I pressume it is just a disparity of GOARCH between gccgo and gc, and possibly could be fixed by renaminng. But I don't see any support in the code for mipsel/mipso32, alpha, or powerpc (32bits)
Repository: angular
Issue: Checkbox [ngModel] does not reflect model value when updated in (onModelChange)
Labels: type: bug/fix,freq1: low,area: forms,state: confirmed,forms: ngModel,P4

**I'm submitting a ...**  (check one with "x")
```
[x] bug report
[ ] feature request
[ ] support request
```

**Current behavior**
```<input type="checkbox" [ngModel]="foo" (ngModelChange)="onChanges()" />```
Behaves exactly like:
```<input type="checkbox" (onChanges)="onChanges()" />```

The checkbox only reflects the model value when it is first rendered, but then becomes functionally equivalent to a checkbox without a binding. Manually detecting changes or using `setTimeout` inside `(ngModelChange)` does not work around this issue. The same workarounds _do_ work when used with `(click)`, but voids the use of `[ngModel]`.

**Expected behavior**
The logic in `onChanges` should run, and the view should then be updated to reflect the model's current value.

**Minimal reproduction of the problem with instructions**
http://plnkr.co/edit/g9niPnLsUy6wWbzm0mHi?p=preview

**What is the motivation / use case for changing the behavior?**
`[ngModel]` should always reflect the model value.

**Please tell us about your environment:**
Mac OS X Sierra, IntelliJ IDEA

* **Angular version:**
2.2.0

* **Browser:**
all
 
* **Language:** [all | TypeScript X.X | ES6/7 | ES5]
TypeScript 2.0.2
Repository: angular
Issue: DebugElement.queryAll can return results in different order than DOM.
Labels: type: bug/fix,area: testing,freq3: high,hotlist: google,P3

<!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->

**I'm submitting a ...**  (check one with "x")
```
[x] bug report => search github for a similar issue or PR before submitting
[ ] 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**
DebugElements are returned from `DebugElement.queryAll()` in the same order they were first created in the `ViewContainer` regardless if they were moved by a structural directive like `NgFor`. If they were moved, then the order is out of sync with with the DOM.

**Expected behavior**
DebugElements should be returned from a query in the order they appear within the DOM. Order should be updated when underlying `ViewRef`s are moved around in a `ViewContainer`

**Minimal reproduction of the problem with instructions**
[Plunker Reproducing the Issue](http://plnkr.co/edit/Kp4GGtTqv5A60D1MjkNk?p=preview)

Running plunker will run tests that are almost identical to the unit tests for `NgFor`. Tests illustrate how adding and removing `ViewRef`s from a `ViewContainer` work as expected. Two tests illustrate how moving `ViewRef`s and using DebugElement to query for the moved items fails. Two tests illustrate how the DOM is in the correct order by using the native `querySelectorAll()` method.

**What is the motivation / use case for changing the behavior?**
DebugElements should be returned in the order they appear in the DOM when queried for.

**Please tell us about your environment:**
Windows 10 x64

* **Angular version:** 2.2.1 with angular-cli 1.0.0-beta.20-4 (plunker not at this version)

* **Browser:** all
 
* **Language:** Typescript

* **Node (for AoT issues):** `node --version` =  7.1.0
Repository: rust
Issue: Rust distribution uses massive amount of storage space
Labels: E-hard,C-enhancement,T-bootstrap,E-needs-design

I'm a school student trying to work with Rust on lab computers. Students have between 0.5 GB and 1.5 GB of storage space.

My `.multirust` folder looks like this:

```
cpaten2@teaching:~/.multirust$ du -h --threshold=5MB
192M    ./toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
192M    ./toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu
192M    ./toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib
356M    ./toolchains/nightly-x86_64-unknown-linux-gnu/lib
12M     ./toolchains/nightly-x86_64-unknown-linux-gnu/bin
368M    ./toolchains/nightly-x86_64-unknown-linux-gnu
368M    ./toolchains
368M    .
```

Is any of this superfluous? As it is I'd have to delete everything else in my user account to get Rust to run.
Repository: flutter
Issue: Popping a nested MaterialApp fails
Labels: framework,f: routes,has reproducible steps,P3,team-framework,triaged-framework,found in release: 3.16,found in release: 3.18

In the app that follows, tapping causes another copy of the same MaterialApp to be Naviagtor.pushed.

Tapping the system back button appears to cause the outermost Navigator to pop, which causes the initial route to be redisplayed. This is as expected, although nested MaterialApps aren't really the common case.

Tapping the AppBar back button, when depth > 1, causes the screen to go dark. This was not expected.

```dart
import 'package:flutter/material.dart';

class NestedMaterialApp extends StatelessWidget {
  NestedMaterialApp({ this.depth });

  final int depth;

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new SizedBox.expand(
        child: new Builder(
          builder: (BuildContext context) {
            return new Scaffold(
              appBar: new AppBar(
                title: new Text('NestedMaterialApp $depth'),
                leading: depth == 0 ? null : new IconButton(
                  icon: new Icon(Icons.arrow_back),
                  alignment: FractionalOffset.centerLeft,
                  onPressed: () { Navigator.pop(context); },
                ),
              ),
              body: new GestureDetector(
                behavior: HitTestBehavior.opaque,
                onTap: () {
                  Navigator.push(context, new MaterialPageRoute<Null>(
                    builder: (BuildContext context) {
                      return new NestedMaterialApp(depth: depth + 1);
                    },
                  ));
                },
                child: new Container(
                  decoration: new BoxDecoration(
                    backgroundColor: Colors.indigo[100 + 100 * depth],
                  ),
                ),
              ),
            );
          },
        ),
      ),
    );
  }
}

void main() {
  runApp(new NestedMaterialApp(depth: 0));
}
```
Repository: youtube-dl
Issue: Unable to download http://aplus.com/'s videos.
Labels: site-support-request

Example:
$ youtube-dl http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton
[generic] interview-blue-man-group-co-founder-phil-stanton: Requesting header
WARNING: Falling back on generic information extractor.
[generic] interview-blue-man-group-co-founder-phil-stanton: Downloading webpage
[generic] interview-blue-man-group-co-founder-phil-stanton: Extracting information
ERROR: Unsupported URL: http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton
(SopelPython3)ant@ANTian:~/Downloads/bmg$ youtube-dl -v http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.22
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.6
[debug] exe versions: ffmpeg 3.2-2, ffprobe 3.2-2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] interview-blue-man-group-co-founder-phil-stanton: Requesting header
WARNING: Falling back on generic information extractor.
[generic] interview-blue-man-group-co-founder-phil-stanton: Downloading webpage
[generic] interview-blue-man-group-co-founder-phil-stanton: Extracting information
ERROR: Unsupported URL: http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton
Traceback (most recent call last):
  File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 357, in extract
    return self._real_extract(url)
  File "/home/ant/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2443, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://aplus.com/a/interview-blue-man-group-co-founder-phil-stanton

Thank you in advance. :)
Repository: rust
Issue: Test cross compilation with `proc-macro` crates
Labels: C-enhancement,E-needs-test,A-cross

In particular, test #37899.
Repository: kubernetes
Issue: Allow for serving GET operation from cache if user explicitly opt-in for it
Labels: sig/scalability,sig/api-machinery,lifecycle/frozen

Currently, if you are sending "LIST" request to apiserver, depending on the "ResourceVersion" field value:
https://github.com/kubernetes/kubernetes/blob/8ef325643490274f8639ea1bee8c7718b316e839/pkg/api/v1/types.go#L3247
the request will be served:
- from etcd if it is not set
- from apiserver cache, if it is set with a guarantee that the returned result is at least as fresh as the "RV" passed as parameter.
Serving request from etcd is a default behavior, but if client can tolerate a bit unfresh data (e.g. if the list is just a starting point for a watch), then it can opt-in for listing from apiserver cache. This mechanism is used e.g. in the reflector/informer framework and is significant optimization for the system.

We should allow for exactly the same for "GET" operations.

@lavalamp @kubernetes/sig-api-machinery
Repository: TypeScript
Issue: support customisable externalHelpersModuleNameText for --importHelpers flag 
Labels: Suggestion,In Discussion

**TypeScript Version:**  2.1.1 

Currently we can use `--noEmitHelpers` with `--importHelpers` to mitigate generation of bloated code in ever file which uses TS helpers ( `extends`, `decorate` ... etc ).
To make this work, currently only official [`tslib`](https://github.com/Microsoft/tslib) is supported which is [hardcoded here](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/utilities.ts#L5)

if I wanna override any of these helpers I cannot use  `--importHelpers`, instead I need to import whole `tslib` and override helpers that I need before any code in app is executed, which is not very convenient, like here:

```ts
import 'tslib';

// Babel implementation of _inherits
function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      enumerable: false,
      writable: true,
      configurable: true
    }
  });
  if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}

(window as any).__extends = _inherits;
```

What I would like to have is flag in `compilerOptions` for setting node_module library name which should be used for `--importHelpers`.

Something like:

`npm install --save my-tslib`

```json
{
  "compilerOptions": {
     "module": "es2105",
     "target": "es5",
     "noEmitHelpers": true,
     "importHelpers": true,
     "importHelpersLibrary": "my-tslib"
  }
}
```

```ts
// Hello.tsx
import * as React from 'react';
class Hello extends React.Component {}
```

will compile to:
```js
// Hello.jsx
import * as tslib_1 from 'my-tslib';
import * as React from 'react';

var Hello = (function (_super) {
  tslib_1.__extends(Counter, _super);
  function Counter() {
        var _this = _super.apply(this, arguments) || this;
        return _this;
  }
  return Hello;
}(React.Component));
```

This will also help to support libraries like skate.js and use for instance Babel `extends` behaviour to make it work https://github.com/skatejs/skatejs/issues/936
Repository: vscode
Issue: [folding] retain folded state on copy/paste
Labels: feature-request,editor-folding

- VSCode Version:1.7.2
- OS Version:WIN 10 14931

It is recommended to support folding of the code snippet also retain its folded format
Repository: go
Issue: net/http: client.Do should mask EOF as ErrUnexpectedEOF
Labels: NeedsFix

```go
func Test(t *testing.T) {
	server := httptest.NewServer(
		http.HandlerFunc(
			func(w http.ResponseWriter, r *http.Request) {
				rwc, _, _ := w.(http.Hijacker).Hijack()
				defer rwc.Close()
			},
		),
	)
	defer server.Close()

	_, err := http.Get(server.URL)
	if err != nil {
		t.Fatalf("GET returned error: %v", err)
	}
}
```

The preceding test prints `GET returned error: EOF`, which is strange since `io.EOF` is often an "error" signaling normal termination of some stream. Instead, `Do` should mask the error as `io.ErrUnexpectedEOF`, which is more indicative of an abrupt termination.
Repository: go
Issue: net: document PacketConn IO operations in relation to packet sizes 
Labels: Documentation,help wanted,NeedsFix

The current phrasing on `PacketConn.ReadFrom` and `PacketConn.WriteTo` is:
> ReadFrom reads a packet from the connection, copying the payload into b. It returns the number of bytes copied into b and the return address that was on the packet. ReadFrom can be made to time out and return an Error with Timeout() == true after a fixed time limit; see SetDeadline and SetReadDeadline.

and

> WriteTo writes a packet with payload b to addr. WriteTo can be made to time out and return an Error with Timeout() == true after a fixed time limit; see SetDeadline and SetWriteDeadline. On packet-oriented connections, write timeouts are rare.

What is the expected behavior of `ReadFrom` when the buffer provided is not large enough to read the entire packet? Does the remaining payload get dropped? Does the next call to `ReadFrom` finish off the packet?

On the flip-side, what happens when the buffer provided to `WriteTo` is larger than the MTU. Should the method implicitly chunk the input into multiple packet-sized chunks?

\cc @mikioh