sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: Nested View and Text vertical alignment issue.
Labels: Needs: Triage :mag:

## Description
Nesting View inside Text adds lineHeight's marginBottom to View and when we add Text inside that View it doesn't gets aligned properly.

## React Native version:
System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 55.67 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    Yarn: 1.22.10 - ~/npm-global/bin/yarn
    npm: 6.14.13 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: ~0.63.4 => 0.63.4
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

## Steps To Reproduce
1. Setup a CRNA or Expo app.
2. Replace the code in App.js with - 
```
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View } from "react-native";

export default function App() {
  return (
    <View style={styles.container}>
      <Text style={styles.outsideText}>
        Outside Text{" "}
        <View style={styles.insideView}>
          <Text>Inside Text</Text>
        </View>
      </Text>
      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
  outsideText: {
    backgroundColor: "#cecece",
  },
  insideView: {
    backgroundColor: "#fcc9",
  },
});
```
3. Start your App on iOS or Android with `yarn ios` or `yarn android`.


## Expected Results
The text should be in the same line aligned vertically. Like it looks when we run this example on the Web.

## Snack, code example, screenshot, or link to a repository:
https://snack.expo.dev/gdbQbTirc
<img width="429" alt="Screenshot 2021-08-05 at 1 40 11 AM" src="https://user-images.githubusercontent.com/36300815/128248083-60a50122-b43d-4f40-aafe-ed510030f385.png">
Repository: ant-design
Issue: Dropdown buttom stops working in mobile phones
Labels: Inactive,📱Mobile Device

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://ant.design/components/dropdown/](https://ant.design/components/dropdown/)

### Steps to reproduce
I have searched the issues and believe that this is not a duplicate.

1) Open the link in an android browser: https://ant.design/components/dropdown/
2) Click the dropdown button of one of the components with buttons. The menu will appear
3) Do a small swipe outside the component (touch a spot on the screen and drag your finger left, right,
up, or down). The menu will hide, but the button will keep selected (blue color). It is not able to click the button again to reopen the menu.

The problem (maybe only mine) is that sometimes I click with a little minimal movement and phone interprets it as a swipe, and component get stuck.

### What is expected?
The dropdown button to be deselected

### What is actually happening?
Menu is hidden, but dropdown button is not deselected

| Environment | Info |
|---|---|
| antd | 4.16.10 |
| React | 17 |
| System | Android 11 |
| Browser | Chrome 92.0.4515.131 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: Relative dependencies for files do not update properly when moving multiple files at once between folders.
Labels: Needs Investigation

Problem: **Relative dependencies for files do not update properly when moving multiple files at once between folders.**

<!-- ⚠️⚠️ 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. -->
**VSCode Information:**
Version: 1.58.2 (user setup)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042

**Steps to Reproduce (JavaScript):**

1. Make new Node project with `npm init` and open the folder in VSCode.
2. Create three JavaScript files which all reference each other using require() or import.
3. Create a folder in the workspace.
4. Move two of the files into the folder (have them both selected and move them together).

The imports of the moved files will now be left unchanged and hence incorrect (except one, which is why moving a single file is bug-free).
Repository: flutter
Issue: ProcessException "Project 'app' not found in root project 'android'" during `flutter build appbundle`
Labels: tool,t: gradle,a: build,P2,team-tool,triaged-tool

Command run was `flutter build appbundle` on Flutter version dev 2.5.0-1.0.pre

```
Thread 0 main thread ProcessException:
ProcessException: Process exited abnormally:
FAILURE: Build failed with an exception.
* What went wrong:
Project 'app' not found in root project 'android'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 604ms
Command: /mnt/username/workspace_DISCOVER/logrev-mobile/android/gradlew app:tasks --all --console=auto
at RunResult.throwException(process.dart:124)
at _DefaultProcessUtils.run(process.dart:276)
at <asynchronous gap>(async)
at flavorUndefinedHandler.<anonymous closure>(gradle_errors.dart:206)
at <asynchronous gap>(async)
at AndroidGradleBuilder.buildGradleApp(gradle.dart:388)
at <asynchronous gap>(async)
at AndroidGradleBuilder.buildAab(gradle.dart:196)
at <asynchronous gap>(async)
at BuildAppBundleCommand.runCommand(build_appbundle.dart:148)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1125)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:288)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:236)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:92)
at <asynchronous gap>(async)
```
Repository: flutter
Issue: RPCError: getIsolate: Invalid argument (isolateId): Unrecognized isolatId
Labels: tool,platform-web,d: devtools,P2,needs repro info,team-web,triaged-web

