sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Documentation] Collection package documentation on https://api.flutter.dev doesnt identify the package
Labels: framework,d: api docs,a: quality,P2,team-framework,triaged-framework

Ok so I just got bitten by what is probably a variation of [this issue](https://github.com/flutter/flutter/issues/85758),

I happened to find https://api.flutter.dev/flutter/package-collection_collection/package-collection_collection-library.html which has documentation for the [IterableExtension](https://api.flutter.dev/flutter/package-collection_collection/IterableExtension.html) which has for instance the [forEachIndexed extension method](https://api.flutter.dev/flutter/package-collection_collection/IterableExtension/forEachIndexed.html).

BUT none of the above pages or links on those pages could lead me to discover what the actual **_name_** of the package is that contains that extension!

What I ended up doing was doing to the Dart SDK repo and doing a [search for that methodname](https://github.com/dart-lang/sdk/search?q=forEachIndexed) which happened find a file using that method and so had the: `import 'package:collection/collection.dart';` I needed.

Following up with @domesticmouse about this he pointed me to the [packages documentation of pub.dev](https://pub.dev/documentation/collection/latest/collection/IterableExtension.html), which immediately would have allowed me to find the package name.

I think this will really trip up any **new** or even seasoned Flutter developers as doing a Google search on `flutter forEachIndexed` the top 2 results are for the `api.flutter.dev` website docs not pub.dev, while the third is a SO question where the outdated answers tell people to "roll their own" rather than there now being implementation available in the collection package that is shipped in the Flutter SDK 😞 

![image](https://user-images.githubusercontent.com/71999/129315622-ef45a034-dc67-4e96-a9a6-6da14f3e0445.png)
Repository: flutter
Issue: [Video_player][Web]: Add option to show video player controls and make double click go fullscreen when controls are invisible
Labels: c: new feature,platform-web,p: video_player,package,c: proposal,P3,team-web,triaged-web

Hi, 

I would like to propose that:
1) video player controls are added in VideoPlayerOptions as an option in the video_player package. Without it is really unintuitive to the end user as the double click doesn't make it full screen when the controls are not visible.
2) Double click would make the video go full screen when the controls are not visible (like it does when the controls are visible)

I am currently using a VideoElement() directly to achieve the same thing but that will hit me when I go native. Chewie at the time had issues with fullscreen web video.

  final video = VideoElement()
        ..src = URL!
        ..autoplay = widget.autoplay
        **..controls = widget.controls**
Repository: neovim
Issue: Support Lua startup commands on the command line
Labels: enhancement,lua,startup

### Feature already in Vim?

N/A (no)

### Feature description

We have `(n)vim -c` and `(n)vim +foo` for executing vimscript command-mode on the command line during startup.

Having direct support for lua (either in the same flags or in new ones?) would make Lua feel first-classer on the command line, even though one can certainly already run `nvim -c +'lua foo'`.
Repository: terminal
Issue: Importing PuTTY sessions
Labels: Issue-Feature,Area-Extensibility,Area-Settings,Product-Terminal

# Description of the new feature/enhancement
I wonder if there's a chance for (or a way if it is there and I can't simply find it ;)) making import and later sync for PuTTY sessions. I do know that PuTTY can't be used inside Terminal but it would be great if we could simply import and manage sessions instead of making all the entries.

# Proposed technical implementation details (optional)
There are tools that wraps putty (like SuperPuTTY for example) and they have a way to import sessions by opening window for that. 
What I'd like to get is to have new option when adding new profile. That could be a button that would open window with a list of PuTTY sessions where I could choose which one I'd like to import as a Terminal profiles.
As a bonus feature it would be great to have checkbox for syncing all the profiles so if I'll get a new one in putty it will show up in Terminal as well.
Cherry on top would be to have auto sync for all the imported profiles to stay up to date with Putty but at least manual sync would be enough.

Is that even possible to achieve?
Repository: deno
Issue: Extension/runtime code can't rely on arrays being iterable
Labels: bug,web

```js
delete Array.prototype[Symbol.iterator];
```

```
error: Uncaught TypeError: allMembers is not iterable
    at <anonymous> (deno:extensions/webidl/00_webidl.js:739:28)
```

