sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [dataloader] SIGCHLD handler should poll the queue for exception first
Labels: module: dataloader,triaged

Otherwise it may cause weird exception prints like
```
#Traceback (most recent call last):
#  File "<string>", line 1, in <module>
#  File "/miniconda/lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main
#    exitcode = _main(fd)
#  File "/miniconda/lib/python3.7/multiprocessing/spawn.py", line 115, in _main
#    self = reduction.pickle.load(from_parent)
#AttributeError: Can't get attribute 'Dataset' on <module '__mp_main__' from #'/deepspeech.pytorch/convasr/bug_.py'>
#Traceback (most recent call last):
#  File "/miniconda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 512, in _try_get_batch
#    data = self.data_queue.get(timeout=timeout)
#  File "/miniconda/lib/python3.7/multiprocessing/queues.py", line 104, in get
#    if not self._poll(timeout):
#  File "/miniconda/lib/python3.7/multiprocessing/connection.py", line 257, in poll
#    return self._poll(timeout)
#  File "/miniconda/lib/python3.7/multiprocessing/connection.py", line 414, in _poll
#    r = wait([self], timeout)
#  File "/miniconda/lib/python3.7/multiprocessing/connection.py", line 920, in wait
#    ready = selector.select(timeout)
#  File "/miniconda/lib/python3.7/selectors.py", line 415, in select
#    fd_event_list = self._selector.poll(timeout)
#  File "/miniconda/lib/python3.7/site-packages/torch/utils/data/_utils/signal_handling.py", line 63, in handler
#    _error_if_any_worker_fails()
#RuntimeError: DataLoader worker (pid 6082) exited unexpectedly with exit code 1. Details are #lost due to multiprocessing. Rerunning with num_workers=0 may give better error trace.

#During handling of the above exception, another exception occurred:

#Traceback (most recent call last):
#  File "bug_.py", line 15, in <module>
#    next(iter(loader))
#  File "/miniconda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 577, in #__next__
#    idx, batch = self._get_batch()
#  File "/miniconda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 554, in #_get_batch
#    success, data = self._try_get_batch()
#  File "/miniconda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 520, in #_try_get_batch
#    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str))
# RuntimeError: DataLoader worker (pid(s) 6082) exited unexpectedly
```

cc @vadimkantorov
Repository: TypeScript
Issue: please document project references and outdir
Labels: Docs

Really really unclear documentation regarding the behavior of "project references" and outDir.

I can't believe how unclear this is -- please please tell me how I'm supposed to do this ... 


```
> checkmate-node-monorepo@0.0.1 build /Users/ncohen/software/itsacheckmate.com/Web
> tsc --build --verbose

[11:01:04 AM] Projects in this build:
    * lib/pdf-api/tsconfig.json
    * tsconfig.json

[11:01:04 AM] Project 'lib/pdf-api/tsconfig.json' is out of date because output file 'lib/pdf-api/src/DoordashFailureSamples.js' does not exist

[11:01:04 AM] Building project '/Users/ncohen/software/itsacheckmate.com/Web/lib/pdf-api/tsconfig.json'...

[11:01:07 AM] Project 'tsconfig.json' is out of date because oldest output 'lib/pdf-api/src/DoordashPdfSemantics.js' is older than newest input 'lib/pdf-api'

[11:01:07 AM] Building project '/Users/ncohen/software/itsacheckmate.com/Web/tsconfig.json'...

[11:01:09 AM] Updating unchanged output timestamps of project '/Users/ncohen/software/itsacheckmate.com/Web/tsconfig.json'...
```

```
ncohen@breathe-book ~/s/i/Web> cat tsconfig.json
{
  "references": [{ "path": "./lib/pdf-api" }]
}
```

```
ncohen@breathe-book ~/s/i/Web> cat ./lib/pdf-api/tsconfig.json
{
  "extends": "../../tsconfig_base.json",
  "include": ["./src/**/*.ts"],
  "exclude": ["node_modules"]
}
```

```
ncohen@breathe-book ~/s/i/Web> cat ./tsconfig_base.json
{
  "compilerOptions": {
    "composite": true,
    "outDir": "compiled-js",
    "target": "es2016",
    "lib": ["es2016"],
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "experimentalDecorators": false,
    "pretty": true,
    "strict": true,
    "strictFunctionTypes": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": true,
    "noImplicitReturns": true,
    "forceConsistentCasingInFileNames": true,
    "strictNullChecks": true,
    "declaration": true,
    "declarationMap": true
  }
}
```

