sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: caffe2: Unsupported type of tensor: nullptr (uninitialized)
Labels: caffe2

## 🐛 Bug

After exporting a basic RNN model to caffe2, running it results in assertion error thrown in `operator.h`: `Unsupported type of tensor: nullptr (uninitialized)`


## To Reproduce

Steps to reproduce the behavior:

Created a gist here: https://gist.github.com/Nimitz14/7a17707d570f4003b5f93ce2fafecfcd

Change the filepaths starting with `/work/case` to run.

The error:

```
starting
terminate called after throwing an instance of 'c10::Error'
  what():  [enforce fail at operator.h:791] . Unsupported type of tensor: nullptr (uninitialized)Error from operator: 
input: "3" input: "0" output: "10" name: "" type: "Gather" device_option { device_type: 0 device_id: 0 }
Aborted (core dumped)
```


## Expected behavior

To run and print the model outputs.

## Environment

```
PyTorch version: 1.0.0a0+3123206
Is debug build: No
CUDA used to build PyTorch: 9.1.85

OS: Ubuntu 16.04.5 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
CMake version: version 3.11.0

Python version: 3.5
```
built with `python3 setup.py install`
Repository: TypeScript
Issue: Can't use type aliases or conditional types resolving to Promise for async/await return types
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->
<!--
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
-->

<!-- If you have a QUESTION:
   THIS IS NOT A FORUM FOR QUESTIONS.
   Ask questions at http://stackoverflow.com/questions/tagged/typescript
    or https://gitter.im/Microsoft/TypeScript
-->

<!-- If you have a SUGGESTION:
  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.
  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md
-->

<!-- If you have a BUG:
  Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.1

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** 
- async promise alias
- async promise conditional

**Code**

```ts
type P<T> = Promise<T>

async function foo<T>(x: T): P<T> {
    return x;
}

async function bar<T>(x: T): T extends number ? Promise<number> : Promise<any> {
    return x;
}
```

**Expected behavior:**
No error.

**Actual behavior:**
Type 'P' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.

