sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Long pressing a button on mobile causes neighbouring text to be selected
Labels: bug 🐛,component: ButtonBase

<!-- Provide a general summary of the issue in the Title above -->
This can also be observed on the [official page of the button component](https://material-ui.com/components/buttons/). Since the button has `user-select: none`, long pressing it on mobile does not select it's inner text, but instead starts selecting the next "user-selectable" text. This has been observed on iOS only, other devices unknown, maybe someone could confirm.

<!--
  Thank you very much for contributing to Material-UI by creating an issue! ❤️
  To avoid duplicate issues we ask you to check off the following list.
-->

<!-- Checked checkbox should look like this: [x] -->

- [x] The issue is present in the latest release.
- [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.

## Current Behavior 😯

<!-- Describe what happens instead of the expected behavior. -->

Long pressing a button on mobile selects the neighbouring text.

## Expected Behavior 🤔

<!-- Describe what should happen. -->

Long pressing a button on mobile does not select any text at all.

## Steps to Reproduce 🕹

<!--
  Provide a link to a live example (you can use codesandbox.io) and an unambiguous set of steps to reproduce this bug.
  Include code to reproduce, if relevant (which it most likely is).

  You should use the official codesandbox template as a starting point: https://material-ui.com/r/issue-template-next

  If you have an issue concerning TypeScript please start from this TypeScript playground: https://material-ui.com/r/ts-issue-template

  Issues without some form of live example have a longer response time.
-->

Steps:

1. Go to the button documentation page on a mobile device: https://material-ui.com/components/buttons/
2. Long press one of the button examples
3. Observe the next selectable text is selected

## Context 🔦

<!--
  What are you trying to accomplish? How has this issue affected you?
  Providing context helps us come up with a solution that is most useful in the real world.
-->

I was trying to detect long presses on a button and although it works, it is annoying to see that some text is being selected elsewhere.

## Your Environment 🌎

Material UI's website on iOS 14.4.2 Safari/Chrome/Firefox
Repository: rust
Issue: `as *mut _` does not cause by-`mut` place evaluation, causing an error stating `DerefMut` is not implemented, but it is
Labels: A-diagnostics,T-lang,T-compiler,C-bug,D-incorrect

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur. 
-->

Given [the code](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a5e32e0957c73d9a498615341161291a):

```rust
#![allow(unused_mut)]

use core::mem::ManuallyDrop;

pub struct RefWrapper<'a, T: ?Sized> {
    slot: &'a mut T,
}

impl<'a, T: ?Sized> RefWrapper<'a, T> {
    pub fn into_raw(this: Self) -> *mut T {
        let mut this = ManuallyDrop::new(this);
        // let this = &mut *this;
        this.slot as *mut T
    }
}
```

The current output is:

```
error[E0596]: cannot borrow data in a dereference of `ManuallyDrop<RefWrapper<'_, T>>` as mutable
  --> src/lib.rs:13:9
   |
13 |         this.slot as *mut T
   |         ^^^^^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `ManuallyDrop<RefWrapper<'_, T>>`
```

Ideally, this should just work[^1]. Uncommenting the commented line to add an explicit mutable reborrow allows the code to work as intended. But even if it can't work, the error is clearly very unhelpful, as the issue isn't the lack of `DerefMut`, but that the compiler selected a shared `Deref` evaluation of the place.

@rustbot modify labels +C-bug +D-incorrect

[^1]: Importantly, just work *and produce a pointer with valid `mut` provenance*. It would be technically correct but misleading to allow `&mut T as *mut T` behind a shared reference to behave like `&mut T as *const T as *mut T`. The actually useful behavior is for the fact that `as *mut` is a by-`mut` use of the `this.slot` place to flow back into the selection of whether to evaluate the `this.slot` place by-ref (via `Deref`) or by-mut (via `DerefMut`) the same way other by-`mut` place usage does.
Repository: youtube-dl
Issue: Add support for sketch.pixiv.net
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.06.06**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://sketch.pixiv.net/@rune_q/lives/8393780287882279090


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
[debug] Command-line args: ['--cookies', '--force-generic-extractor', '-F', 'https://sketch.pixiv.net/@\*/lives/\*']
[debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19043
[debug] exe versions: ffmpeg 2021-06-09-git-e01bf559df-full_build-www.gyan.dev, ffprobe 2021-06-09-git-e01bf559df-full_build-www.gyan.dev
[debug] Proxy map: {}
Traceback (most recent call last):
  File "./YoutubeDL.py", line 815, in wrapper
  File "./YoutubeDL.py", line 836, in __extract_info
  File "./extractor/common.py", line 534, in extract
  File "./extractor/generic.py", line 3520, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://sketch.pixiv.net/@*/lives/*
Repository: opencv
Issue: 3d module: move out undistort functionality
Labels: bug,RFC

... as unrelated to generic 3D processing.
Also this requires knowledge of camera models.

relates #18940

- public header
- implementation
- tests
Repository: neovim
Issue: Lua strings containing null bytes arrive as tables when passed to Neovim / VimL
Labels: vimscript,bug-vim,lua

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`:
  ```
  NVIM v0.5.0-dev
  Build type: Release
  LuaJIT 2.1.0-beta3
  Compilation: 
  Compiled by nixbld
  
  Features: +acl +iconv +tui
  ```
- Operating system/version: NixOS 20.09
- Terminal name/version: Kitty
- `$TERM`: xterm-256color

### Steps to reproduce using `nvim -u NORC`

```
nvim -u NORC
:lua vim.g.foo = "oh\0no"
:echo g:foo
```

### Actual behaviour

The following value is stored within the var and printed out by the `echo` command:

```
{'_TYPE': [], '_VAL': ['oh
no']}
```

### Expected behaviour

The null byte should be preserved or the string should be cut off early. If you execute `:let g:foo = "oh\0no"` then echo it you only get `"oh"` back out, but at least it's a string. I think this behaviour may still be confusing but is more acceptable than the type changing from string to table as it crosses the boundary.
Repository: youtube-dl
Issue: Site support request: cafe.naver.com
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.06.06**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://cafe.naver.com/fakesoul/105792


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
[debug] Command-line args: ['-f', 'https://cafe.naver.com/fakesoul/105792']
[debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19043
[debug] exe versions: ffmpeg 2021-06-09-git-e01bf559df-full_build-www.gyan.dev, ffprobe 2021-06-09-git-e01bf559df-full_build-www.gyan.dev
Unsupported URL: https://cafe.naver.com/fakesoul/105792
Repository: youtube-dl
Issue: Beta Crunchyroll
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.06.06**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

https://beta.crunchyroll.com/it/watch/G8WUN2ND8/La-citt-delle-bestie-magiche-coperta-di-neve
https://beta.crunchyroll.com/watch/GJWU2J7Z8/Clash-Class-A-vs-Class-B

## Description

"Beta Crunchyroll" will leave beta on 15 of June (this month).
I saw that another dowloader can support it (but I prefer youtube-dl because it also support many other websites and it can be used from command line), so I think youtube-dl can also support it (at least they don't use netflix/prime drm-like things so it should be possible) and since it will leave beta in two days I think it's time to try to add the support if it's not already done.
Repository: vscode
Issue: Cache files not stored under appropriate XDG directory
Labels: bug,upstream,linux,electron,upstream-issue-linked

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.57.0
- OS Version: Ubuntu 20.04.2 LTS

VSCode appears to store cache/intermediate files under ~/.config/Code. For example: Cache/, CachedConfigurations/, CachedData/, CachedExtensions/, CachedExtensionsVSIXs/, Code Cache/, GPUCache/, etc. There may be other files/folders containing temporary data that is also inappropriate for the ~/.config location.

On a well used Ubuntu system, my total ~/.config/ is 657 MB, the ~/.config/Code directory is 606 MB, and the sum of all .config/Code/ directories starting with “Cache” is 568 MB. While it is possible that the “Cache” naming is a red herring, I believe they should be stored under ~/.cache, as per the [XDG specification](https://wiki.archlinux.org/title/XDG_Base_Directory).

Only noticed this because I am trying to become more diligent about backups, and the total size of my ~/.config was surprising.
Repository: pytorch
Issue: Lazy modules should accept keyword arguments to forward method
Labels: module: nn,triaged,actionable

## 🚀 Feature
Lazy modules (i.e. module that inherits from `torch.nn.modules.lazy.LazyModuleMixin`) should accept keyword arguments to forward method, to have API syntax parity with non-lazy modules.

## Motivation

If we have a non-lazy module with keyword argument:
```python
import torch

class MyNonLazyModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.c = 100
    def forward(self, a, b=1):
        return a + b + self.c
```
We can pass keyword argument when calling this module:
```python
m = MyNonLazyModule()

m(1, b=2)  # gives 103
m(a=1)  # gives 102
m(a=1, b=2)  # gives 103
```

But if we have a lazy module with keyword argument:
```python
import torch

class MyLazyModule(torch.nn.modules.lazy.LazyModuleMixin, torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.c = 100
    def initialize_parameters(self, a, b=1):
        if b == 1:
            self.c = 100
        else:
            self.c = 200
    def forward(self, a, b=1):
        return a + b + self.c
```
Passing keyword argument when calling this module would either have incorrect behavior or just fail:
```python
m = MyLazyModule()

m(1, b=2)  # gives 103, but it should be 203 if we strictly follow the `initialize_parameters` logic.
m(a=1)  # fails with "TypeError: initialize_parameters() missing 1 required positional argument: 'a'".
m(a=1, b=2)  # fails with "TypeError: initialize_parameters() missing 1 required positional argument: 'a'".
```

## Pitch

Lazy modules (i.e. module that inherits from `torch.nn.modules.lazy.LazyModuleMixin`) should accept kwargs to forward method, to have API syntax parity with non-lazy modules.

The current implementation of `LazyModuleMixin` uses forward pre-hook. Forward pre-hook doens't accept kwargs now, but we can consider changing it:

```python
# in https://github.com/pytorch/pytorch/blob/095cd6a0da255a5ed24d146898c53790f0e9c3f0/torch/nn/modules/module.py#L1063
...
- result = hook(self, input)

+ if len(inspect.signature(hook).parameters) == 3:
+    result = hook(self, input, kwargs)
+ else:
+    result = hook(self, input)
...
```

to make it accept kwargs without breaking BC for all existing hooks.

## Alternatives

An alternative is forking `LazyModuleMixin` and adding support for accepting kwargs to forward pre-hooks and `_infer_parameters`. But it would be great to not need to fork because there will be a lot more code to maintain.

## Additional context

Lazy module is very common in FB-internal RecSys ecosystem. Almost all DPER modules are "lazy module", and as we build out the PyTorch-based RecSys ecosystem internally, we would like to provide the same API syntax for lazy modules as non-lazy modules, to make sure internal users can fully enjoy the UX advantage of PyTorch.

cc @albanD @mruberry @jbschlosser @walterddr @saketh-are
Repository: node
Issue: Node process freezes when text is selected in command line
Labels: windows

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: v16.2.0
* **Platform**: Windows 10
* **Subsystem**: -

### What steps will reproduce the bug?

- Run any Node.js script: an `http-server` or long-running `npm install`.
- Select text in console window.

<!--
Enter details about your bug, preferably a simple code snippet that can be
run using `node` directly without installing third-party dependencies.
-->

### How often does it reproduce? Is there a required condition?

Always.

### What is the expected behavior?

Node process should never freeze due to text selection in terminal, same as desktop application UI threads should never stop execution of application.

<!--
If possible please provide textual output instead of screenshots.
-->

### What do you see instead?

Server doesn't respond to requests, `npm` installation freezes. Whole `node` process does nothing.

<!--
If possible please provide textual output instead of screenshots.
-->

### Additional information

This is Windows-specific problem that I [encountered](https://stackoverflow.com/questions/48068773/node-js-halts-when-console-window-is-scrolled) by interacting with terminal window in a different way more than 3 years ago. Given that it's very easy to start selection on Windows just by clicking a terminal window (while switching windows, for example), it's very common to find a long-running script doing nothing after several minutes of waiting for progress. I think this is a serious UX issue.

<!--
Tell us anything else you think we should know.
-->
Repository: create-react-app
Issue: Confusing comment on corejs@3
Labels: needs triage

https://github.com/facebook/create-react-app/blob/master/packages/babel-preset-react-app/dependencies.js#L88-L89

```
// This will need to change once we upgrade to corejs@3
corejs: 3,
```

Was the change not really that needed?
Repository: flutter
Issue: Exceptions not being logged in Android Studio
Labels: tool,a: debugging,P3,d: intellij,team-tool,triaged-tool

## Problem

For about a week now, I have not been able to see _any_ exceptions thrown in Dart code while running my Flutter app in Android Studio.

This problem is similar to https://github.com/flutter/flutter/issues/41133, however, I am running on Android. I have not been able to find any still open issue mentioning this issue on the latest version.

## Detailed behavior

When I run any Flutter app, e.g.

<details><summary>Click to expand sample code</summary>

```dart
void main() {
  runApp(const _TestWidget());
}

class _TestWidget extends StatelessWidget {
  const _TestWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    throw Exception('test');
    return Container();
  }
}
```

</details>

* Using **Android Studio**'s `Run` feature, the exception simply does not show up in the logs.
* When I use AndroidStudio's `Debug` feature, the debugger stops at the `throw Exception` statement and then I can see it in the logs as well.
* When I run `flutter run` from the `Terminal` tab within Android Studio, the exception also shows up:

```
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _Exception was thrown building _TestWidget(dirty):
Exception: test
```

But no matter what I try, **no exceptions** are shown when the I use the normal run configuration inside of Android Studio.

### Prints

This is the best part, all other `print`s and logging work perfectly fine. So when I insert a `print('foo')`, I see it in the console, but not the exceptions being thrown 🤷‍♀️

It seems the `stderr` is not connected to Android Studio's `Run` console.

### Versions

<details><summary>Click to expand versions</summary>

```
[✓] Flutter (Channel stable, 2.2.2, on Microsoft Windows [Version 10.0.19041.1052], locale en-US)
    • Flutter version 2.2.2
    • Framework revision d79295af24 (2 days ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Platform android-S, build-tools 30.0.2

[✓] Android Studio (version 4.1.0)
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
```

</details>