sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: proposal: spec: permit directional variants of named channel types
Labels: LanguageChange,Proposal,LanguageChangeReview

Consider this program:

```
package main

import (
	"fmt"
)

type Foo chan string

func main() {
	c := make(Foo, 1)
	c <- "gotcha"
	fmt.Println(<-c)
}
```

All is well. Now try to declare a direction for a Foo:

```
package main

type Foo chan string

func main() {
	var x <-Foo
}

// or

func x(c <-Foo) { }
```

This doesn't parse, but it's reasonable to expect it would and maybe, perhaps with parenthesization, easy to define without ambiguity. (A directional Foo with element type Foo could be tricky.)

Reported on twitter.
Repository: neovim
Issue: :sav shouldn't continue on write failure
Labels: ux

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.2.1-867-gd2cbc31
- Vim (version: ) behaves differently? no
- Operating system/version: WSL
- Terminal name/version:  conhost
- `$TERM`: xterm-256color

### Steps to reproduce using `nvim -u NORC`

```
nvim -u NORC
:save /hello
:!echo %
```

### Actual behaviour
`:sav` throws expected error about permission denied (`E212: Can't open file for writing: permission denied`), but then proceeds to set the file path for the buffer in question to `/hello` and `:!echo %` prints `/hello` (which doesn't exist).

### Expected behaviour
`:sav` should throw the same error about permission denied then abort, so that `:!echo 
%` thereafter should return an error `E499: Empty file name for '%' or '#', only works with ":p:h"`
Repository: vue
Issue: Improve diff intuition for components nested under plain elements
Labels: improvement

### Version
2.3.3

### Reproduction link
[https://jsfiddle.net/vitorDeng/50wL7mdz/63147/](https://jsfiddle.net/vitorDeng/50wL7mdz/63147/)

### Steps to reproduce
打开浏览器控制台，点击Run

### What is expected?
其他v-if的元素不应该影响互不相干的组件

### What is actually happening?
同级下，若前后使用了与包裹组件的元素一样的，并使用了v-if指令，则v-if指令会影响该组件不断创建和销毁

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: godot
Issue: Hidden, non-shadowmapped, or editor-only lights are still included in the profiler for extra render passes
Labels: bug,topic:rendering

**Operating system or device, Godot version, GPU Model and driver (if graphics related):**
Ubuntu 16.04, Godot commit 0899b50, GeForce GTX 760 (Nvidia binary driver 375.66)

**Issue description:**
Shadowmapping results in multiple passes for rendering. While these are not visible, even when a point light is hidden, marked as editor only, or has just its shadow mapping disabled, it is still included in the profiling for things like vertex count and material changes. Unsure if the passes are ACTUALLY happening behind the scenes, but they are being included in profiling regardless

**Steps to reproduce:**
Simply add a single primitive to a scene with a camera, add a bunch of hidden directional lights, and observe the results in the engine profiler.
Repository: flutter
Issue: Document the various Method and BasicMessage channels
Labels: framework,d: api docs,P2,a: plugins,team-framework,triaged-framework

We have a number of communication channels that are used for different purposes, and their expected usage is not documented.  Also, for creating new channels, the expected scope and naming conventions of channels are also not defined.

Some examples of existing channels:
```
flutter/accessibility
flutter/assets
flutter/keyevent
flutter/lifecycle
flutter/localization
flutter/navigation
flutter/platform
flutter/settings
flutter/system
flutter/textinput
```
Each one should be documented.

Some examples of files where they are used:
[shell/common/engine.cc](https://github.com/flutter/engine/blob/4aee64f6be1f20a1d68b6897ae1946d2bac0dd9c/shell/common/engine.cc#L43)
[shell/platform/android/io/flutter/view/FlutterView.java](https://github.com/flutter/engine/blob/4aee64f6be1f20a1d68b6897ae1946d2bac0dd9c/shell/platform/android/io/flutter/view/FlutterView.java#L165)
[shell/platform/darwin/ios/framework/Source/FlutterViewController.mm](https://github.com/flutter/engine/blob/4aee64f6be1f20a1d68b6897ae1946d2bac0dd9c/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm#L150)
Repository: vscode
Issue: Support Jupyter Notebook Interactive Computing paradigm
Labels: feature-request

Around 500,000 VSCode users have been relying on Don Jayamanne has "vscodeJupyter" extension to connect to Jupyter Notebooks and execute code in an interactive environment.  (https://github.com/DonJayamanne/vscodeJupyter)

With rapid continuing growth of Python, Data Science, and Deep Learning communities, Jupyter Notebooks and interactive computing need to be promoted to a first class citizen of VS Code, rather than being an extension developed by a volunteer.  

Please refer to Atom + Hydrogen integration, and upcoming JupyerLab projects for ideas on how to integrate Notebooks inside Visual Studio Code.

Thank you!
Repository: opencv
Issue: Lots of warnings due to -Wundef and TBB on Linux/gcc
Labels: feature,category: build/install

##### System information (version)

- OpenCV => 3.3
- Operating System / Platform => Ubuntu 16.04 x86_64
- Compiler => GCC 5.4.0

##### Detailed description

When Compiling OpenCV with TBB (`WITH_TBB=ON`) and `tbbvars.sh` correctly initialised in the environment, CMake finds it just fine but during compilation I get an insane amount of useless warnings.
E.g.
```
/mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb_config.h:573:11: warning: "_MSC_VER" is not defined [-Wundef]
     #elif _MSC_VER == 1600
```
```
In file included from /mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb_stddef.h:95:0,
                 from /mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/aligned_space.h:24,
                 from /mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb.h:35,
                 from /mnt/t/dev/ubuntu/libraries/opencv/modules/core/include/opencv2/core/private.hpp:65,
                 from /mnt/t/dev/ubuntu/libraries/opencv/modules/core/src/precomp.hpp:55,
                 from /mnt/t/dev/ubuntu/libraries/opencv/build2/modules/core/opencv_core_pch_dephelp.cxx:1:
/mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb_config.h:39:32: warning: "__APPLE__" is not defined [-Wundef]
 #if !defined(__TBB_SYMBOL) && (__APPLE__ || __ANDROID__)
                                ^
/mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb_config.h:39:45: warning: "__ANDROID__" is not defined [-Wundef]
 #if !defined(__TBB_SYMBOL) && (__APPLE__ || __ANDROID__)
                                             ^
/mnt/t/dev/ubuntu/libraries/tbb2017_20170604oss/include/tbb/tbb_config.h:58:5: warning: "__clang__" is not defined [-Wundef]
 #if __clang__
```
There are literally hundreds, if not thousands, of these warnings complaining about undefined macros. A lot of those are obviously expected NOT to be defined for this platform/compiler/architecture combination. 

##### Steps to reproduce

- Checkout OpenCV 3.3.0 code
- Download recent version of TBB (2017 update 7 or 2018)
- Modify tbbvars.sh to set TBBROOT correctly
- run `source tbbvars.sh intel64` 
- In directory with OpenCV source code
```
$ mkdir build && cd build
$ cmake .. -DWITH_TBB=ON
$ make
```

Lots of warnings.



As an additional question, what's the recommended parallel framework for OpenCV these days? I seem to remember that OpenCV used to favour TBB above other options back in the day? I could be wrong.
Repository: TypeScript
Issue: small code change causes 70% build time regression (20s->34s) [strictGenericChecks]
Labels: Bug

**TypeScript Version:**  2.6.0-dev.20170921

**Code**
Sorry it's a bit bigger codebase, but it would be very hard I guess to reproduce a performance issue with little code.
If you pull https://github.com/emmanueltouzery/prelude.ts and run `npm install` and then `tsc`.

* On the `v0.2.1` tag the build time is ~20 seconds for me.
* On the `v0.2.2` tag the build time is ~34 seconds for me.

The difference between both tags is very small!
https://github.com/emmanueltouzery/prelude.ts/compare/v0.2.1...v0.2.2 `6 files changed, 8 insertions(+), 5 deletions(-)` (mostly I export an interface which was not marked as exported)

And also if I build with `strictGenericChecks: false`, the build time collapses from 34 seconds to 5 seconds even for `v0.2.2`.

**Expected behavior:**
A bit slower build with `strictGenericChecks` enabled, same build time for 0.2.1 and 0.2.2.

**Actual behavior:**
Almost 7 times slower build time with `strictGenericChecks`, 70% build time increase between 0.2.1 and 0.2.2.
Repository: vscode
Issue: Delete matching parentheses, brackets, or braces
Labels: feature-request,editor-core

- VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:38:23.027Z)
- OS Version: Windows_NT x64 6.3.9600
- Extensions: Extensions are disabled
---

Steps to Reproduce:

1. Create a new file.
2. Paste the following code: `var foo = (1 + bar) + baz;`.
3. Position the cursor before the first `(`. It and its matching parenthesis should highlight.
4. Hit the delete key.
5. Only the first parenthesis is deleted.

It would be useful if the corresponding parenthesis, brace, or bracket were deleted when the targeted one was.

I see two ways to accomplish this:
1. Add a shortcut for both backspace and delete that does the operation on the matching character.
2. Automatically do the deletion. This could be an extension of the already-existing "editor.autoClosingBrackets" setting or (more likely) a new setting that governs this behavior.

<!-- Launch with `code --disable-extensions` to check. -->
Reproduces without extensions: Yes
Repository: opencv
Issue: cv::medianBlur does not support to specify the border type.
Labels: feature,category: imgproc,priority: low,category: documentation

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => :latest:


##### Detailed description
`cv::medianBlur` does not support to specify the border type and the API
does not tell how it handles the border.

`cv::blur`, `cv::boxFilter`, `cv::GaussianBlur` and `cv::bilateralFilter` all
support to specify the border type.  

Please refer to https://github.com/opencv/opencv/blob/master/modules/imgproc/include/opencv2/imgproc.hpp#L1370

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
Repository: react-native
Issue: On iOS, orientation changes don't animate in a way that "looks native"
Labels: Platform: iOS,Help Wanted :octocat:,Issue: Author Provided Repro,Bug

<!--
  PLEASE DON'T DELETE THIS TEMPLATE UNTIL YOU HAVE READ THE FIRST SECTION.
-->

### Is this a bug report?

Yes

### Have you read the [Contributing Guidelines](https://facebook.github.io/react-native/docs/contributing.html)?

Yes

### Environment

Environment:
  OS:  macOS Sierra 10.12.6
  Node:  8.4.0
  Yarn:  1.0.1
  npm:  5.4.1
  Watchman:  4.5.0
  Xcode:  Xcode 8.3.3 Build version 8E3004b
  Android Studio:  2.3 AI-162.3934792

Packages: (wanted => installed)
  react: 16.0.0-alpha.12 => 16.0.0-alpha.12
  react-native: 0.48.3 => 0.48.3

### Steps to Reproduce

1. Create a react native app w/ react native init
2. Run it on an iOS device or the iOS simulator
3. (If on a simulator) Turn on slow animations (CMD+T) so the issue will be more obvious.
4. Rotate the device a few times to landscape and portrait
5. Observe that immediately after the orientation changes, the view is resized to the dimensions of the new orientation, and THEN the rotation animation begins.  The view's contents and dimensions are not _smoothly_ resized while the view is being rotated.

### Expected Behavior

In a regular native iOS app, when the orientation of the device changes, the view's contents and dimensions smoothly resize while the view is also rotated at the same time.

Here is a animated gif.  This is a simple native app written in swift, see how the view resizes and rotates smoothly (at the same time) on orientation changes:

![native_rotation](https://user-images.githubusercontent.com/3768353/30713024-d4f2d180-9ec2-11e7-8097-3dc233e2f476.gif)

### Actual Behavior

On orientation changes, the view's dimensions and contents are resized once at the very beginning of the change, and then the rotation animation happens.

Here is another animated git.  This is a simple RN app, with a red border applied to the view so you can see how the view's dimensions are immediately changed (not smoothly animated).

![rn_rotation](https://user-images.githubusercontent.com/3768353/30713112-18be3b70-9ec3-11e7-97c8-5ae8ada68ad9.gif)


### Reproducible Demo

Sadly I can't seem to get the expo app to handle rotations so I guess having a Snack wouldn't be useful.

But you can see if yourself pretty easily if you:
1. Use `react-native init` to create a new app
2. Edit `index.ios.js` and add to the container's styles (line ~40):
```
    borderColor: 'red',
    borderWidth: 10,
```
3. Then run it, turn on slow animations in the simulator (CMD+T), and change the orientation a few times.
Repository: TypeScript
Issue: Printer doesn't print jsDoc comments
Labels: Bug

<!-- BUGS: Please use this template. -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->

I'm using the compiler to convert some old JS files into TypeScript (specifically changing our old "classes" into TS/ES6 classes). I'm doing this by getting the original AST, applying some transformations, and then printing out the new AST to code.

JSDoc nodes are parsed just fine and are available in the original AST, but when printing out the AST back to source, they are missing. 

**TypeScript Version:**  2.5.2

**Code**

Here's an example of just converting a simple class to AST, and trying to print it out again: 

```ts
const ts = require('typescript');

const fileContents = `
    export class MyClass {
        /**
         * My great documentation
         */
        myMethod() { return 1; }
    }
`;
const sourceFile = ts.createSourceFile('myFile.ts', fileContents, ts.ScriptTarget.ES2017, /* setParentNodes */ false);
const ast = sourceFile.statements[ 0 ];

const resultFile = ts.createSourceFile('newFile.ts', '', ts.ScriptTarget.Latest, /*setParentNodes*/ false, ts.ScriptKind.TS);
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed, removeComments: false });
const result = printer.printNode(ts.EmitHint.Unspecified, ast, resultFile);

console.log(result);
```

**Expected behavior:**

The result from the `Printer` should be printed exactly as the input:

```ts
export class MyClass {
    /**
     * My great documentation
     */
    myMethod() { return 1; }
}
```    

**Actual behavior:**

The jsDoc comment is missing:

```ts
export class MyClass {
    myMethod() { return 1; }
}
```    

Great job btw with all of the functionality to be able to grab the AST and generate new AST nodes. Many thanks for that!
Repository: flutter
Issue: Adjacent Material Widgets in a Column/Row do not cast a shadow on each other
Labels: framework,engine,f: material design,customer: mulligan (g3),customer: crowd,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design

Internal: b/292548582

## Steps to Reproduce

When you create a widget that has a build method like this:
```dart
Widget build(BuildContext context) => return new Scaffold(
      appBar: new AppBar(
        title: new Text('Test'),
      ),
      body: new Column(
        children: <Widget>[
          new Material(
            color: Colors.blue.shade500,
            child: new Container(height: 100.0),
            elevation: 20.0,
          ),
          new Material(
            color: Colors.white,
            child: new Container(height: 100.0),
            elevation: 10.0,
          ),
          new Material(
            color: Colors.orange.shade500,
            child: new Container(height: 100.0),
            elevation: 20.0,
          ),
        ],
      ),
    );
```

You get this result: 
![screenshot_1506024976](https://user-images.githubusercontent.com/1498161/30716575-65f66316-9ecf-11e7-86a6-89ec6579f69b.png)

As you can see, only the shadow from the bottom-most, orange Material is rendered. I would expect there to be a shadow rendered over the middle, white Material from both the above and below, as both of those have higher elevation.

For bonus points, I would also expect the shadow over the white Material to be about half as large as the one cast over the scaffold background by the orange Material (because the former is going from elevation 20 to 10, while the latter is going from elevation 20 to 0).
Repository: rust
Issue: Tracking issue: Allow autoderef and autoref in operators (experiment)
Labels: E-mentor,T-compiler,C-tracking-issue,S-tracking-unimplemented

This is a specific issue to track the changes proposed by @arielb1 in [RFC 2174](https://github.com/rust-lang/rfcs/pull/2147). We decided to roll this into a [larger experiment around coercions, generics, and Copy type ergonomics](https://github.com/rust-lang/rust/issues/44619) and are therefore ready to implement (but not yet stabilize).
Repository: every-programmer-should-know
Issue: What are some good resources on Data Structures?
Labels: Needs some ❤️

Books, courses, visualizations - everything will do.
Repository: go
Issue: net/http: no Client API to close server connection based on Response
Labels: Thinking,NeedsDecision,FeatureRequest

### What version of Go are you using (`go version`)?
1.8

### What operating system and processor architecture are you using (`go env`)?
linux/amd64

### What did you do?
I'm using http.Client that connects to HTTP/2 server. I would like to prevent reusing the connection if last response had error 500.

I tried to implement something like this, but I failed:
- Transport.CancelRequest doesn't work for HTTP/2,
- Request.Cancel works only on a single stream in HTTP/2 connection,
- CloseIdleConnections won't work if the connection is in use.
- I also tried to use httptrace.GetConn to steal net.Conn used by the request and close it, but this is against httptrace protocol.

I did small research and I can't find any way to implement such a thing.
This is a feature request to add it.

Background:
I have an environment where I have tcp load balancer with few replicas behind.
While new connections are directed only to healthy replicas, the existing ones are always attached to the same replica (even if it becomes unhealthy).

If http.Client is attached to replica which became unhealthy, reusing the same connection will cause directing request to the same unhealthy instance.
A more reasonable approach in this case is to reconnect so that load balancer can attach a healthy replica.
Repository: go
Issue: go/types: incorrect error message for string(1<<s + 1.1)
Labels: NeedsFix

Type-checking the program
```
package p
var s uint
var _ = string(1<<s + 1.0)
```
produces the error:
```
x.src:3:16: cannot convert 1 << s + 1.0 (untyped float value) to string
```
But the correct error would be:
```
cannot shift 1 (untyped float value)
```
See also the TODO in go/types/conversions.go.
Repository: youtube-dl
Issue: subscriptions.viddler.com support
Labels: account-needed

## Please follow the guide below

- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)
- Use the *Preview* tab to see what your issue will actually look like

---

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.09.15*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.09.15**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [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

---


Please consider adding support to the viddler extractor for subscriptions.viddler.com URLs. They looks like.
http://subscriptions.viddler.com/channelname/videoname

where channelname is the name of the account providing the fee and videoname is a video id which appears to be a six char [a-z0-9] code. This appears to be a playlist, but maybe it works for single videos as well?
When I go to the URL, it redirects me first to
http://subscriptions.viddler.com/channelname/accounts/sign_in
to enter login/passwd. Also if I try youtube-dl I get this:

`ERROR: Unsupported URL: http://subscriptions.viddler.com/channelname/accounts/sign_in?redirect_to=http%3A%2F%2Fsubscriptions.viddler.com%2Fchannelname%videoname`

so that URL might be able to be used in the extractor if that helps.

Please let me know if I can provide any more info. Unfortunately I can't provide the particular channelname and videoname, I don't have permission. But maybe it's possible to find a free one that could be used for tests?
Repository: TypeScript
Issue: Union type inference failure in generic function
Labels: Bug

<!-- BUGS: Please use this template. -->

**TypeScript Version:**  2.2.2 and the one used here https://www.typescriptlang.org/play/ (latest i suppose)

**Code**

```ts
function FieldToName<TData>(name: keyof TData | { name: keyof TData }): keyof TData {
    if (typeof name === 'string') return name;
    else return name.name; // 1
}
```

**Expected behavior:**
Should compile flawlessly.
**Actual behavior:**
failure to compile at line *//1*:
>Property 'name' does not exist on type 'keyof TData | { name: keyof TData; }'.
  Property 'name' does not exist on type 'keyof TData'.