sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: Netrw randomly opens the wrong file
Labels: bug-vim,netrw

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`:
```
NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20200808-89283-1us0ytm/neovim-0.4.4/build/config -I/tmp/neovim-20200808-89283-1us0ytm/neovim-0.4.4/src -I/usr/local/include -I/tmp/neovim-20200808-89283-1us0ytm/neovim-0.4.4/deps-build/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20200808-89283-1us0ytm/neovim-0.4.4/build/src/nvim/auto -I/tmp/neovim-20200808-89283-1us0ytm/neovim-0.4.4/build/include
Compiled by brew@Catalina

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.4.4/share/nvim"

Run :checkhealth for more info
```
- `vim -u DEFAULTS` (version: ) behaves differently? No - same issue.
- Operating system/version: macOS 10.15.7
- Terminal name/version: iTerm2 Build 3.3.12
- `$TERM`: `xterm-256color`

### Steps to reproduce using `nvim -u NORC`

```
nvim -u NORC
# Alternative for shell-related problems:
# env -i TERM=ansi-256color "$(which nvim)"
It's difficult to reproduce as it seems to happen randomly or at least with a pattern that I haven't picked up on, but the following steps are taken to reproduce.
- Open netrw
- Navigate to a target file or directory with eg. 12j or using the / search tool
- Press <cr>
```

I expect the target file or directory to be opened, instead sometimes the file or directory at the bottom of the netrw opened is opened.

I typically open netrw with :Explore which I've mapped to <c-e> and open files / expand directories by pressing enter with my cursor on the target. About 50% of the time however, pressing enter will instead open whatever file is at the bottom of the netrw window. The only mapping I have for <cr> while a netrw buffer is active is:

```
n  <CR>         @<Plug>NetrwLocalBrowseCheck
```
Repository: rust
Issue: Suggest for<'a> syntax when lifetime bounds can't be satisfied
Labels: C-enhancement,A-diagnostics,A-lifetimes,T-compiler,A-suggestion-diagnostics,D-newcomer-roadblock

When a function incorrectly specifies lifetime as an argument, but uses a reference borrowed inside the function body:

```rust
async fn actual<'a, BT>(bt: BT) where BT: BoolTrait<'a> {
    let v = 42;
    bt.check(&v).await;
}
```

it would be helpful to suggest using the higher-rank trait bounds instead. This is probably the least known lifetime syntax, and it could help users who are stuck, because they've tried to put lifetime bounds on traits or methods.

```rust
async fn expected<BT>(bt: BT) where BT: for<'a> BoolTrait<'a> {
    let v = 42;
    bt.check(&v).await;
}
```

----

Context for the example ([the playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=83e5d109a64cfa8a0377d7b920a892dc)):

```rust
use core::future::Future;
use core::pin::Pin;

trait BoolTrait<'a> {
    fn check(&'a self, value: &i32) -> Pin<Box<dyn Future<Output = bool> + 'a>>;
}

impl<'a, F, Fut: 'a> BoolTrait<'a> for F
    where
        F: Fn(&i32) -> Fut,
        Fut: Future<Output = bool> + 'a {
    fn check(&'a self, value: &i32) -> Pin<Box<dyn Future<Output=bool> + 'a>> {
        Box::pin(self(value))
    }
}
```

[forum thread](https://users.rust-lang.org/t/lifetimes-for-type-params-the-parameter-type-may-not-live-long-enough/50981)
Repository: terminal
Issue: always starts on first desktop even when launched from other (sysinternals)
Labels: Issue-Bug,Area-UserInterface,Product-Terminal,Culprit-Centennial

background/justification: I use sysinternals desktops to isolate some automated tests from my main session. When using Windows 10 virtual desktops, processes which are launched by the automated test run can pop up windows on other desktops which can be a nuisance. Using sysinternals desktops I can run the tests on desktop 2 and their child processes stay there, out of the way of whatever I am looking at on desktop 1.

However... I can't use Windows Terminal to launch those automated tests. **If I click on the Windows Terminal button on the taskbar on Desktop 2, Windows Terminal launches on Desktop 1.** So I am stuck using ConEmu or ConsoleZ at least for use on desktop 2.
Repository: flutter
Issue: Persistent bottom sheet does not respect SafeArea
Labels: framework,f: material design,found in release: 1.22,found in release: 1.24,team-design,triaged-design

When showing a persistent bottom sheet `SafeArea` is ignored and does not provide bottom padding:

<img width="511" alt="Screen Shot 2020-11-03 at 16 18 04" src="https://user-images.githubusercontent.com/654041/97996255-34324b80-1df0-11eb-88c6-23f9417c0e35.png">

Code:
```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(home: MyHomePage());
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) => Scaffold(
        floatingActionButton: Builder(
          builder: (context) => FloatingActionButton(
            onPressed: () {
              showBottomSheet(
                  context: context,
                  builder: (context) => SafeArea(
                        child: Container(
                          height: 100,
                          width: 200,
                          color: Colors.red,
                        ),
                      ));
            },
          ),
        ),
      );
}
```

```
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.14.6 18G6032, locale en-IL)
    • Flutter version 1.22.2 at /Users/amit/fvm/versions/stable
    • Framework revision 84f3d28555 (3 weeks ago), 2020-10-15 16:26:19 -0700
    • Engine revision b8752bbfff
    • Dart version 2.10.2
