sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [webview_flutter] Provide callback/error for unsupported content types (e.g., PDF)
Labels: c: new feature,platform-android,customer: crowd,p: webview,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.5,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!--
     Please tell us exactly how to reproduce the problem you are running into.

     Please attach a small application (ideally just one main.dart file) that
     reproduces the problem. You could use https://gist.github.com/ for this.

     If the problem is with your application's rendering, then please attach
     a screenshot and explain what the problem is.
-->

on iphones it works fine, but the pdf is not shown up on android emulator or physical android phone.
I guess the reason is android webview doesn't support pdf?
Is there a way we can add this feature?

```
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(),
        body: WebView(
          initialUrl:
              'https://www.wmata.com/schedules/maps/upload/2019-System-Map.pdf',
        ),
      ),
    );
  }
}
```

<!--
     Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
     Which target OS version, for Web, browser, is the test system running?
     Does the problem occur on emulator/simulator as well as on physical devices?
-->

**Target Platform:**android
**Target OS version/browser:**
**Devices:**


## Logs

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```
Repository: node
Issue: tap2junit/build/python nightly failed with unicode problem
Labels: build,test,python

```
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 144, in check_printable
00:21:52     'unicode', "special characters are not allowed")
00:21:52 yaml.reader.ReaderError: unacceptable character #x001b: special characters are not allowed
```

Nightly build from 2 days ago:
- https://ci.nodejs.org/view/Node.js%20Daily/job/node-daily-master/1795/
OS failure:
- https://ci.nodejs.org/job/node-test-commit-osx/31139/nodes=osx1011/console

```
00:21:51 + tap2junit -i test.tap -o test.xml
00:21:52 Traceback (most recent call last):
00:21:52   File "/usr/local/bin/tap2junit", line 10, in <module>
00:21:52     sys.exit(main())
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 51, in main
00:21:52     convert(args.input, args.output)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 42, in convert
00:21:52     result = parse(input_file, data)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 34, in parse
00:21:52     tap_parser.parse(data)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/tap13.py", line 147, in parse
00:21:52     self._parse(StringIO.StringIO(source))
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/tap13.py", line 78, in _parse
00:21:52     self.tests[-1].yaml = yamlish.load(self.tests[-1].yaml_buffer)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 222, in load
00:21:52     out = load('\n'.join(inobj), ignore_wrong_characters)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 203, in load
00:21:52     out = yaml.load(source, Loader=_YamlishLoader)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/__init__.py", line 69, in load
00:21:52     loader = Loader(stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 145, in __init__
00:21:52     yaml.loader.SafeLoader.__init__(self, stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/loader.py", line 24, in __init__
00:21:52     Reader.__init__(self, stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 74, in __init__
00:21:52     self.check_printable(stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 144, in check_printable
00:21:52     'unicode', "special characters are not allowed")
00:21:52 yaml.reader.ReaderError: unacceptable character #x001b: special characters are not allowed
00:21:52   in "<unicode string>", position 114
```
Repository: opencv
Issue: Feature request: eigenNonSymmetric() with complex eigenvalues
Labels: feature,RFC

Current `eigenNonSymmetric()` function does not seem to support real square matrix with complex eigenvalues.
Checking that a real matrix has complex eigenvalues seems to be not trivial, [see](https://math.stackexchange.com/questions/1195350/is-there-any-way-we-can-check-if-a-real-matrix-has-complex-eigenvalues).

Example in Numpy/Scipy (from [Matlab doc](https://www.mathworks.com/help/matlab/ref/eig.html)):

```
from __future__ import print_function
import numpy as np
from scipy.linalg import eig

A = np.matrix([[1, 2, 3],
               [3, 1, 2],
               [2, 3, 1]])
w, v = eig(A)
print('A:\n', A)
print('v:', v)
print('w:', w)
```

gives:

```
A:
 [[1 2 3]
 [3 1 2]
 [2 3 1]]
v: [[-0.57735027+0.j   0.28867513-0.5j  0.28867513+0.5j]
 [-0.57735027+0.j  -0.57735027+0.j  -0.57735027-0.j ]
 [-0.57735027+0.j   0.28867513+0.5j  0.28867513-0.5j]]
w: [ 6.0+0.j        -1.5+0.8660254j -1.5-0.8660254j]
```

In OpenCV:

```
      Matx33d m(
          1, 2, 3,
          3, 1, 2,
          2, 3, 1);
      Mat eigenvalues, eigenvectors;
      try
      {
          cv::eigenNonSymmetric(m, eigenvalues, eigenvectors);
          std::cout << "m:\n" << m << std::endl;
          std::cout << "eigenvalues:\n" << Mat(eigenvalues.t()) << std::endl;
          std::cout << "eigenvectors:\n" << eigenvectors << std::endl;
      }
      catch (const cv::Exception& e)
      {
          std::cerr << "eigenNonSymmetric no conv: " << e.what() << std::endl;
      }
      catch (...)
      {
          std::cerr << "Unknown exception has been raised" << std::endl;
      }
```

gives:

```
m:
[1, 2, 3;
 3, 1, 2;
 2, 3, 1]
eigenvectors:
[0.577350269189626, 0.5773502691896255, 0.577350269189626;
 0.7316804540966678, -0.6796598963166424, -0.05202055778002566;
 0.3623677410581142, 0.4524699901711914, -0.8148377312293055]
eigenvalues:
[6.000000000000004, -1.5, -1.5]
```

---

Possible feature implementation would be to use `?GEEV` LAPACK routine to compute the eigenvalues and eigenvectors of a general square matrix. So a fallback would be needed when OpenCV is not built with LAPACK support, something like a reference LAPACK implementation?
Output would be something like `CV_64FC2` to handle complex values? Or `CV_64FC2` only when values are complex to keep the previous behavior?

See [`DGEEV`](http://www.netlib.org/lapack/explore-html/d9/d8e/group__double_g_eeigen_ga66e19253344358f5dee1e60502b9e96f.html) doc.
See [`numpy.linalg.eig`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.eig.html) doc and corresponding [source code](https://github.com/numpy/numpy/blob/v1.17.0/numpy/linalg/linalg.py#L1182-L1321).
Repository: material-ui
Issue: [Drawer] nested menu in minified form
Labels: new feature,component: drawer

- [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.

## Summary 💡

I have not found such design on [material design](https://material.io/) but I think it would be nice to be able to use the [mini variant drawer](https://material-ui.com/components/drawers/#mini-variant-drawer) even the menu is nested.

## Examples 🌈

GitLab menu provides a good example of such a menu

Discoverable menu on hover in minified form (not doable with current material ui)
![image](https://user-images.githubusercontent.com/8068131/71835946-2bc79200-30b3-11ea-94ff-10abe9ddb196.png)


Full menu in expanded form (doable with current material ui)
![image](https://user-images.githubusercontent.com/8068131/71835944-28cca180-30b3-11ea-9a94-ade806d64cc3.png)


## Motivation 🔦

It is rare not to have a nested menu. It would be interesting to be able to navigate an app with a collapsed menu in its mini variant form
Repository: vscode
Issue: Provide a way to debug extensions to hint syntax for advanced breakpoints
Labels: debug,under-discussion

Right now, when you try to create a hit count breakpoint, you're given this:

![image](https://user-images.githubusercontent.com/2230985/71839627-7c69cb80-3070-11ea-93ef-1cbc2c468ffa.png)

And log points like so:

![image](https://user-images.githubusercontent.com/2230985/71839774-cf438300-3070-11ea-98ac-3c2dad8c40ce.png)

The data in here is text and can be interpreted however the debug adapter sees fit. It might be useful to allow the adapter to hint at what their syntax is to help the user figure out what to put in their without having to google for whatever adapter they're using.

Ideas:

  - A default always-true placeholder. For JS debug, that would be the string `>= 0`. This would only allow showcasing a single hint, however, and would be less useful for logpoint breaks.
 - A way for the adapter to provide a URL to find more information about the syntax they use, and surface that inline somehow.
 - A message/markdown to be shown around the breakpoint UI. This might get too noisy with long messages, it could be hidden by default and toggled with a button.

![image](https://user-images.githubusercontent.com/2230985/71840197-a66fbd80-3071-11ea-8505-2cc58fa660c2.png)

cc @misolori
Repository: godot
Issue: Colored emojis' outlines are broken when defined as a fallback for DynamicFont
Labels: bug,confirmed,topic:gui

**Godot version:**
24281cd

**Issue description:**
If a `DynamicFont` with `outline` bigger than 0 has colored emojis defined as a fallback font, their outlines will be drawn incorrectly, likely drawing the outlines of the broken characters of the main.

**Minimal reproduction project:**
[example.zip](https://github.com/godotengine/godot/files/5699789/example.zip)
Repository: go
Issue: all: simplify standard library examples
Labels: Documentation,help wanted,NeedsInvestigation

Over the last few years, Go standard library has done a great job by improving the examples coverage. However, some of the examples are difficult to read or too comprehensive to be a reference for basic usage.

Standard library examples can help more if they were simpler and more copy/paste-able. More comprehensive scenarios can be covered as secondary examples or in other mediums such as https://gobyexample.com/.

Here are some examples:

- https://golang.org/pkg/path/filepath/#Walk
  It creates a directory, adds a lot of logic, prints out unix-specific comments, etc. Instead, it can demonstrate how to walk in a well known path, such as the home directory. 
- https://golang.org/pkg/io/#example_TeeReader
  It doesn't really demonstrate a case where a TeeReader is useful. Running is required to understand what it does.
- https://golang.org/pkg/os/exec/#example_Cmd_StderrPipe
   It is hard to follow what the sh is supposed to do with "echo stdout; echo 1>&2 stderr". It would be more valuable if the command is something everyone can relate.

Sorry for having to nitpick these examples, there are more cases in the standard library and it would be great to turn some of these examples into more digest ones. 

Having said that, I see some packages (such as the io ones) might be better with comprehensive examples where edge cases are explained and demonstrable by running the example program because APIs are not always doing a great job explaining the behavior.
Repository: pytorch
Issue: torch.masked_select out argument can easily be misused, because output shape is dynamically computed
Labels: high priority,triaged,module: numpy,module: safe resize

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
Unexpected behavior of `masked_select`, likely due to `out` option should be contiguous but was not clarified in the doc.

## To Reproduce

Steps to reproduce the behavior:

```python
x, m, z = torch.ones((4,3,2)), torch.zeros((4,3), dtype=torch.bool), torch.zeros((4,2,2))
m[:, 1] = True

torch.masked_select(x, m[..., None], out=z[:, 1, :])
```

## Expected behavior

```python
>>> print(z)
tensor([[[0., 0.],  
         [1., 1.]], 
                    
        [[0., 0.],  
         [1., 1.]], 
                    
        [[0., 0.],  
         [1., 1.]], 
                    
        [[0., 0.],  
         [1., 1.]]])
```

## Observed behavior

```python
>>> print(z)
tensor([[[0., 0.],  
         [1., 1.]], 
                    
        [[1., 1.],  
         [1., 1.]], 
                    
        [[1., 1.],  
         [0., 0.]], 
                    
        [[0., 0.],  
         [0., 0.]]])
```

## Environment
PyTorch version: 1.3.1
CUDA used to build PyTorch: 10.1.243
OS: Ubuntu 18.04
Python version: 3.7

cc @ezyang @gchanan @zou3519 @mruberry @rgommers @heitorschueroff
Repository: rust
Issue: Expose `abort` function from core
Labels: T-lang,T-libs-api,C-feature-request,WG-embedded

It seems like `core` knows how to abort a program (it has `core::intrinsics::abort`), but only `std` exposes this functionality.

In some rare cases, a potentially unwinding panic might lead to unsoundness, where an abort would do a better job. A good example is [the implementation of `Arc`](https://github.com/rust-lang/rust/blob/ebbb2bf37aedaaa64dfaa52ba337ca6efb6b9093/src/liballoc/sync.rs#L947-L960).

The very same situation occurs [in the `atomic_refcell` crate](https://github.com/bholley/atomic_refcell/blob/807df0a411b698412c4bc890649679f0aaa3ef20/src/lib.rs#L164-L173). As there is nothing else in the crate depending on `std` it should be a `no_std` crate. However, that change replaces the `std` exit/abort call with [an ugly hack using a double-panic](https://github.com/bholley/atomic_refcell/blob/195db87e0feaef15539e195e1c9cbc472e22a72e/src/lib.rs#L165-L188) to try to cause an abort.

Instead, a stable `abort` function in `core` would be a lot nicer.
Repository: TypeScript
Issue: Weird error message for mixed exported/non-exported declarations under `isolatedModules`
Labels: Suggestion,Needs Proposal

```ts
// @isolatedModules: true

export function bar() {
    
}
interface bar {
}

export { bar as MyThing };
```

**Expected**: I actually don't know 😄. I think it should just work though.
**Actual**: Unclear error message

In nightlies (3.8+), the message is currently

```
Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
```

In 3.7.4 the message is still unclear.

```
Cannot re-export a type when the '--isolatedModules' flag is provided.
```

But `bar` is also a value!

See also

* https://github.com/microsoft/TypeScript/issues/32662 (which is about correcting the phrasing of the error)
* https://github.com/microsoft/TypeScript/issues/32601 (which is about I guess giving the user better suggestions)
Repository: node
Issue: rmdirsync doesn't throw error when symlinked path is passed as argument in windows node 12
Labels: fs

I have written a simple code to pin down the issue.
Env: Windows
Node version: 12

```js
const fs = require('fs');

fs.mkdirSync("tmp");
fs.symlinkSync(".", "tmp/out");
console.log(`fs.existSync(tmp/out) : ${fs.existsSync('tmp/out')}`);
fs.rmdirSync('tmp/out');
```
Execution in CI:
Node 12
```sh
Build started
git clone -q --branch=rmdirsync https://github.com/SparshithNR/node-symlink.git C:\projects\node-symlink
git checkout -qf a6cb35fc2b3d2df328d4aeae3db65d732243142c
Restoring build cache
Cache 'C:\Users\appveyor\AppData\Local\Yarn' - Restored
Running Install scripts
Install-Product node $env:nodejs_version
Uninstalling node 8.16.2 (x86)...
Installing node 12.13.1 (x86)...
git rev-parse HEAD
a6cb35fc2b3d2df328d4aeae3db65d732243142c
yarn run test
yarn run v1.16.0
$ node index.js
fs.existSync(tmp/out) : true
Done in 0.27s.
Updating build cache...
Cache 'C:\Users\appveyor\AppData\Local\Yarn' - Up to date
Build success
```
Node 10:
```sh
Build started
git clone -q --branch=rmdirsync https://github.com/SparshithNR/node-symlink.git C:\projects\node-symlink
git checkout -qf a6cb35fc2b3d2df328d4aeae3db65d732243142c
Restoring build cache
Cache 'C:\Users\appveyor\AppData\Local\Yarn' - Restored
Running Install scripts
Install-Product node $env:nodejs_version
Uninstalling node 8.16.2 (x86)...
Installing node 10.17.0 (x86)...
git rev-parse HEAD
a6cb35fc2b3d2df328d4aeae3db65d732243142c
yarn run test
yarn run v1.16.0
$ node index.js
fs.existSync(tmp/out) : true
fs.js:114
    throw err;
    ^
Error: ENOENT: no such file or directory, rmdir 'tmp/out'
    at Object.rmdirSync (fs.js:684:3)
    at Object.<anonymous> (C:\projects\node-symlink\index.js:6:4)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Command exited with code 1
```
Code can be found here: https://github.com/SparshithNR/node-symlink/tree/rmdirsync
Windows Execution: https://ci.appveyor.com/project/SparshithNR/node-symlink/builds/29933274
Linux Execution: https://github.com/SparshithNR/node-symlink/runs/376483962
Repository: node
Issue: Provide built-in implementations of module linker, initializeImportMeta, importModuleDynamically
Labels: vm

**Is your feature request related to a problem? Please describe.**

When using vm.SourceTextModule we have to implement a linker, initializeImportMeta, and importModuleDynamically, even if we just want the default behavior of built-in module support. There are many subtle ways to get that wrong.

**Describe the solution you'd like**

Default implementations that do basically what built-in module support does:
- A linker function that:
  - Reads files from disk, within a specified root.
  - Uses Node module resolution as implemented for modules
  - Uses a specified module cache
  - `initializeImportMeta` that sets `url` property
  - By configuration, allows access to built-in modules.

**Describe alternatives you've considered**

Userland libraries can take the first cuts at easy-to-use vm.Modules, but I think something for common use cases should likely be included.
Repository: rust
Issue: Mutable borrow of field with autoref vs ref mut
Labels: A-lifetimes,T-compiler,A-NLL,NLL-complete,NLL-polonius

I've been playing around with a singly-linked-list. It turns out that this method, which I had hoped might compile with help of non-lexical-lifetimes, does not compile:

    struct Recursive {
        child: Option<Box<Recursive>>
    }
    
    impl Recursive {
        fn mut_back(&mut self) -> &mut Self {
            let mut node = self;
            while let Some(child) = node.child.as_mut() {
                node = child
            }
            node
        }
    }

The error is stating that the borrow for `node.child` overlaps with the returned borrow of `node`, as seen below:

    error[E0499]: cannot borrow `*node` as mutable more than once at a time
      --> src/lib.rs:11:13
       |
    6  |         fn mut_back(&mut self) -> &mut Self {
       |                     - let's call the lifetime of this reference `'1`
    7  |             let mut node = self;
    8  |             while let Some(child) = node.child.as_mut() {
       |                                     ---------- first mutable borrow occurs here
    ...
    11 |             node
       |             ^^^^
       |             |
       |             second mutable borrow occurs here
       |             returning this value requires that `node.child` is borrowed for `'1`

    error: aborting due to previous error

There is a _very similar_ implementation of `mut_back()` which does compile:

    impl Recursive {
        fn mut_back_good(&mut self) -> &mut Self {
            let mut node = self;
            while let Some(ref mut child) = node.child {
                node = child
            }
            node
        }
    }

What I think is going on to cause the first implementation to fail is the call to `child.as_mut()`. Presumably due to autoref this creates a new unique borrow on `node.child`.

In the second case, I understand that the `ref mut` binding means we're _also_ creating a unique borrow on `node.child`. But in this case the borrow checker doesn't think this new unique borrow is a problem.

It seems to me that the compiler should be able to treat these two implementations equally?