On Flutter dev 2.5.0-1.0.pre
Command:

```
run --machine --target lib\main.dart -d chrome --dart-define=flutter.inspector.structuredErrors=true --start-paused --web-server-debug-protocol ws --web-allow-expose-url --devtools-server-address http://127.0.0.1:9100/ --web-renderer html
```

```
Thread 0 main thread RPCError:
getIsolate: (-32603) getIsolate: Invalid argument (isolateId): Unrecognized isolate id. (Supported isolate: 7163): "6512"
#0      ChromeProxyService._getIsolate (package:dwds/src/services/chrome_proxy_service.dart:542:5)
#1      ChromeProxyService.getIsolate (package:dwds/src/services/chrome_proxy_service.dart:549:12)<asynchronous suspension>
#2      VmServerConnection._delegateRequest (package:vm_service/src/vm_service.dart:1366:22)<asynchronous suspension>
at new _OutstandingRequest(vm_service.dart:1626)
at VmService._call(vm_service.dart:2109)
at VmService.getIsolate(vm_service.dart:1866)
at FlutterVmService.getIsolateOrNull(vmservice.dart:898)
at FlutterVmService.findExtensionIsolate(vmservice.dart:864)
at <asynchronous gap>(async)
at FlutterResidentDevtoolsHandler._waitForExtensionsForDevice(resident_devtools_handler.dart:171)
at <asynchronous gap>(async)
at Future.wait.<anonymous closure>(future.dart)
at <asynchronous gap>(async)
at FlutterResidentDevtoolsHandler._devicesWithExtensions(resident_devtools_handler.dart:161)
at <asynchronous gap>(async)
at FlutterResidentDevtoolsHandler.hotRestart(resident_devtools_handler.dart:238)
at <asynchronous gap>(async)
```
Repository: pytorch
Issue: [TorchScript] Support for registering builtin operators with control flow
Labels: oncall: jit

## 🚀 Feature