```
Repository: opencv
Issue: Load EfficientNet Keras implementation with OpenCV dnn
Labels: priority: normal,feature,category: dnn,Hackathon

##### System information (version)
<!-- Example
- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

- OpenCV => 4.4.0.44 or 4.2
- Operating System / Platform => Ubuntu 18.04.5
- Compiler => Python 3

##### Detailed description

I am trying to load a frozen .pb model through `cv2.dnn.readNetFromTensorflow('frozen_model.pb')`. The model is the Keras implementation of EfficientNet B0, trained as shown [in this tutorial](https://keras.io/examples/vision/image_classification_efficientnet_fine_tuning/).

When I try to load the frozen .pb model into `cv2.dnn.readNetFromTensorflow`, it throws the following exception:

```
error: OpenCV(4.4.0) /tmp/pip-req-build-6amqbhlx/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:553: error: (-2:Unspecified error) Input layer not found: sequential/efficientnetb0/normalization/Reshape_1/ReadVariableOp/resource in function 'connect'
```

##### Steps to reproduce

1. Train a EfficientNet B0 model in Keras as described [in this tutorial](https://keras.io/examples/vision/image_classification_efficientnet_fine_tuning/)
2. Convert the generated savedModel to a frozen graph .pb file following [this tutorial](https://leimao.github.io/blog/Save-Load-Inference-From-TF2-Frozen-Graph/). I uploaded the script [in this gist](https://gist.github.com/d-cosin/753748c488671bd80cd48f90683a79a3)
3. Run `cv2.dnn.readNetFromTensorflow('frozen_model.pb')`
Repository: pytorch
Issue: Error: invalid use of register
Labels: module: build,triaged

## 🐛 Bug

When compiling PyTorch from source, this appears, FBGEMM fails with `Error: invalid use of register`. 

## To Reproduce

Steps to reproduce the behavior:

1. Compile pytorch from source
2. The following error message will appear:
```
[1125/4743] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateI8Depthwise.cc.o
[1126/4743] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o
[1127/4743] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o
FAILED: third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o 
/gpfs/software/juwels/stages/Devel-2020/software/GCCcore/9.3.0/bin/g++ -DFBGEMM_STATIC -DTH_BLAS_MKL -I../third_party/cpuinfo/include -I../third_party/fbgemm/third_party/asmjit/src -I../third_party/fbgemm/include -I../third_party/fbgemm -I../cmake/../third_party/benchmark/include -isystem ../cmake/../third_party/googletest/googlemock/include -isystem ../cmake/../third_party/googletest/googletest/include -isystem /gpfs/software/juwels/stages/Devel-2020/software/protobuf/3.8.0-GCCcore-9.3.0/include -isystem /gpfs/software/juwels/stages/Devel-2020/software/imkl/2020.2.254/mkl/include -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -isystem ../third_party/XNNPACK/include -O2 -ftree-vectorize -march=native -fno-math-errno -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -O3 -DNDEBUG -fPIC -fvisibility=hidden -m64 -mavx2 -mf16c -mfma -masm=intel -std=c++14 -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o -c ../third_party/fbgemm/src/QuantUtilsAvx2.cc
/tmp/eb-2tw81xhk/cchxTBtC.s: Assembler messages:
/tmp/eb-2tw81xhk/cchxTBtC.s:7795: Error: invalid use of register
/tmp/eb-2tw81xhk/cchxTBtC.s:7798: Error: invalid use of register
/tmp/eb-2tw81xhk/cchxTBtC.s:7916: Error: invalid use of register
/tmp/eb-2tw81xhk/cchxTBtC.s:7919: Error: invalid use of register
/tmp/eb-2tw81xhk/cchxTBtC.s:8543: Error: invalid use of register