Type 'T extends number ? Promise<number> : Promise<any>' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior --> 
[Link](http://www.typescriptlang.org/play/index.html#src=type%20P<T>%20%3D%20Promise<T>async%20function%20foo<T>(x%3A%20T)%3A%20P<T>%20{%20%20%20%20return%20x%3B}async%20function%20bar<T>(x%3A%20T)%3A%20T%20extends%20number%20%3F%20Promise<number>%20%3A%20Promise<any>%20{%20%20%20%20return%20x%3B})

**Related Issues:**
Repository: godot
Issue: Kinematic body does not move when exactly in between two static bodies
Labels: bug,documentation,topic:physics

Godot 3.1 alpha 1
Godot 3.0.6

As reported in this Q&A post: https://godotengine.org/qa/34661/how-can-i-simulate-no-friction-in-a-kinematic-body-2d

If I exactly place a box Kinematic Body 2D aligned horizontally between two static boxes (using pixel and grid snapping), that body will not be able to move vertically with `move_and_slide`.
If I take out one of the static boxes, it can move.
Under the same situation, a rigidbody is able to move, but the kinematic one isn't.

Example project:
[KinematicBoxBetweenTwoOthers.zip](https://github.com/godotengine/godot/files/2495904/KinematicBoxBetweenTwoOthers.zip)
Repository: youtube-dl
Issue: Funkwhale
Labels: account-needed

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.10.05*. 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 **2018.10.05**

### 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
- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### 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)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

### Purpose of this *issue* is a *site support request*

**[Funkwhale](https://funkwhale.audio/)**

- Single audio: `https://funkwhale.mastodon.host/library/tracks/4821`
- Album playlist: `https://funkwhale.mastodon.host/library/albums/1120`
- Artist playlist: `https://funkwhale.mastodon.host/library/artists/845`

`youtube-dl` Falls back to generic and fails.

---

### Description of your *issue*, suggested solution and other information

Related to #16301, as PeerTube is also a project from the [Fediverse](https://fediverse.party/).
Repository: rust
Issue: libstd initializaton on sparc64-unknown-linux-gnu fails
Labels: T-libs-api,O-SPARC,C-bug

Trying to run jemallocator tests on `sparc64-unknown-linux-gnu` I run into this error: 

```
 Running `qemu-sparc64 /target/sparc64-unknown-linux-gnu/debug/deps/ffi-3572dfd160eda606`
thread '<unnamed>' panicked at 'assertion failed: signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR', libstd/sys/unix/mod.rs:86:9
error: process didn't exit successfully: `qemu-sparc64 /target/sparc64-unknown-linux-gnu/debug/deps/ffi-3572dfd160eda606` (signal: 4, SIGILL: illegal instruction)
```

which points here: https://github.com/rust-lang/rust/blob/master/src/libstd/sys/unix/mod.rs#L86

This check seems to only depend on the `target_os`, so I find it weird that it fails for `sparc64-unknown-linux-gnu` given that it works on other linux targets.
Repository: godot
Issue: Editor: Cannot Load an Image on New ImageTexture of a Sprite.
Labels: discussion

**Godot version:**
3.1 alpha #bde3e88
Mac OS X, High Sierra

**Issue description:**
Cannot Load an Image on New ImageTexture of a Sprite.

![screen shot 2018-10-19 at 11 15 24 am](https://user-images.githubusercontent.com/930478/47227959-0bb69080-d392-11e8-9a0e-11eb0fc00521.png)
Repository: TypeScript
Issue: TypeScript doesn't narrow out `undefined` after constructor call when callee is `any`
Labels: Suggestion,Needs Proposal,Domain: Control Flow

TypeScript doesn't seem to narrow the type of a variable correctly in cases where the constructor being called is typed as `any`.  If the type of a variable includes `undefined` in its type signature, it's not narrowed out after a constructor call even though by definition (I think--correct me if I'm wrong) `new fn()` *must* always evaluate to an object if it doesn't throw first.

**TypeScript Version:**  3.1.3

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** constructor narrow

**Code**

```ts
let x: { [x: string]: any } | undefined;
x = new (Object as any)();
// AFAIK `x` can't possibly be undefined after this point
console.log(x.foo);  // error: Object is possibly 'undefined'.
```

**Expected behavior:**
No error.

**Actual behavior:**
Compile-time error: `Object is possibly 'undefined'.`

**Playground Link:**
http://www.typescriptlang.org/play/#src=let%20x%3A%20%7B%20%5Bx%3A%20string%5D%3A%20any%20%7D%20%7C%20undefined%3B%0D%0Ax%20%3D%20new%20(Object%20as%20any)()%3B%0D%0Aconsole.log(x.foo)%3B%0D%0A
Repository: TypeScript
Issue: Mapped tuples types iterates over all properties
Labels: Bug,Domain: Mapped Types

**TypeScript Version:**  3.2.0-dev.20181019

**Search Terms:** mapped tuples reify

**Code**

```ts
type Foo = ['a', 'b'];
interface Bar
{
	a: string;
	b: number;
}

type Baz = { [K in keyof Foo]: Bar[Foo[K]]; }; // Expected Baz to be [string, number]
```

**Expected behavior:** Baz should be [string, number]

**Actual behavior:** Type '["a", "b"][K]' cannot be used to index type 'Bar'.

**Playground Link:** https://www.typescriptlang.org/play/index.html#src=type%20Foo%20%3D%20%5B'a'%2C%20'b'%5D%3B%0D%0Ainterface%20Bar%0D%0A%7B%0D%0A%09a%3A%20string%3B%0D%0A%09b%3A%20number%3B%0D%0A%7D%0D%0A%0D%0Atype%20Baz%20%3D%20%7B%20%5BK%20in%20keyof%20Foo%5D%3A%20Bar%5BFoo%5BK%5D%5D%3B%20%7D%3B%20%2F%2F%20Expected%20Baz%20to%20be%20%5Bstring%2C%20number%5D%0D%0A%0D%0Atype%20WorkingBaz%20%3D%20%7B%20%5BK%20in%20Exclude%3Ckeyof%20Foo%2C%20keyof%20any%5B%5D%3E%5D%3A%20Foo%5BK%5D%20extends%20keyof%20Bar%20%3F%20Bar%5BFoo%5BK%5D%5D%20%3A%20never%3B%20%7D%20%26%20%7B%20length%3A%20Foo%5B'length'%5D%3B%20%7D%20%26%20any%5B%5D%3B

**Related Issues:** https://github.com/Microsoft/TypeScript/issues/25947


Given the Mapped tuple types feature (#25947). I'd expect the code above to work cleanly.

However, I still need to do:
```ts
type WorkingBaz = { [K in Exclude<keyof Foo, keyof any[]>]: Foo[K] extends keyof Bar ? Bar[Foo[K]] : never; } & { length: Foo['length']; } & any[];
```

To have an equivalent type. As far as I understand, the "K" in a mapped type on a tuple should iterate only on numeric keys of this tuple. Therefore, Foo[K] should always be a valid key for Bar...
Repository: go
Issue: x/build/cmd/gopherbot: race condition in auto-closure of scratch CLs causing gopherbot to stall 30s
Labels: Builders,NeedsFix

When closing scratch CLs, the maintner corpus doesn't get updated fast enough and it attempts to close the same CLs again, resulting in a 409 conflict:

```
2018/10/19 20:19:32 closing scratch CL https://golang.org/cl/140997 ...
2018/10/19 20:19:32 abandon scratch reviews: HTTP status 409 Conflict; change is abandoned
2018/10/19 20:19:32 HTTP status 409 Conflict; change is abandoned
2018/10/19 20:19:32 gopherbot ran in 1.745149115s
2018/10/19 20:19:32 sleeping 30s after previous error.
```

This error causes gopherbot to sleep for 30s as a result.

This is related to #28226 /cc @dmitshur
Repository: TypeScript
Issue: Wiki page 'Using the Language Service API' does not describe how to use the Language Service API
Labels: Help Wanted,Docs

https://github.com/Microsoft/TypeScript/wiki/Using-the-Language-Service-API
Repository: flutter
Issue: Provide clear feedback when a hot reload has finished
Labels: tool,t: hot reload,from: study,c: proposal,P3,team-tool,triaged-tool

In the latest round of the "Build a Simple UI" study, we've seen two participants waiting for hot reload to finish when it, in fact, had finished already. It appears that the current feedback in the console is not clear enough (see below). This is a problem when the changes are subtle on the UI or the simulator is covered by another window. 

```
Initializing hot reload...
Syncing files to device iPhone 6s...
Reloaded 0 of 427 libraries in 690ms.
```

Proposal:

```
Initializing hot reload...
  Syncing files to device iPhone 6s...
  Reloaded 0 of 427 libraries in 690ms.
Hot reload completed. 
```
Cc: @gspencergoog @jayoung-lee @galeyang
Repository: TypeScript
Issue: Auto-import triggers for reserved keyword exports
Labels: Bug,Domain: Quick Fixes

**TypeScript Version:**  3.1.3

**Search Terms:** auto import keyword

**Code**

```ts
// a.ts
function return_() {}
function throw_() {}
function break_() {}
function continue_() {}
export { return_ as return, throw_ as throw, break_ as break, continue_ as continue };

// b.ts

// typing any of the following keywords in VS Code now auto-imports one of the above exports
return
throw
break
continue
```

**Expected behavior:**
Auto-import should not trigger for reserved words.

**Actual behavior:**
Auto-import triggers any time you write a reserved word with the same name as an export, adding an
import declaration to the top of the file for a keyword that is invalid.
Repository: pytorch
Issue: RelaxedOneHotCategorical not implementing entropy (and other abstract methods)
Labels: module: distributions,triaged,enhancement

## 🚀 Feature

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

```python
from torch.distributions import RelaxedOneHotCategorical
d = RelaxedOneHotCategorical(0.1, torch.tensor((0.1, 0.9)))
d.entropy()
```

throws a NotImplementedError

The methods `mean`, `variance` and `enumerate_support` don't seem to be implemented either.

## Expected behavior

One simple solution would be to implement the methods as follows

```python
  def entropy(self):
    return self.base_dist._categorical.entropy()
```

 - PyTorch Version: 0.4.1.post2 (I briefly checked the code in master and the methods don't seem to be implemented there either)
 - OS: Linux
 - How you installed PyTorch: conda
 - Python version: 3.6


cc @fritzo @neerajprad @alicanb @vishwakftw @nikitaved
Repository: TypeScript
Issue: Declaration file emitted with esModuleInterop can't be consumed without it
Labels: Suggestion,Domain: Declaration Emit,Experience Enhancement

**TypeScript Version:**  3.2.0-dev.20181019

**Search Terms:**

**Code**

```ts
import abs from "abs"; // using @types/abs which uses `export =`
export const x: typeof abs = <any>null;
```

**Expected behavior:**

Output `.d.ts` is:
```ts
import abs = require("abs");
export declare const x: typeof abs;
```

**Actual behavior:**

```ts
import abs from "abs";
export declare const x: typeof abs;
```

Discovered in `quill` on DefinitelyTyped, which imports from `quill-delta`, which is [written in TypeScript](https://github.com/quilljs/delta/blob/master/src/Delta.ts) with `esModuleInterop`.
Repository: angular
Issue: AnimationBuilder query returns zero elements when ":enter" or ":leave" is used
Labels: type: bug/fix,area: animations,freq2: medium,P3

## I'm submitting a...
<pre><code>
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
</code></pre>

## Current behavior

I am using **AnimationBuilder** to apply animations on child elements'  `:enter` and `:leave` transitions, I tried queries like as the ones in [the query docs](https://angular.io/api/animations/query#usage-notes) 

Using `:enter .child-element`  and `.child-element:enter` throw the following error

> ERROR
Error: Unable to create the animation due to the following errors: `query(":enter .child-element")` returned zero elements. (Use `query(":enter .child-element", { optional: true })` if you wish to allow this.)

## Expected behavior

Ability to query child elements with `:enter` and `:leave` transitions

## Minimal reproduction of the problem with instructions

```ts
const builder = this.animationBuilder.build([
  query(
    '.child-element',          // Works
//  ':enter .child-element', // This does not work !
//  '.child-element:enter',  // This also does not work !
    [
     stagger(100, [useAnimation(animation)])
    ]
  )
]);
```

https://stackblitz.com/edit/angular-jh4gnd?file=src%2Fapp%2Fapp.component.ts

## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->


## Environment

<pre><code>
Angular version: 7.0.0
<!-- Check whether this is still an issue in the most recent Angular version -->

Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 8
- Platform:  Windows
Others:
<!-- Anything else relevant?  Operating system version, IDE, package manager, HTTP server, ... -->
</code></pre>
Repository: kubernetes
Issue: Allow updating rbd monitors of persisted volumes
Labels: kind/bug,sig/storage,kind/feature,lifecycle/frozen

**Is this a BUG REPORT or FEATURE REQUEST?**:
Probably a bit of both.

/kind bug
/kind feature
/sig storage

**What happened**:
We needed to move our ceph cluster which in turn gave the ceph monitors new ips. In k8s the ips are stored in the storageclass and in each pv. We updated the storageclass successfully but trying to update a pv it fails:

```
$ kubectl patch pv pvc-9841e253-d453-11e8-a2fe-0ec0b66da86e -p $'spec:\n rbd:\n  monitors: ["10.0.1.2:1234"]'
The PersistentVolume "pvc-9841e253-d453-11e8-a2fe-0ec0b66da86e" is invalid: spec.persistentvolumesource: Forbidden: is immutable after creation
```

**What you expected to happen**:
It should be possible to change the monitors easily.

**How to reproduce it (as minimally and precisely as possible)**:
Create a rbd backed PV and try to change the monitors section afterwards.

**Environment**:
- Kubernetes version (use `kubectl version`): v1.11.3
Repository: node
Issue: Non-unique V8 scriptUrl when using dynamic import in CJS
Labels: help wanted,module,vm

<!--
Thank you for reporting a possible bug in Node.js.

Please fill in as much of the template below as you can.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**: 10.12.0
* **Platform**: Linux 64 bit
* **Subsystem**: Modules

<!-- Please provide more details below this comment. -->

This bug is a regression in `10.12.0`, it worked in `10.11.0`.
I am currently working on Node tooling and code coverage using the V8 profiler. When requesting profiling data, V8 returns an object per script. This object has a `url` value (the value passed to V8 when creating the module).
To support coverage, the URL should be unique: for each file, there should be unique profiling data.

The latest Node version breaks this unicity when dealing with dynamic imports in CJS.

If I have the following `main.js` (commonJS) file:

```
import('./hello-world')
  .then(helloWorld => helloWorld.helloWorld())
```

And execute it (with `--experimental-modules`), V8 receives the following modules with the same URL:

```
// scriptId: 76
// url: file:///data/projects/web/istanbulize/src/test/fixtures/esm-hello-world/main.js
  import {
    executor,
    $default
  } from "";
  export {
    $default as default
  }
  if (typeof executor === "function") {
    // add await to this later if top level await comes along
    executor()
  }
```


```
// scriptId: 77
// url: file:///data/projects/web/istanbulize/src/test/fixtures/esm-hello-world/main.js
(function (exports, require, module, __filename, __dirname) { import('./hello-world')
  .then(helloWorld => helloWorld.helloWorld())

});
```

The first module should not use this url since it does not really correspond to this file but is an internal module to bridge between CJS and ESM. When importing CJS modules from ESM, they get the `cjs-facade://` protocol instead of `file://`. This should be applied here too to fix the ambiguity.

Older versions of Node (10.11.0 and before) used the system path instead of the file URL for the CJS module. You had `file:///main.js` and `/main.js` so it was possible to detect this case and ignore the file URL because it corresponds to the wrapper. Now that file URLs are used everywhere (a good thing), it is no longer possible to distinguish the internal wrapper from the real file unless you look at the source code.
Repository: terminal
Issue: MiniTerm sample should specify long-running task
Labels: Area-Performance,Issue-Samples,Product-Meta

In the MiniTerm sample you create tasks to effectively pump IO. Since these could be long-running tasks in a practical application based on the sample, the sample should probably specify TaskCreationOptions.LongRunning to avoid consuming a couple of threads from the ThreadPool.
Repository: rust
Issue: rustc fails to infer default types that appear inside a path
Labels: A-inference

```
type MyWorld = World<u32>;
struct World<S = u32> {
    s: S,
}
impl<S> World<S> {
    pub fn new() -> Self {
        unimplemented!()
    }
}
fn main() {
    //let mut world = World::new(); // Doesn't compile
    let mut world: World = World::new(); // <= This works :/
    let mut world = MyWorld::new(); // This also works
}
```
[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=8fe5516b40f25a2c4dd2d7dbfd430b7f)


```
let mut world = World::new(); // Doesn't compile
let mut world: World = World::new(); // This works
```

To me this seems like an oversight in how types are inferred inside a path.
Repository: TypeScript
Issue: can't emit import when overwrite declare
Labels: Bug,Domain: Error Messages

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.2.0-dev.201xxxxx

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
import hashSum = require('hash-sum');
import shortid = require('shortid');

declare function shortid(): string
declare function hashSum(input): string

export function hashAny(seed?, ...argv): string
{
	if (!seed)
	{
		seed = shortid()
	}
	else if (typeof seed !== 'string')
	{
		seed = hashSum(seed)
	}

	return String(seed)
}

export default hashAny;
```

**Expected behavior:**

> output js file include

```ts
const hashSum = require("hash-sum");
const shortid = require("shortid");
```

**Actual behavior:**

> miss require `hash-sum`, `shortid`

```ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function hashAny(seed, ...argv) {
    if (!seed) {
        seed = shortid();
    }
    else if (typeof seed !== 'string') {
        seed = hashSum(seed);
    }
    return String(seed);
}
exports.hashAny = hashAny;
exports.default = hashAny;
```

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

**Related Issues:** <!-- Did you find other bugs that looked similar? -->