Why are compiled files being written to ./lib/pdf-api/src/ directory?  How can I have that NOT happen?  Or if I have to have something written to my src directory (for some reason ...?) can I have only a single file written there which I can reliable gitignore ...?

<img width="606" alt="image" src="https://user-images.githubusercontent.com/434034/60038106-97df2d00-9670-11e9-9cd7-aa412bf60d48.png">

```
ncohen@breathe-book ~/s/i/Web> tsc --version
Version 3.5.2
```
Repository: TypeScript
Issue: Some types are incorrectly assignable from a generic distributive conditional type
Labels: Bug

**TypeScript Version:**  3.5.1

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** generic conditional distributive assignable from

**Code**

```ts
type Keys<T extends object> = T extends unknown ? keyof T : never;

function f<T extends object>(keys: keyof T, moreKeys: Keys<T>) {
    keys = moreKeys;
}

// With this instantiation, `keys` is typed 'a',
// and `moreKeys` is typed 'a' | 'b' | 'c'. The latter
// should not be assignable to the former, but it happens
// in the generic context of the function `f`.
f<{ a: any, b: any } | { a: any, c: any }>('a', 'b');
```

**Expected behavior:**

`Keys<T>` should not be assignable to `keyof T` since `Keys<T>` is distributive and will produce a different type than `keyof T` when `T` is a union type.

Note that the reverse of this assignment, `moreKeys = keys`, errors for this exact reason; without a concrete `T`, it’s hard to tell what the relationship should be, so we simply have no relationship in place.

**Actual behavior:**

The unsafe assignment is allowed.

[**Playground Link**](https://www.typescriptlang.org/play/#src=type%20Keys%3CT%20extends%20object%3E%20%3D%20T%20extends%20unknown%20%3F%20keyof%20T%20%3A%20never%3B%0D%0A%0D%0Afunction%20f%3CT%20extends%20object%3E(keys%3A%20keyof%20T%2C%20moreKeys%3A%20Keys%3CT%3E)%20%7B%0D%0A%20%20%20%20keys%20%3D%20moreKeys%3B%0D%0A%7D%0D%0A%0D%0A%2F%2F%20With%20this%20instantiation%2C%20%60keys%60%20is%20typed%20'a'%2C%0D%0A%2F%2F%20and%20%60moreKeys%60%20is%20typed%20'a'%20%7C%20'b'%20%7C%20'c'.%20The%20latter%0D%0A%2F%2F%20should%20not%20be%20assignable%20to%20the%20former%2C%20but%20it%20happens%0D%0A%2F%2F%20in%20the%20generic%20context%20of%20the%20function%20%60f%60.%0D%0Af%3C%7B%20a%3A%20any%2C%20b%3A%20any%20%7D%20%7C%20%7B%20a%3A%20any%2C%20c%3A%20any%20%7D%3E('a'%2C%20'b')%3B%0D%0A)
Repository: TypeScript
Issue: JavaScript rename not working for JSDoc param name for function assignment
Labels: Bug

Issue Type: <b>Bug</b>

1. Try to rename **`item`** (at any place)
1. **`item`** in code successfully renamed while JSDoc name stayed the same

```js
/**
 * @param {*} item
 */
let f = function (item) {}
```

VS Code version: Code - Insiders 1.36.0-insider (9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21, 2019-06-21T07:52:00.716Z)
OS version: Windows_NT x64 10.0.18362
Repository: pytorch
Issue: [jit] Optional type refinement on non-named expressions
Labels: oncall: jit,triaged,TSRootCause:TypeRefinement,TSUsability

Right now we only do type refinement on `TK_VAR`s in the compiler, we should expand this to be more general, these examples below don't currently work:

Refinement on an attribute:

```python
class M(torch.jit.ScriptModule):
    def __init__(self):
        super(M, self).__init__()
        self.id = jit.Attribute(2, Optional[int])

    @jit.script_method
    def forward(self):
        a = 2
        if self.id is not None:
            a += self.id

m = M()
```

Refinement on a constant:

```python
class M(torch.jit.ScriptModule):
    __constants__ = ['x']

    def __init__(self, x):
        super(M, self).__init__()
        self.x = x

    @torch.jit.script_method
    def forward(self, a):
        attr = self.x
        if attr is not None:
            return a + attr
        else:
            return a

M(None)
```

cc @gmagogsfm
Repository: material-ui
Issue: Add ScrollSpy component
Labels: new feature,waiting for 👍

<!-- Checked checkbox should look like this: [x] -->
- [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) -->
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Expected Behavior 🤔
Like [zurb's Magellan](https://foundation.zurb.com/sites/docs/magellan.html). highlight navbar item based on scroll and/or based if element is in viewport

## Examples 🌈
See link above

## Context 🔦
I would like to create this component for MUI! I'm happy to submit a PR with some guidance :)

## Benchmark

- https://getbootstrap.com/docs/4.3/components/scrollspy/
- https://superprops-gatsby-tarex.redq.now.sh/saas/#1
- https://github.com/reactstrap/reactstrap/issues/82
- https://get.foundation/sites/docs/magellan.html
Repository: angular
Issue: [Elements] Slots working for an angular Element, but not Component
Labels: type: bug/fix,area: core,area: elements,state: confirmed,core: content projection,P3


# 🐞 bug report

### Affected Package
not sure


### Is this a regression?

No, I think this has been there for a while (see https://github.com/angular/angular/issues/24859)



### Description

With Elements supporting Shadow Dom v1 the angular elements appropriately slot content being passed to them. However when trying to use the same angular **component** in an angular app then the slot won’t work.


## 🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-slot-sd1


## 🌍  Your Environment

**Angular Version:**
<pre><code>
7.2.15

</code></pre>

**Anything else relevant?**
Repository: godot
Issue: Using class_name in a newly created script does not register it in the node creation dialog, if under addons/ (unless part of an enabled editor plugin)
Labels: bug,topic:core,topic:gdscript,confirmed,topic:plugin

Godot 3.1.1
Windows 10 64 bits

I suspect there is a scenario where it doesnt get registered at all. I was writing a new prototype this evening and the script still hasn't registered.

Here is what I remember doing:
1) Create a new project (no new scene)
2) Create a subfolder `addons/zylann.scatter/`
2) Right-click in the FileSystem dock and choose "New Script" into that folder
3) Write the following (I wrote it by hand so might have had a few errors while doing so, but the end result was the same):
```gdscript
tool
class_name Scatter3D
extends Spatial

var _scenes = []

func _ready():
	# TODO Temporary test
	_scenes.append(load("res://props/placeholder_tree.tscn"))
```
4) Save the script (still no scene in the project, I don't use the default Ctrl+S, instead I save the script only)
5) Create a new scene, open the node creation dialog, search for `Scatter`: it's nowhere to be found, despite the class name being recognized by the script editor and saved in `project.godot`.