```

This is caused by the `-masm=intel` flag.

## Expected behavior

Pytorch feed the correct parameters to FBGEMM

## Environment

Collecting environment information...
PyTorch version: 1.6.0
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: CentOS Linux 7 (Core)
GCC version: (GCC) 9.3.0
CMake version: version 3.18.0

Python version: 3.8
Is CUDA available: 11.0
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: Tesla V100-PCIE-32GB
Nvidia driver version: 450.51.06
cuDNN version: 8.0.2.39

Versions of relevant libraries:
[pip3] numpy==1.19.1
[conda] Could not collect


 - How you installed PyTorch (`conda`, `pip`, source): source
 - Build command you used (if compiling from source): easybuild

## Additional context

This happens on both intel and amd cpus

cc @malfet @seemethere @walterddr
Repository: flutter
Issue: Google map as body of Scaffold breaks drawer 
Labels: framework,f: material design,p: maps,package,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design

I'm using https://pub.dev/packages/google_maps_flutter as body of Scaffold, and i have drawer with empty container in that Scaffold. If drawer animation is not finished when i press home button, drawer will be unresponsive when i come back in app. This does not happen if body doesn't contain Google maps. For ease of reproduction on simulator you can start dragging drawer and press shift+cmd+h (home button shortcut) and just go back to app.

```
class _MainScreenState extends State<MainScreen> {
  Completer<GoogleMapController> _controller = Completer();

  static final CameraPosition _kGooglePlex = CameraPosition(
    target: LatLng(37.42796133580664, -122.085749655962),
    zoom: 14.4746,
  );

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      // body: Container(color: Colors.red),
      body: GoogleMap(
        mapType: MapType.hybrid,
        rotateGesturesEnabled: false,
        scrollGesturesEnabled: false,
        tiltGesturesEnabled: false,
        zoomGesturesEnabled: false,
        initialCameraPosition: _kGooglePlex,
        onMapCreated: (GoogleMapController controller) {
          _controller.complete(controller);
        },
      ),
      drawer: Drawer(
          child: Container(
        color: Colors.blue,
      )),
    );
  }
}
```

```
[✓] Flutter (Channel unknown, 1.22.2, on Mac OS X 10.15.7 19H2, locale en-RS)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Connected device (2 available)
```
Repository: TypeScript
Issue: Declare type to be an import depending on a string literal argument: typeof import(name);
Labels: Suggestion,Awaiting More Feedback

Hello,
It's seems to be difficult to do but there's now a lot of possibilities with the typescript compiler that I wouldn't have thought possible before, so I prefer to ask.

Is there a chance to have this kind of definition:
```ts
declare function require(name: string): typeof import(name) | undefined;
```
I mean declaring the return type as the type coming from the import of module "name".  So we could have the type returned by require:
```ts
var module = require("my module");
```

I guess if it's feasible, it will also be possible to add more typing on this kind of javascript code 
```js
define("myModule, ["deps1", "deps2", "deps3"], (deps1, deps2, deps3) => {
// deps1, deps2, deps3 have the right type !!
});
```
like this
```ts
define("myModule, ["deps1", "deps2", "deps3"], (deps1: typeof import("deps1"), deps2: typeof import("deps2"), deps3: : typeof import("deps3")) => {
// deps1, deps2, deps3 have the right type !!
});
```

Thanks for your help,

--
Laurent
Repository: vscode
Issue: getLanguageConfiguration() API method is missing
Labels: feature-request,api,languages-basic,api-proposal

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Currently the [languages](https://code.visualstudio.com/api/references/vscode-api#languages) namespace has setLanguageConfiguration() method but does not have getLanguageConfiguration() method. This is a blocker for extensions that need to base the functionality on some properties of the document's language configuration. For example, depending on support of the one line comment vs. multi-line comment in the language syntax, the extension might follow different patterns.
Before introducing [development in container](https://code.visualstudio.com/docs/remote/containers) it was possible to hack into the vscode directory and read the language configuration. This behavior does not work correctly with containers. If the extension is launched in the container it cannot read vscode on local machine and vice versa. It will come handy having this complimenting API as part of the official support.
Repository: pytorch
Issue: ProcessGroupNCCL NCCL lib version mismatch
Labels: module: binaries,oncall: distributed,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:
```
  File "./dlrm.py", line 644, in SparseDataDist
    self.backendFuncs.all_to_allv(self.collectiveArgs)
  File "/home/ubuntu/param/train/comms/pt/pytorch_nccl_backend.py", line 124, in all_to_allv
    async_op=collectiveArgs.asyncOp,
  File "/usr/local/lib/python3.6/dist-packages/torch/distributed/distributed_c10d.py", line 1827, in all_to_all_single
    work = group.alltoall_base(output, input, output_split_sizes, input_split_sizes, opts)