The above code is all that's needed in a script to trigger this exception, no usage of arrays needed at all. The error is probably thrown when firing the `load` event; see also https://github.com/denoland/deno/issues/11677#issuecomment-898254299
Repository: godot
Issue: GDscript LSP docstring and function signature problems
Labels: bug,topic:gdscript,topic:editor

### Godot version

3.3.2.stable

### System information

Ubuntu 20.04, Intel HD graphics, GLES3

### Issue description
EDIT: Added 3.

1. Docstrings aren't found by the language server, when all arguments are spread over multiple lines.
2. Default parameters that are a variable, aren't displayed with a type in the returned documentation.
3. The documentation returned for .new() calls, is the one from GDScript.new(). This is useless, instead it should be the documentation from the _init() in the instantiated class. Or how else are you supposed to know what parameters the constructor takes?

### Steps to reproduce

I'm using neovim with lspconfig, but i don't think that has anything to do with the documentation returned by the godot language server.
1.
```gdscript
# test docstring
func test(a : int, b := [], c:= defaults) -> void:
```
works
```
func test(a: int, b: Array, c) -> null

test docstring
```
```gdscript
# test docstring
func test(a : int,
b := [],
c:= defaults
) -> void:
```
works
```
func test(a: int, b: Array, c) -> null

test docstring
```
BUT
```gdscript
# test docstring
func test(
a : int,
b := [],
c:= defaults
) -> void:
```
doesn't return the docstring any longer. This is especially unfortunate, because gdformat from the gdtoolkit (the only gdscript formater i found) formats long function definitions like this.

2.
```gdscript
func test(a : int, b := [], c:= defaults) -> void:
```
gives `func test(a: int, b: Array, c) -> null` as documentation returned by the language server.
However `defaults` is a Dictionary with inferred type, so it should be possible to at least display the type. But displaying the default values as well would be really nice i think.

3.
```gdscript
Node.new()
```
Hover gives me this:
```markdown
	func GDScript.new(...) -> Variant

Returns a new instance of the script.

For example:



	var MyClass = load("myclass.gd")
	var instance = MyClass.new()
	assert(instance.get_script() == MyClass)



	func NativeScript.new(...) -> Variant

Constructs a new object of the base type with a script of this type already attached.

*Note*: Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension.


	func PluginScript.new(...) -> Variant

Returns a new instance of the script.
```
Function signature this:
```markdown
func GDScript.new(...) -> Variant
────────────────────────────────────────────
	func GDScript.new(...) -> Variant

Returns a new instance of the script.

For example:



	var MyClass = load("myclass.gd")
	var instance = MyClass.new()
	assert(instance.get_script() == MyClass)
```

Thanks a lot for the great work <3



### Minimal reproduction project

_No response_
Repository: rust
Issue: Conversion of `Box<dyn Error + Send + Sync>` to `Box<dyn Error>` confusingly complains about Sized
Labels: A-diagnostics,T-compiler