Even after restarting the editor, the node can't be found. No particular messages in the console. Did I miss something obvious?
![image](https://user-images.githubusercontent.com/1311555/60053129-005cf700-96cf-11e9-8ad0-017c087ae2fb.png)

Here is the project, apparently you should be able to see directly what happens, since restart doesnt fix it:
[Scatter.zip](https://github.com/godotengine/godot/files/3322688/Scatter.zip)

Edit:
It would seem any script I create under `addons/zylann.scatter/` never get registered, but they do if I they are under the project root Oo
According to TheDuriel it's intented. Registration works in other systems, just not in the node dialog. I guess it's because plugins can be enabled/disabled, so it would make sense for them to no longer clutter the dialogs. However, it's not documented...
Repository: node
Issue: Report not generated if `--abort-on-uncaught-exception` is also given
Labels: report

* **Version**: `master`
* **Platform**: `Ubuntu 18.04`
* **Subsystem**: `report`

Not sure if that's supposed to work (I would expect so, it works with [node-report](https://github.com/nodejs/node-report) on Node.js v10.x), but when I use `--abort-on-uncaught-exception` with `--experimental-report --report-uncaught-exception` or `--experimental-report --report-on-fatalerror` I only get a core dump (I don't get a report file before crashing):

With `--abort-on-uncaught-exception`:

```
$ ./node --experimental-report --abort-on-uncaught-exception --report-uncaught-exception -e "function lala() { throw new Error() } lala()"
Uncaught Error

FROM
lala ([eval]:1:19)
[eval]:1:39
Script.runInThisContext (vm.js:123:20)
Object.runInThisContext (vm.js:313:38)
Object.<anonymous> ([eval]-wrapper:9:26)
Module._compile (internal/modules/cjs/loader.js:779:30)
evalScript (internal/process/execution.js:80:25)
internal/main/eval_string.js:23:3
[1]    9342 illegal hardware instruction (core dumped)  ./node --experimental-report --abort-on-uncaught-exception  -e 

$ ls
core
```

Without `--abort-on-uncaught-exception`:

```
$ ./node --experimental-report --report-uncaught-exception -e "function lala() { throw new Error() } lala()"

Writing Node.js report to file: report.20190624.161756.9421.0.001.json
Node.js report completed
[eval]:1
function lala() { throw new Error() } lala()
                  ^

Error
    at lala ([eval]:1:25)
    at [eval]:1:39
    at Script.runInThisContext (vm.js:123:20)
    at Object.runInThisContext (vm.js:313:38)
    at Object.<anonymous> ([eval]-wrapper:9:26)
    at Module._compile (internal/modules/cjs/loader.js:779:30)
    at evalScript (internal/process/execution.js:80:25)
    at internal/main/eval_string.js:23:3

$ ls
core  report.20190624.161756.9421.0.001.json
```
Repository: opencv
Issue: aarch64: libgomp.so.1: cannot allocate memory in static TLS block
Labels: needs investigation,platform: arm,category: 3rdparty

Problem is caused by this optional flag: `-DWITH_OPENMP=ON`
Comment with **workaround**: https://github.com/opencv/opencv/issues/14884#issuecomment-706725583
Comment with **investigation**: https://github.com/opencv/opencv/issues/14884#issuecomment-815632861

---

#### Original description

I am compiling opencv from source in order to enable multi-core support on a aarch64 platform.

I am building open cv with the following config:
```
cmake -D CMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_opencv_apps=OFF -DBUILD_DOCS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_LIBV4L=ON -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DWITH_OPENMP=ON -DWITH_GSTREAMER=ON -DWITH_OPENCL=ON -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ../
```

but every time I import it using python, I get the following error. A lot of the results on-line seems to be very vague and/or point towards a bug in gcc 4.2 fixed in 4.3 and I am currently on 8.x provided by debian repo and also 9.0.1 built from upstream source:

```
root@linaro-developer:~# python3
Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/cv2/__init__.py", line 89, in <module>
    bootstrap()
  File "/usr/local/lib/python3.7/dist-packages/cv2/__init__.py", line 79, in bootstrap
    import cv2
ImportError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
```

This is on opencv master branch as well as 4.0.1
Repository: flutter
Issue: Official support for Raspberry PI 4
Labels: c: new feature,e: device-specific,engine,customer: crowd,platform-linux,c: proposal,P3,team-engine,triaged-engine

Would like to see Flutter officially running on the latest **Raspberry PI 4** device. Heard someone ported Flutter on an old Raspberry PI device. But we need official support along with the mobile, desktop and web with minimal configuration setup. This will be a game changer in the competitive field of IOT. 

Since Flutter is capable of drawing beautiful UI and performing network operations, I can see an array of possible use cases like **Digital Signage, Ad vending, Self-ordering Kiosk, Home Automation**, etc. Since Raspberry PI is a **low-cost credit card sized** computing board, we developers can make powerful and beautiful apps with **Flutter** at low cost. Of course, **FlutterFire** support will be highly appreciated. 

It would be great if the Flutter team can expose the **Raspberry PI native peripheral IO** operations like GPIO, UART, SPI, etc using Dart. This will help to flutter the wings to the outside world.

I can imagine having a cup of coffee from a coffee vending machine by making an online payment from the touch screen app which is connected with the machine, running Flutter on a Raspberry P!  

Cc @eseidelGoogle
Repository: svelte
Issue: Change body class via <svelte:body />
Labels: feature request,popular

It's just an idea, but it'll be very convenient if we'll able to switch classes on body element like this:

```html
<svelte:body class:profile={isProfilePage} />
```
Repository: vue
Issue: Warn if colon shorthand is used on v-if/v-html/etc.
Labels: contribution welcome,feature request,good first issue,has PR,warnings

### What problem does this feature solve?
I just spent way too long debugging something really weird until I realized I accidentally wrote `:v-if` instead of `v-if`. 

A warning when wrongly using shorthands like `:` on "native" vue attributes could prevent this bad experience easily. 

### What does the proposed API look like?
`:v-if="foo"`

--> console.warn("You specified v-bind:/ v-on: or a corresponding shorthand on a Vue attribute like v-if or similar. Usually this does not make sense.)

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: godot
Issue: Editor Plugin fails to reference a singleton that is intended to load with itself.
Labels: bug,confirmed,usability,topic:plugin

**Godot version:**
3.1.1 stable official x64


**OS/device including version:**
Windows 10 1709 x64


**Issue description:**
Singleton, spawned in editor plugin main file with add_autoload_singleton(), and deleted with remove_autoload_singleton(), prevents to reactivate plugin if it's use was implemented to code in-place and then project reopened.
<img src="https://i.imgur.com/JWq48kj.png" />

**Steps to reproduce:**
1. Create an EditorPlugin.
2. Create singleton file with some variable.
3. Write add_autoload_singleton("SingletonName", "res://singleton_file.gd") to EditorPlugin's _enter_tree().
4. Write remove_autoload_singleton("SingletonName") to EditorPlugin's _exit_tree().
5. Go to Project Settings -> Plugins and activate plugin.
6. Add some use of singleton variables to EditorPlugin's main file, like
`var a = SingletonName.test_var`
7. Go to Project Settings -> Plugins and disable plugin.
8. Return to Project List and reopen project.
9. Go to Project Settings -> Plugins and try to activate plugin.
10. See a warning window and error of absent singleton that is intended to load.

**Workaround:**
Create needed singleton with needed name yourself and THEN activate plugin. It will work.

**Minimal reproduction project:**
http://www.mediafire.com/file/o0qjswb0r074zik/PluginAutoload.zip/file
Repository: terminal
Issue: Bug: Launching code from the wsl command line shouldn't break tmux.
Labels: Area-Output,Issue-Bug,Product-Terminal,Priority-2

<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.

**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible.

-->

# Environment

```none
Windows build number: [run "ver" at a command prompt]: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0

Any other software?
```

# Steps to reproduce

<!-- A description of how to trigger this bug. -->

I'm running `tmux` in `wsl`. When I open vscode in any pane by writing `code .` or `code-insiders .`, the whole tmux display gets mutilated. Starting typing something in one pane starts changing other side panes.

# Expected behavior

<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->

Launching code from the wsl command line shouldn't break tmux.

# Actual behavior

<!-- What's actually happening? -->
The panes get broken - maybe it's a conpty bug, because I also get similar issues when running Alacritty using conpty. I can also intermittently see the cursor jumping between different panes for a brief moment (100ms or so)...
Repository: material-ui
Issue: Support for prefers-reduced-motion
Labels: new feature,accessibility

- [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) -->
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Expected Behavior 🤔
The transition components Collapse, Fade, Grow, Slide, and Zoom (and other MUI components with animations) should have reduced motion in their animations, by either disabling the animations altogether or using a simple fade animation, when the prefers-reduced-motion: reduce media query is true.

## Current Behavior 😯
None of the components change behaviour and show the same animation when the media query is true.

## Examples 🌈
Here’s the [MDN doc](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) for this media query. It’s supported on Chrome, Firefox, and Safari on Windows, Mac, and iOS.

This [WebKit blog](https://webkit.org/blog/7551/responsive-design-for-motion/) has several examples of how to support this media query.

## Context 🔦
I’m currently adding support for this media query in my web app by disabling page transitions and other custom transitions by using the media query in JSS. But I’m also using MUI’s built-in transition components and there is currently no easy way to disable those animations.

I could use the useMediaQuery hook to modify what my component returns to remove the transition components, but this is quite cumbersome. Supporting this media query directly would make it a lot easier to build more accessible web apps.
Repository: flutter
Issue: Text widget dynamic amount of lines in a Container or SizedBox with fixed height
Labels: c: new feature,framework,P3,team-framework,triaged-framework

I would like a Text to render as many lines as can fit in a parent height. So let's say I have a container with height of 50px and I want a long text inside to render 5 lines and then do ellipsis. But if my Text widget have maxLines: 6 then 6th line will get cut off. I would expect that if 6 lines don't fit it should render 5 lines only. I want it to be dynamic because my container height could be size. I can get it to work using LayoutBuilder or TextPainter but I would expect better way.
Here's example of text being cut off
![671561450565_ pic_hd](https://user-images.githubusercontent.com/29712386/60110084-15548b80-979e-11e9-9383-a2aa1ae0f140.jpg)