sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: CSS imports from URL not working with experimental.urlImports enabled
Labels: bug,Webpack

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

    Operating System:
      Platform: linux
      Arch: x64
      Version: #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022
    Binaries:
      Node: 18.2.0
      npm: 8.9.0
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 12.1.7-canary.24
      react: 18.1.0
      react-dom: 18.1.0

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

Importing CSS from a URL doesn't appear to work if experimental.urlImports are enabled. This happens in both CSS (eg `@import url(https://...)`) and JS (eg `import 'https://...'`)

Potentially related to https://github.com/vercel/next.js/issues/30522

css-loader appears to have some newer code for Webpack's buildHttp which doesn't seem to be in the Next.js version of css-loader: https://github.com/webpack-contrib/css-loader/pull/1389/files

### Expected Behavior

CSS imported from a URL w/o erroring

### To Reproduce

1) `npx create-next-app`
2) add `experimental: { urlImports: ['https://cdn.jsdelivr.net'] }` to next.config.js
3) add `@import url('https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css');` to top of globals.css
4) try loading site

Should give error:
```
error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./styles/globals.css
Error: Can't resolve 'https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css' in '/home/austin/misc_git/test3/styles'
```

Removing urlImports: [...] from next.config.js causes it to work again.

Same thing happens when trying to import via JS (eg `import 'https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css'`)

The error for importing from JS might be more helpful:

```
./https:/cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css:1:0
Module not found: Can't resolve '!../../../../../../node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js'
```
Repository: pytorch
Issue: Parallel execution of multiple unrelated statements written sequentially
Labels: triaged,enhancement

### 🚀 The feature, motivation and pitch

Often, I write statements in a sequential manner that do not relate to each other - the order of their execution does not matter. Such statements can be parallelized to achieve better performance. One example: resize three different images using nearest, bilinear, and bicubic:

Old method:

```python
img1 = F.interpolate(img1, mode="nearest", ...)
img2 = F.interpolate(img2, mode="bilinear", ...)
img3 = F.interpolate(img3, mode="bicubic", ...)
```

New method:

```python
img1, img2, img3 = parallel_api_fn([
    {
        "function": F.interpolate, 
        "args": {"inputs": img1, "mode": "nearest"}
    },
    {
        "function": F.interpolate, 
        "args": {"inputs": img2, "mode": "bilinear"}
    },
    {
        "function": F.interpolate, 
        "args": {"inputs": img3, "mode": "bicubic"}
    }
])
```

Of course, the implementation mentioned above is just an example. The core idea is to take a list of functions (same or different), and their respective arguments. These functions are then executed in parallel using the new API function.

### Alternatives

Currently, the functionality can be implemented using vmap or python multiprocessing. However, each of these requires a lot of additional code and has a lot of added complexity. If we assume that every line to be executed in parallel is independent and all arguments are immutable, I believe the lines can easily be run in parallel on GPU.

### Additional context

_No response_

cc @ngimel @bdhirsh
Repository: flutter
Issue: Print "done" when syncing files has finished
Labels: c: new feature,tool,a: quality,c: proposal,P3,team-tool,triaged-tool

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

Whenever running an app with simulator or real device, it is something not known if the syncing of files has finished or not (specially when the first screen is already shown).

For example:

```
Syncing files to device iPad (7th generation)...
```

## Proposal

Just printing `Done` at the end would be helpful, e.g. 

```
Syncing files to device iPad (7th generation)... done.
```

Or even removing the dots (if possible)
```
Syncing files to device iPad (7th generation) done.
```
Repository: vscode
Issue: Explorer -> Open Editors scroll issues
Labels: bug,open-editors

Issue Type: <b>Bug</b>

Hello,

I found two scroll issues in the Open Editors view.
The first one is that if all other views are collapsed and only Open Editors is expanded, there is unnecessary vertical scroll. Screenshot attached.
The second one is when there is a file with long name in Open Editors and a horizontal scroll appears if the section is with less width than the name of the file. The scroll overlaps with the last file in Open Editors and make it almost impossible to select if you're at the bottom. Screenshot attached.

VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:20:57.384Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 3, 3|
|Memory (System)|16.00GB (0.35GB free)|
|Process Argv|. --crash-reporter-id ddf221d7-6a43-437e-a4da-c09b4559cc3e|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (13)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-apollo|apo|1.19.11
vscode-eslint|dba|2.2.2
gitlens|eam|12.0.7
prettier-vscode|esb|9.5.0
go-to-spec|Lou|0.1.3
ruby-rubocop|mis|0.8.6
prettify-json|moh|0.0.3
rails-run-spec-vscode|nok|0.1.4
ruby|reb|0.28.1
slim|sia|0.1.2
code-spell-checker|str|2.2.0
vscode-stylelint|sty|1.2.2
vscode-ruby|win|0.28.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