[Playground](https://play.rust-lang.org?gist=69298161b9f89a74838ce718945ff27c)

```rust
use std::error::Error;

fn test() -> Result<(), Box<dyn Error>> {
    err()?;
    Ok(())
}

fn err() -> Result<(), Box<dyn Error + Send + Sync>> {
    Err("".into())
}
```

The current output is:

```
error[E0277]: the size for values of type `dyn std::error::Error + Send + Sync` cannot be known at compilation time
 --> src/lib.rs:4:10
  |
4 |     err()?;
  |          ^ doesn't have a size known at compile-time
  |
  = help: the trait `Sized` is not implemented for `dyn std::error::Error + Send + Sync`
  = note: required because of the requirements on the impl of `std::error::Error` for `Box<dyn std::error::Error + Send + Sync>`
  = note: required because of the requirements on the impl of `From<Box<dyn std::error::Error + Send + Sync>>` for `Box<dyn std::error::Error>`
  = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, Box<dyn std::error::Error + Send + Sync>>>` for `Result<(), Box<dyn std::error::Error>>`
  = note: required by `from_residual`
```

Note that the type coercion of these types is allowed, because it's going from `Send` to non-`Send` type.

The error also happens if you use `err.into()` directly, but the in practice problem typically appears when using the `?` operator.

The error is confusing, because `From` is an internal detail of `?`, and blanket `impl` of `From` for `Box<T>` to `Box<U>` is another internal detail, and then inability of calling `from(dyn T) -> dyn U` is three internal details deep.

For usage with `?` the output should look like:

```
`Box<dyn Error + Send + Sync>` cannot be converted to `Box<dyn Error>` using the `From` trait used by the `?` operator.
  = help: use `match` instead or change the `dyn` types to be the same.
```

Alternatively, it could focus only on usage with `From`/`.into()` and be like:

```
`Box<dyn Error + Send + Sync>` cannot be converted to `Box<dyn Error>` using the `From` trait
  = help: use type coercion to convert between these types
```
Repository: flutter
Issue: Build version provided via --build-name CLI parameter is *not* the version of the built bundle
Labels: tool,c: proposal,a: build,team-tool

## Use case

I would like to put the Git SHA into the version of my flutter application like this:

```
$ flutter build ipa --release --build-name="0.1.2-$(git rev-parse --short HEAD)" --build-number=$(git rev-list HEAD --count)
```
I my case this leads to the following command:

```
$ flutter build ipa --release --build-name="0.1.2-9b772e2" --build-number=386
```

When I open the archive in XCode (after it was built), it shows the version: 0.1.297722 (386)
I would expect the version: 0.1.2-9b772e2

Somehow the "-" character as well as the letters "b" and "e" disappeared.

## Proposal

Please use the entire string provided via the --build-name argument as the version for the built bundle.
Repository: rust
Issue: "unused_mut" is not detected when variable type is mutable reference and the referent is mutated
Labels: A-lints,T-compiler,C-bug,L-unused_mut

#### Code:
```
fn main() {
        let mut point = &mut Point { x: 10, y: 20};
        point.x = 30; 
        println!("{:?}", point);
}

#[derive(Debug)]
struct Point {
    x: i32,
    y: i32,
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6f8fbe9c17a4a180fb1aed9e5054ca3a))


#### Current behavior:
no warning


#### Expected behavior:

```
warning: variable does not need to be mutable
 --> src/main.rs:2:13
  |
2 |         let mut point = &mut Point { x: 10, y: 20};
  |             ----^^^^^
  |             |
  |             help: remove this `mut`
  |
  = note: `#[warn(unused_mut)]` on by default
```
Repository: pytorch
Issue: cuda.is_available returns True in pycharms python console, False in code
Labels: module: cuda,triaged

## 🐛 Bug

When  run cuda.is_available() in python console, I get True.
But when I call same method in code I get False.
What surprises me is same venv is used.
![cuda_true](https://user-images.githubusercontent.com/36793484/129354452-e607c00f-56c7-47ef-a146-e8efcbef493c.png)
![cuda_false](https://user-images.githubusercontent.com/36793484/129354450-31c8849d-86d8-43d0-ad0a-2ba706ece8e0.png)


## To Reproduce

Steps to reproduce the behavior:

1. Pycharm Python Console:
```
import torch
torch.cuda.is_available()
```
2. Pycharm code:
```
cpu = False
if cpu:
    os.environ['CUDA_VISIBLE_DEVICES'] = '-1'  # force torch.cuda.is_available() = False
elif device:
    os.environ['CUDA_VISIBLE_DEVICES'] = device  # set environment variable
    iscuda = torch.cuda.is_available()