TS has a mechanism for expressing builtin operators in [builtin_functions](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/frontend/builtin_functions.cpp#L10) in TorchScript. This is an extremely useful mechanism because it allows declaring how operators should desugar to other ones without cluttering up the compiler, or adding new operators which leads to bloat in the operator library and makes it harder to add optimizations. For instance, we have [three different](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/runtime/register_prim_ops.cpp) `aten::to` operators bound which could have all desugared to existing [to operators](https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/native_functions.yaml#L5353) in builtin_functions.cpp, but were instead added as new operators, bloating the operator set (we can still manually rewrite those ops, but they will  exist in mobile for a long time).

However, that mechanism only works for writing TS functions which do not contain control flow. That is because the builtin_functions are [eagerly inlined](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/frontend/schema_matching.cpp#L656), so if they have control flow things get messed up with SSA. We should fix that. 

## Motivation

I am working on adding shape functions to TorchScript. I would like for user registered operators to be able to call into TS shape functions so that various implementations like `quantized::conv2d` can just register something like 

```
def quant_conv2d(input: List[int], weight: List[int], bias: Optional[List[int]], stride: List[int], padding: List[int], dilation: List[int], groups: int):
    return torch.shape_functions.conv2d(input, weight, bias, stride, padding, dilation, groups)
```

Right now there is no way for me to do that because if I registered `conv2d` as a builtin, it will get eagerly inlined and break the convert to SSA pass. 




cc @gmagogsfm
Repository: pytorch
Issue: Runtime error when passing dim as None in torch.squeeze (and Tensor.squeeze)
Labels: triaged,module: numpy

## 📚 Documentation

In the [documentation](https://pytorch.org/docs/stable/generated/torch.squeeze.html) for `torch.squeeze`, from the function signature `torch.squeeze(input, dim=None, *, out=None) → Tensor` it seems we should be able to pass in `dim=None`. But it leads to the following error,

```
RuntimeError: Please look up dimensions by name, got: name = None.
```

cc @mruberry @rgommers @heitorschueroff
Repository: TypeScript
Issue: String union types narrowed to falsy should narrow string to ""
Labels: Suggestion,Awaiting More Feedback

# Bug Report

### 🔎 Search Terms

string truthy falsy narrow literal empty

### 🕗 Version & Regression Information

- ~This is a crash~
- ~This changed between versions ______ and _______~
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about narrowing
- ~I was unable to test this on prior versions because _______~

### ⏯ Playground Link


[Playground link with relevant code](https://www.typescriptlang.org/play?#code/DYUwLgBAbghsCuIIF4IFkZgBYDoBOMAdgCYD2AtgBQCUEAfBAAw4CsEAZOxAEQDKFSAHIxyIbgG4AUJICWAMwiUAhLAQhaAb0kRocROIgB6QxAAqATwAOIAFwQ5cAM5IAPhEdg8MwgHMANBAARvCQjlik8MDEQUgOwM4QbtzckgC+QA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
let value = Math.random() > 0.5 && "Some Name";

if (!value) {
  value; // Type: false | string, but should be false | ""
}
```

### 🙁 Actual behavior

Inside the narrowed block, `value` should be `false | ""`, because no other string value is falsy.

### 🙂 Expected behavior

It's the more general `false | string` instead.

This was a hard issue to search for; #41503, #33878, and #31156 seemed related but not duplicate to me.

Shoutout to RyanCavanaugh for sending me a code snippet that looked like this -- no good deed goes unpunished in the issue tracker 😄
Repository: pytorch
Issue: Remove c10d::kDefaultFirstBucketBytes
Labels: oncall: distributed,module: bootcamp,triaged,pt_distributed_rampup,module: ddp

https://github.com/pytorch/pytorch/pull/62748 made `dist._DEFAULT_FIRST_BUCKET_BYTES` configuration respected in DDP reducer, but as a result we no longer need the following binding in `c10d/init.cpp` since it is always passed from python land:
https://github.com/pytorch/pytorch/blob/master/torch/csrc/distributed/c10d/init.cpp#L1629
It would be cleaner to just define this constant in python and get rid of the binding and also `c10d::kDefaultFirstBucketBytesCap`. 



cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu @gcramer23
Repository: go
Issue: encoding/gob: error decoding a slice of pointers to recursive type
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?


<pre>
$ go version
go version go1.15.14 darwin/amd64

</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?


<details><summary><code>go env</code> Output</summary><br><pre>
It reproduces in playground too

</pre></details>

### What did you do?

https://play.golang.org/p/Tjcurb98oUg


### What did you expect to see?

Serialize / deserialize correctly.

### What did you see instead?
If the first value passed is a list of pointers, it doesn't deserialize
Repository: create-react-app
Issue: When using typescript template CRA does not lint correctly
Labels: stale,needs triage,issue: bug report

When using the typescript template with the following example no [react/jsx-key](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md) error is displayed on the div in the loop.


```js
const list = [
  { id: 1, title: "test" },
  { id: 2, title: "test" },
];

function App() {
  return (
    <div className="App">
      {list.map((item) => (
        // No linting error here for missing key
        <div>{item.title}</div>
      ))}
    </div>
  );
}

export default App;
```

Is this intended or is it something to do with Typescript? I noticed there is an error if I use plain JS
Repository: tauri
Issue: feat(macos): dock management api 
Labels: type: feature request,status: upstream

<!-- BEFORE YOU FILE A NEW ISSUE-->
<!--

0. Please search open issues before duplicating a new one.
1. Make sure you are using the latest version of everything including: 
  - rustc 
  - ALL relevant Tauri Libs
2. You must attach the results of cargo tauri info or yarn tauri info to your issue.
3. Make sure it is an issue with Tauri, and not something to do with your side of the stack.
4. Consider starting a discussion. Speaking of which, have you looked there? Maybe your question has been answered.
5. Remember to follow our community guidelines and be friendly.
6. Is this an issue or a feature request? If the latter, please use the other template.

-->

### **Describe the bug**
A clear and concise description of what the bug is.

### **To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### **Expected behavior**
A clear and concise description of what you expected to happen.

### **Screenshots**
If applicable, add screenshots to help explain your problem.

### **Platform and Versions (required):**
<!-- Use `yarn tauri info` or `cargo tauri info` command to get this information, and paste it here: -->
```
Operating System

Node.js environment
Node.js 
@tauri-apps/cli 
@tauri-apps/api 

Global packages
npm 
yarn 

Rust environment
rustc 
cargo 

App directory structure


App
tauri.rs 
build-type 
CSP 
```

### **Additional context**
Add any other context about the problem here.

### **Stack Trace**
<!-- add if applicable -->
Repository: ant-design
Issue: inline Menu, up to two level menus, more submenus right popover
Labels: 💡 Feature Request,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
垂直内嵌菜单，子菜单内嵌在菜单区域。如果有三级、四级、五级菜单，内嵌层级太深显示不了。

### What does the proposed API look like?
建议加一个 api: inlineMaxLevel。在 mode="inline" 下，指定最多内嵌几层子菜单，更深的子菜单右侧弹窗显示。

### 现在不好的效果预览：

![Snipaste_2021-08-05_11-24-07](https://user-images.githubusercontent.com/9513530/128285985-d97259d7-d41f-4dba-83c4-77e4d63763d5.png)


### 期望的好的效果预览：

![Snipaste_2021-08-05_11-14-15](https://user-images.githubusercontent.com/9513530/128285765-67e9e5c7-f2d7-492d-8b55-5a03b8632915.png)


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: rustc E0308 on valid code
Labels: C-enhancement,T-compiler,A-coercions,A-trait-objects

```rust
use std::pin::Pin;

use futures::{Stream, StreamExt};

fn foo(stream: Pin<Box<dyn Stream<Item=u32>>>) -> Option<Pin<Box<dyn Stream<Item=u32>>>> {
    let res = Some(Box::pin(stream.map(|x| x)));
    res
}

fn main() {}
```
This code doesn't compile with following error:
```
error[E0308]: mismatched types
 --> src/main.rs:7:5
  |
5 | fn foo(stream: Pin<Box<dyn Stream<Item=u32>>>) -> Option<Pin<Box<dyn Stream<Item=u32>>>> {
  |                                                   -------------------------------------- expected `Option<Pin<Box<(dyn futures::Stream<Item = u32> + 'static)>>>` because of return type
6 |     let res = Some(Box::pin(stream.map(move |x| x)));
  |                                        ---------- the found closure
7 |     res
  |     ^^^ expected trait object `dyn futures::Stream`, found struct `futures::stream::Map`
  |
  = note: expected enum `Option<Pin<Box<(dyn futures::Stream<Item = u32> + 'static)>>>`
             found enum `Option<Pin<Box<futures::stream::Map<Pin<Box<dyn futures::Stream<Item = u32>>>, [closure@src/main.rs:6:40: 6:50]>>>>`

```
I found three ways to get around this error:
1. Change `dyn` to `impl`
```rust
fn foo(stream: Pin<Box<impl Stream<Item=u32>>>) -> Option<Pin<Box<impl Stream<Item=u32>>>> {
    let res = Some(Box::pin(stream.map(|x| x)));
    res
}
```
2. Remove `res` variable
```rust
fn foo(stream: Pin<Box<dyn Stream<Item=u32>>>) -> Option<Pin<Box<dyn Stream<Item=u32>>>> {
    Some(Box::pin(stream.map(|x| x)))
}
```
3. And, most confusing one: remove `Option` from function signature
```rust
fn foo(stream: Pin<Box<dyn Stream<Item=u32>>>) -> Pin<Box<dyn Stream<Item=u32>>> {
    let res = Box::pin(stream.map(|x| x));
    res
}
```


### Meta
This error appears in all latest channels (tested in rust playground)
Repository: youtube-dl
Issue: youtubedl download telegram files 
Labels: request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->
hello 
if is possible   please support and cover  telegram in   youtube-dl  for   download  files

## 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.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [ ] I'm reporting a feature request
- [ ] I've verified that I'm running youtube-dl version **2021.06.06**
- [ ] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

WRITE DESCRIPTION HERE
Repository: go
Issue: x/tools/gopls: add .if and .not snippets for bool types
Labels: FeatureRequest,gopls,Tools

**Is your feature request related to a problem? Please describe.** The
introduction of postfix snippets has brought very convenient functionality to
gopls, especially when working outside of Goland. I wanted to contribute more
ideas for postfix completions inspired from what's already available from their
editors. In particular, I wanted to propose having a `if!` and `not!` prompts,
which do this (respectively):

```go
(complex bool expression).if|
if (complex bool expression) {
	|
}

(expr).not|
!(expr)
```

**Describe the solution you'd like**
Implementing these in `completion/postfix_snippets.go`.

**Describe alternatives you've considered**
As a vim developper personally, I use
[snippetsEmu](https://www.vim.org/scripts/script.php?script_id=1318). Other
potential alternatives are available in VSCode and Goland.
Repository: create-react-app
Issue: support of --loglevel for "build"
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?
- the current output of react-scripts build can be very verbose. 
This is especial true if our CI server nodes are under heavy load, so the status of webpack % is shown many many lines in the logs. This is no useful information at all.


### Describe the solution you'd like
support of react-scripts --loglevel=warn, which will output only warn or error level

### Describe alternatives you've considered
- ignore it