```

</details>

<!-- generated by issue reporter -->

<details>
<summary>Issue 1</summary>

![Screenshot 2022-05-31 at 9 40 22](https://user-images.githubusercontent.com/61980712/171109984-43aee2cc-fdff-4897-8915-cc7ac1b62139.png)


</details>

<details>
<summary>Issue 2</summary>

![Screenshot 2022-05-31 at 9 41 46](https://user-images.githubusercontent.com/61980712/171110065-1bd1dd88-d282-4033-a89b-c2965c8dac23.png)

</details>
Repository: transformers
Issue: _batch_encode_plus() got an unexpected keyword argument 'is_pretokenized' using BertTokenizerFast
Labels: Good Second Issue,bug

### System Info

```shell
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
for token, label in zip(tokenizer.convert_ids_to_tokens(training_set[0]["input_ids"]), training_set[0]["labels"]):
  print('{0:10}  {1}'.format(token, label))

The error I am getting is:
Traceback (most recent call last):
  File "C:\Users\1632613\Documents\Anit\NER_Trans\test.py", line 108, in <module>
    for token, label in zip(tokenizer.convert_ids_to_tokens(training_set[0]["input_ids"]), training_set[0]["labels"]):
  File "C:\Users\1632613\Documents\Anit\NER_Trans\test.py", line 66, in __getitem__
    encoding = self.tokenizer(sentence,
  File "C:\Users\1632613\AppData\Local\conda\conda\envs\ner\lib\site-packages\transformers\tokenization_utils_base.py", line 2477, in __call__
    return self.batch_encode_plus(
  File "C:\Users\1632613\AppData\Local\conda\conda\envs\ner\lib\site-packages\transformers\tokenization_utils_base.py", line 2668, in batch_encode_plus
    return self._batch_encode_plus(
TypeError: _batch_encode_plus() got an unexpected keyword argument 'is_pretokenized'
```


### Who can help?

@SaulLu 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

1. Download the NER Dataset from the Kaggle link (https://www.kaggle.com/datasets/namanj27/ner-dataset)
2. Use the Script with the mentioned versions of transformers and tokenizers:
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
for token, label in zip(tokenizer.convert_ids_to_tokens(training_set[0]["input_ids"]), training_set[0]["labels"]):
  print('{0:10}  {1}'.format(token, label))


### Expected behavior

```shell
I expect to get the token, label from the script above.

Python Version: 3.9
tokenizers-0.12.1 
transformers-4.19.2

Anyone can shed some light please?
```
Repository: vscode
Issue: Command center: search icon maybe misleading
Labels: under-discussion,command-center

Testing #150396

![image](https://user-images.githubusercontent.com/900690/171131963-aad1dddf-5153-47e4-ad03-633c86823b4c.png)

I wonder if the search icon is the right icon to use here. Quick open does not really allow you to search in full text, and has other capabilities that are not related to searching (such as commands). I wonder if we should pick a more generic icon that conveys the abilities of quick open.

//cc @daviddossett @misolori
Repository: vscode
Issue: Table: Support reordering columns
Labels: feature-request,table-widget

Testing #150750

![image](https://user-images.githubusercontent.com/10746682/171136423-eab98f9e-6b04-46b6-a681-1e2bc6d26b54.png)

IMO, message and file info is more important than code
Repository: vscode
Issue: Does not fit well in side panel
Labels: feature-request,polish,error-list

Testing #150750

![image](https://user-images.githubusercontent.com/10746682/171139193-d6c10a90-d37c-40e4-8623-6f33b3c7feae.png)

For example, file column is not helpful at all - how about showing file name only when the width of file column is small?
Also, how about hiding non important columns like source, code and show them only when there is enough space?
Repository: pytorch
Issue: clear input shape declaration  on pytorch model inputs and outputs
Labels: triaged,module: shape checking,module: python frontend

### 🚀 The feature, motivation and pitch

It is hard to read a new pytorch project, compared to keras like projects.  each DL models can be seen as implementation of certain function, with scheduled inputs and outputs. But there is no clear information about shape, dtype for inputs and outputs in pytorch projects.

### Alternatives

or, to provide some convenient tools to test input and output shape, dtype, for any pytorch model - before training or after.

### Additional context

_No response_
Repository: flutter
Issue: [flutter doctor] Android Studio Dolphin/Electric Eel doesn't show app version 
Labels: tool,t: flutter doctor,has reproducible steps,P2,found in release: 3.1,team-tool,triaged-tool

The version name is missing with Android Studio Dolphin and Android Studio Electric Eel 
`[✓] Android Studio (version xxxx.x) <- This version name`

### Android Studio Chipmunk (Working as expected)

```console
[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
```

### Android Studio Electric Eel (Version name is missing)
```console
[✓] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
```
Repository: opencv
Issue: Redundant code found in Cloning::illuminationChange()
Labels: bug,affected: 3.4,category: photo

##### System information (version)
- OpenCV => 4.5.5
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019
##### Detailed description
link:https://github.com/opencv/opencv/blob/9da9e8244b75a3754ff3a5d07ffdac46ee28ab6b/modules/photo/src/seamless_cloning_impl.cpp#L428-L431
I am leanring source code of OpenCV these days and found some codes redundant, at least from my perspective.I test some photos both with these codes and without them.The result seems the same.I believe these codes do redundant work that copy the same Mat variable.I am a code beginner and I am sorry for my disturbance if my judgement is wrong.
##### Issue submission checklist

 - [x] I report the issue, it's not a question
 - [x] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found any solution
 - [x] I updated to the latest OpenCV version and the issue is still there
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
Repository: vscode
Issue: On save: Unable to write file, Cannot read properties of undefined (reading 'lineStarts')
Labels: bug,debt,editor-textbuffer

I hit the following error and weird stuff happened after. Maybe this is enough information to fix the problem, but if not we can probably fix the undefined.lineStarts error.

![image](https://user-images.githubusercontent.com/2193314/171175882-d303224e-f7f8-4b71-9b92-0aff282c346c.png)

Upon retry:

![image](https://user-images.githubusercontent.com/2193314/171175957-24437355-ec21-4c94-8146-7daf0f877aa0.png)

When comparing it shows this, this the change I made just before saving.

![image](https://user-images.githubusercontent.com/2193314/171175990-e55b728a-3337-4dd6-a5f5-96cc2e3f13fd.png)

I can't remember exactly what happened as I took a break just before this happened, I think it was this:

1. Saved xing_b16.json
2. For some reason it didn't show up in the explorer
3. (some time passed)
4. Created a new xing_b16.json
5. Pasted
6. Removed indentation
7. Saved
8. Hit the issue
	
Something also weird of note is that the red part of the diff is before the automatic indentation that happens which makes the file looks like this:

![image](https://user-images.githubusercontent.com/2193314/171176045-a51770a5-c287-48d2-b261-92956ea38502.png)

And I definitely didn't undo the auto indentation and save it.
Repository: vscode
Issue: Explorer collapses folder when renamed
Labels: bug,file-explorer

![Recording 2022-05-30 at 16 27 26](https://user-images.githubusercontent.com/2193314/171176247-da3b22b2-ca05-4782-bea6-29ffe1f4e6ca.gif)
Repository: vscode
Issue: Column Selection: ragged line ends
Labels: feature-request,editor-columnselect

<!-- ⚠️⚠️ 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. -->
Did not find a duplicate. 
<!-- Describe the feature you'd like. -->
When in column selection mode, there's no way to easily select the ends of all lines: it slices through long ones and ignores shorter ones. If I start a column selection outside the end of a line, I'd like to select the end of each line that I drag through.  If the find box respected selections, I'd probably use that, but it finds ALL \n in the entire document, not just the selection.

Similarly, if I select an internal point and then use the arrow keys to move the selection to the end of the line, the selection cursor WRAPS around to following lines!  I'd like it to halt whenever it reaches the line ends.

I know this creates a visually non-columnar selection, but conceptually "end of line" is the same thing.  Another option, as jEdit does, is to add whitespace to the line endings so that the selection remains a column and all the lines have the same length.
Repository: rust
Issue: ambiguous assoc types result in incorrect suggestion
Labels: A-diagnostics,A-associated-items,T-compiler,D-invalid-suggestion

```rust
trait Super<T> {
    type Assoc;
}
trait Trait: Super<u32> + Super<i32> {}

fn foo<T: Trait<Assoc = u32>>() {}
```
```
error[[E0222]](https://doc.rust-lang.org/stable/error-index.html#E0222): ambiguous associated type `Assoc` in bounds of `Trait`
 --> src/lib.rs:6:17
  |
2 |     type Assoc;
  |     -----------
  |     |
  |     ambiguous `Assoc` from `Super<i32>`
  |     ambiguous `Assoc` from `Super<u32>`
...
6 | fn foo<T: Trait<Assoc = u32>>() {}
  |                 ^^^^^^^^^^^ ambiguous associated type `Assoc`
  |
  = help: consider introducing a new type parameter `T` and adding `where` constraints:
              where
                  T: Trait,
                  T: Super<i32>::Assoc = u32,
                  T: Super<u32>::Assoc = u32
```
and
```rust
trait Super<T> {
    type Assoc;
}
trait Trait: Super<u32> + Super<i32> {}

fn main() {
    let _: dyn Trait<Assoc = u32>;
}
```
```
error[[E0222]](https://doc.rust-lang.org/stable/error-index.html#E0222): ambiguous associated type `Assoc` in bounds of `Trait`
 --> src/main.rs:7:22
  |
2 |     type Assoc;
  |     -----------
  |     |
  |     ambiguous `Assoc` from `Super<i32>`
  |     ambiguous `Assoc` from `Super<u32>`
...
7 |     let _: dyn Trait<Assoc = u32>;
  |                      ^^^^^^^^^^^ ambiguous associated type `Assoc`
  |
  = help: consider introducing a new type parameter `T` and adding `where` constraints:
              where
                  T: Trait,
                  T: Super<i32>::Assoc = u32,
                  T: Super<u32>::Assoc = u32

error[[E0191]](https://doc.rust-lang.org/stable/error-index.html#E0191): the value of the associated type `Assoc` (from trait `Super`) must be specified
 --> src/main.rs:7:16
  |
2 |     type Assoc;
  |     ----------- `Assoc` defined here
...
7 |     let _: dyn Trait<Assoc = u32>;
  |                ^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Trait<Assoc = u32, Assoc = Type>`
```

Trying to write `T: Super<i32>::Assoc = u32` results in a syntax error.
Repository: godot
Issue: Material "Unshaded" flag is not unshaded on mobile device
Labels: bug,platform:android,topic:rendering,needs testing,topic:shaders

### Godot version

3.4.4

### System information

Windows 10 ; Samsung Galaxy A03s

### Issue description

Hi guys,

I'm trying to get the shading to just unshaded but it's not showing properly on my android device.

run on PC is good:
![image](https://user-images.githubusercontent.com/37254287/171197154-50feea78-c459-4a8d-a76f-a1aef874a6bf.png)

run on mobile device looks like this:
![image](https://user-images.githubusercontent.com/37254287/171197450-57e62283-20a4-44f6-868b-f0c2bc6ad21e.png)

Material settings:
![image](https://user-images.githubusercontent.com/37254287/171197578-f377c54a-2647-467a-b08d-7c2892b99f30.png)



### Steps to reproduce

[scene.zip](https://github.com/godotengine/godot/files/8806097/scene.zip)


This zip contains the .glb and textures
Add to your scene, set all materials to unshaded, Add a camera, and run on your mobile device.

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: LibTorch cannot be used without nvcc
Labels: module: build,triaged

### 🐛 Describe the bug

When using LibTorch in CMake via `find_package(Torch REQUIRED)` it tries to find CUDA via `nvcc`. When only the runtime libraries are installed, e.g. `sudo apt install cuda-libraries-11-3` then it will fail with:
```
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) 
CMake Warning at [...]/cmake/Caffe2/public/cuda.cmake:31 (message):
  Caffe2: CUDA cannot be found.  Depending on whether you are building Caffe2
  or a Caffe2 dependent library, the next warning / error will give you more
  info.
```

Since LibTorch is already compiled, it should not require `nvcc` and other development libraries to be installed.

Looking at `Caffe2/public/cuda.cmake` and https://github.com/pytorch/pytorch/blob/v1.11.0/cmake/public/cuda.cmake#L29, it seems that the [deprecated `find_package(CUDA)`](https://cmake.org/cmake/help/latest/module/FindCUDA.html) is used. Instead, the new [`FindCUDAToolkit`](https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html#module:FindCUDAToolkit) should be used. This will work without `nvcc` installed.

### Versions

1.11 from https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcu113.zip

cc @malfet @seemethere
Repository: godot
Issue: Gliched and slow viewport on android port 
Labels: bug,platform:android,topic:rendering,topic:3d,performance

### Godot version

V3.5

### System information

Android 11 GPU:Mali-G76 MC4

### Issue description

When opening a fresh project the viewport is glitchy and also slow when looking down(half resolution solves this issue but it's still glitchy)
![IMG_20220531_173133](https://user-images.githubusercontent.com/105948899/171212136-557c7810-4111-472f-a422-1cf6c1200a9e.jpg)
![Screenshot_2022-05-31-17-30-58-512_org godotengine editor v3](https://user-images.githubusercontent.com/105948899/171212145-d58e3c4c-7933-4021-a337-c2a27c196796.jpg)

The same effect on GLES3
There is no issue on Godot 4.0 Vulkan but the performance is really bad so i don't want to use it 


### Steps to reproduce

Create new project 

### Minimal reproduction project

_No response_