RuntimeError: ProcessGroupNCCL only supports alltoall* for NCCL lib version >= 2.7.0
```
I have NCCL 2.7.8 installed
```
ip-172-31-76-46:66763:66763 [0] NCCL INFO Using network AWS Libfabric
NCCL version 2.7.8+cuda11.0
ip-172-31-76-46:66769:66769 [6] NCCL INFO Bootstrap : Using [0]ens33:172.31.76.46<0> [1]ens66:172.31.77.107<0> [2]ens131
```
## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0): 1.7
 - OS (e.g., Linux): Ubuntu 18.04
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source):
 - Python version: 3.6
 - CUDA/cuDNN version: CUDA 11/ cuDNN 8
 - GPU models and configuration: AWS p4d A100
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @ezyang @seemethere @malfet @walterddr @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jiayisuse @agolynski
Repository: go
Issue: cmd/go: reconsider "-u=patch" changing the default to "@patch" for other arguments
Labels: NeedsDecision,modules

In [CL 167747](https://golang.org/cl/167747), we implemented support for the `@patch` version query in `go get` for #26812, and made `-u=patch` imply `@patch` for positional arguments that do not specify any other version.

In retrospect, that behavior seems too subtle: it changes the meaning of one argument based on another, and the other argument might not even be explicit on the command line (for example, it could be set via `GOFLAGS`). We should reconsider that decision.

Perhaps when `-u=patch` is set we should require an explicit `@version` suffix for all arguments, so that it is clear whether the user means “upgrade the argument and patch its dependencies” or “patch the argument and its dependencies”.

CC @rsc @jayconrod @matloob
Repository: TypeScript
Issue: Update Pick to use new key remapping in mapped types
Labels: Suggestion,Experimentation Needed

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

pick omit key remapping

## Suggestion

Update `Pick` in `lib.d.ts` to be:
```ts
type Pick<T, K extends keyof T> = {
    [P in keyof T as Extract<P, K>]: T[P];
};
```

It is currently defined as:
```ts
type Pick<T, K extends keyof T> = {
    [P in K]: T[P];
};
```

## Use Cases

With this new definition, typescript can statically analyze the keys, which allows interfaces to extends these types.

## Examples

```ts
interface Base {
    a: number,
    b: string,
    c: boolean,
}

// Errors: "An interface can only extend an object type or intersection of object types with statically known members"
interface PickBase0<K extends keyof Base> extends Pick<Base, K> {
    pickedKeys: K
}

type Pick1<T, K extends keyof T> = { [L in keyof T as Extract<L, K>]: T[L] }

// Works
interface PickBase1<K extends keyof Base> extends Pick1<Base, K> {
    pickedKeys: K
}
```
[Playground Link](https://www.typescriptlang.org/play?ts=next#code/FASwdgLgpgTgZgQwMZQAQCEEGc0G9iqGoIBcqYArgLYBGsANAUTWVhDOAOaNGpJk0A9oIA2UBGEYBfYMAD0c1AFEYMQTCwBuYmFTho8ZGiQTUgsCICeqKAA9oYACY6zNAFZQkEVBEsAHNHU9SFgcLxBzMzhXDy8ffygsVAB3EAgAC1Q2BAgQExErVABrMEFk3SooWlDQEMMUVAAFPKLMHAAGAB4AaRt7KCckoqhLQWi2qAA+PodHJOakIs6J+lRu6fxePxaoR26RrDJu4BlgXwCmloBGToAVVd67WaGRsdRb6YBeVFxUAG0ADLBYqvaK3YhJJT2GDICCdAEPSYAXTIt0BSNQpwUqAA6uoilhagZEA0Fq1sFAbo9+oMQaNxhTpk8BnNLosbis1hsmIRtotdvtLIc1idgEA)

## Checklist

My suggestion meets these guidelines:

* [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [X] This wouldn't change the runtime behavior of existing JavaScript code
* [X] This could be implemented without emitting different JS based on the types of the expressions
* [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [X] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: ant-design
Issue: Table column's "responsive" array does not work with multiple breakpoints
Labels: help wanted,Inactive

- [x] 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
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-e2ib9?file=/index.js)

### Steps to reproduce
Pass in "responsive: ['sm', 'md']" to a table column. Resize browser to the next breakpoint up (lg: 992px). The column will still be visible.

### What is expected?
Since the "md" breakpoint goes from 768px to the "lg" 992px breakpoint, I would expect column to disappear after 992px.

### What is actually happening?
Column is still visible. [sm, md] is equivalent to [sm] right now. 

| Environment | Info |
|---|---|
| antd | 4.8.0 |
| React | 17.0.1 |
| System | any |
| Browser | Chrome 84 |

---
This could be viewed as a feature request instead. But the english documentation says responsive is "The list of breakpoints at which to display this column." If responsive property is an array, why does it ignore a range of breakpoints? [sm, md] should not be the same as [sm].


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->