```

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

Method to return true in both call methods, so I can use gpu for training.

## Environment

PyTorch version: 1.9.0+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.26

Python version: 3.7.5 (default, Feb 23 2021, 13:22:40)  [GCC 8.4.0] (64-bit runtime)
Python platform: Linux-5.4.0-80-generic-x86_64-with-Ubuntu-18.04-bionic
Is CUDA available: True
CUDA runtime version: Could not collect
**Terminal nvcc --version: release 10.1, V10.1.105**
GPU models and configuration: GPU 0: GeForce GTX 1650
Nvidia driver version: 440.33.01
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.9.0
[pip3] torchaudio==0.8.2
[pip3] torchvision==0.10.0

cc @ngimel
Repository: opencv
Issue: a version vs cuda toolkit version
Labels: question (invalid tracker),category: gpu/cuda (contrib)

<!--
If you have a question rather than reporting a bug please go to https://forum.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->

- OpenCV => :grey_question:
- Operating System / Platform => :grey_question:
- Compiler => :grey_question:

##### Detailed description

<!-- your description -->

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->

##### Issue submission checklist

 - [ ] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [ ] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [ ] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [ ] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->
Repository: godot
Issue: _on_FileDialog_file_selected gets triggered 16 times when file double clicked
Labels: bug,topic:gui

### Godot version

3.2.3.stable

### System information

Windows 10

### Issue description

_on_FileDialog_file_selected gets triggered 16 times when you double click a file to open it. If you select the Open button, it gets triggered once. Opening a file by either method should produce one signal either way.

### Steps to reproduce

- Add a FileDialog control to a scene.
- Configue the FileDialog to Open File, 
- Add a _on_FileDialog_file_selected signal and point it at a function
- In the function, specify an OS.alert("hello") 
- Run and find a basic file to open such as an image file by double clicking.

Expected:
- Should trigger the signal once

Actual:
- Signal gets triggered 16 times

Notes:
- It only seems to happen when you have an alert dialog in the function. Removing the function and using print("a") instead won't repro.

### Minimal reproduction project


[SixteenAlerts.zip](https://github.com/godotengine/godot/files/6982647/SixteenAlerts.zip)
Repository: godot
Issue: Vulkan: "Mirrored Repeat" option for BaseMaterial3D missing
Labels: topic:rendering,confirmed,regression,topic:3d

### Godot version

4.0-dev (20210811)

### System information

Windows 10, Vulkan, RTX2080

### Issue description

Using the test build Godot_v4.0-dev.20210811_win64

This is a followup to issue #51621
The new BaseMaterial3D is missing an option to set the sampling to "Mirror" like on CanvasItem

![grafik](https://user-images.githubusercontent.com/8405059/129364285-f748a8ce-20f7-483a-a910-c3ec1b84fa7b.png)

We would also need an option to set this behaviour in custom shaders.
I didn't find a way to set the sampling behaviour to "Mirror" in VisualShader

### Steps to reproduce

Create a new StandardMaterial3D ->see inspector

### Minimal reproduction project

_No response_
Repository: transformers
Issue: Problem about using mBART50 for Russian to Chinese translation
Labels: WIP

## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->

- `transformers` version: 4.9.1
- Platform: ubuntu 18.04 
- Python version: 3.6.9. 
- PyTorch version (GPU?): 1.8.0 
- Tensorflow version (GPU?): 2.3.0 
- Using GPU in script?: yes
- Using distributed or parallel set-up in script?: no 

### Who can help

mbart-large-50-many-to-many-mmt：@LysandreJik @patrickvonplaten  

## Information

Model I am using: mbart-large-50-many-to-many-mmt

The problem arises when using:  
  
* my own modified scripts: (give details below)  

We originally wanted to do a Russian-Chinese translation task, but our translation results showed a lot of English. We used a script to test.

## To reproduce

Steps to reproduce the behavior:

1.The code is as follow:  
```python
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast

text_list = ['Это позволит облегчить транспортировку грузов для Китая и Германии.',
             'Россия останется одним из лидеров, возможности для наращивания экспорта есть.',
             'Это позволит оптимизировать торговые отношения.']

src_lang = 'ru_RU'
tgt_lang = 'zh_CN'
model = MBartForConditionalGeneration.from_pretrained("facebook/mbart-large-50-many-to-many-mmt")
tokenizer = MBart50TokenizerFast.from_pretrained("facebook/mbart-large-50-many-to-many-mmt")


for text in text_list:
    tokenizer.src_lang = src_lang
    encoded_hi = tokenizer(text, return_tensors="pt")
    generated_tokens = model.generate(**encoded_hi, forced_bos_token_id=tokenizer.lang_code_to_id[tgt_lang])
    translated = tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
    print(translated)
```  
when the src_lang was ‘ru_RU’ and the tgt_lang was ‘zh_CN’, the results were: 
```
['This will facilitate the transport of goods for China and Germany.']
['Russia will remain one of the leaders, there are opportunities to increase export.']
['This will allow to optimize trade relations.']
```


<!-- If you have code snippets, error messages, stack traces please provide them here as well.
     Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
     Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->

## Expected behavior

<!-- A clear and concise description of what you would expect to happen. -->
We wanted to obtain a set of Chinese translations. Here are the Chinese translations for reference.
```
['这将使中国和德国更容易运输货物。']
['俄罗斯仍将是一个领导者，有机会增加出口。']
['这将有助于改善贸易关系。']
```