sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: [Runtime Configuration] `publicRuntimeConfig` is empty when you first land on static pages and then navigate to SSR pages
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

```console
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000
Binaries:
  Node: 16.13.1
  npm: 8.1.2
  Yarn: 1.22.18
  pnpm: 6.31.0
Relevant packages:
  next: 12.1.7-canary.4
  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

> There is no option to re-open #36863, so I re-create the same issue here

> This is related to [Runtime Configuration](https://nextjs.org/docs/api-reference/next.config.js/runtime-configuration).

`publicRuntimeConfig` is empty when you first land on static pages (e.g. no data fetching methods or `getStaticProps`) **and then** navigate to SSR pages. It only works when you land on SSR pages and/or navigate to other routes (client-side transitions) but not vice versa. The flow looks like:

```
Viewers --(visits)--> 
  a static page --(navigates / client-side transition)--> 
    a SSR page -->
      `publicRuntimeConfig` is undefined (ERROR)
```

It is **NOT**:

```
Viewers --(visits)--> 
  a static page --(navigates / client-side transition)--> 
    `publicRuntimeConfig` is not available in static pages
```

See following video in action:

https://user-images.githubusercontent.com/87983/168575341-059e1775-ef39-4880-94c3-01ad8e78b47b.mp4

### Expected Behavior

We should see `https://picsum.photos/320/240` under `Direct from publicRuntimeConfig` section after you complete the `To Reproduce` steps.

### To Reproduce

1. Follow the [Getting Started](https://github.com/jihchi/nextjs-publicruntimeconfig-client-transitions#getting-started) section in the reproducible repo.
1. Open http://localhost:3000/ in your browser.
1. Click `Go to /GetInitialProps`
1. You'll see `undefined/320/240` under `Direct from publicRuntimeConfig` section
Repository: pytorch
Issue: complex abs strides are wrong on empty tensors and tensors with 1 dimension
Labels: triaged,module: complex,module: primTorch

Because it uses empty_like, which doesn't create contiguous strides for empty tensors or tensors with one dimension

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved @ngimel
Repository: flutter
Issue: [DateRangePickerDialog] allow customization of day item
Labels: c: new feature,framework,f: material design,f: date/time picker,c: proposal,team-design,triaged-design

# Proposal 

 - Use a `DayItem` inside `_MonthItem` of `_CalendarDateRangePicker`  
 - Allow a builder on `DateRangePickerDialog` so we can override the default furnished by daycell, whether it is selectable, how the text looks etc.
 
 This would also clean the internals of the `buildDayItem` method used in `_MonthItem`.

IE something like this

```dart
DatePickerDialog(
   dayCellBuilder: (context, day) => DayCell(
      isSelectable: day.isAfterFirstDate && day.isBeforeLastDate,
      decoration: day.isToday ? DayCellDecoration.outlined() : DayCellDecoration.none(),
      selectedDecoration: DayCellDecoration.fill(),
      child: Text( 
         day.localizedText, 
         style: day.isBeforeFirstDate || day.isAfterLastDate ? TextStyle( color: Colors.black.38 ) : null ,
      ),
),
```
Equivalent to this is what it currently looks like (but now allows customization):
![image](https://user-images.githubusercontent.com/22280985/168984059-0da0a3e5-2ce1-44d8-a92a-41dfc0658931.png)


# use case

In our case, there needs to be a visual feedback inside the calendar for when the host is unavailable. _**If the host is unavailable the date where he is not there should still be allowed to be selected inside a range**_.  That use case highlights the following needs:

   - in selectability (predicate)
   - customization of day cell appearance
   

For example if the date picker looked like:

![image](https://user-images.githubusercontent.com/22280985/168976469-b53cd60d-eda9-4574-846b-4e4832e9879b.png)

The guest should be allowed to select a date range going from 14 and 18 but the visual feedback needs to be there.
Repository: ant-design
Issue: unable to zoom page when the mouse is hovering on the Tree component
Labels: Inactive,improvement

### Reproduction link

[https://ant.design/components/tree/#components-tree-demo-virtual-scroll](https://ant.design/components/tree/#components-tree-demo-virtual-scroll)

### Steps to reproduce

Move the mouse onto a Tree component, hold the `ctrl` key and scroll the wheel

### What is expected?

The page should zoom in/out

### What is actually happening?

The page is not zoomed, only the list is scrolling

| Environment | Info |
| --- | --- |
| antd | 4.20.5 |
| React | all |
| System | Linux & Windows |
| Browser | Microsoft Edge 101.0.1210.47 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Adding Vulkan Support 
Labels: triaged,module: vulkan

### 🐛 Describe the bug

To Reproduce :-

cd PYTORCH_ROOT
USE_VULKAN=1 USE_VULKAN_SHADERC_RUNTIME=1 USE_VULKAN_WRAPPER=0 python setup.py install



Getting Error :-
Could NOT find Shaderc (missing: GOOGLE_SHADERC_INCLUDE_DIRS GOOGLE_SHADERC_LIBRARIES) 
CMake Error at cmake/VulkanDependencies.cmake:117 (message):
  USE_VULKAN: Shaderc not found in VULKAN_SDK

But Vulkan SDK has a folder named Shaderc but it doesn't contain  GOOGLE_SHADERC_INCLUDE_DIRS GOOGLE_SHADERC_LIBRARIES.

![Screenshot from 2022-05-18 13-56-46](https://user-images.githubusercontent.com/83056874/168993980-5410fb58-ba65-4d3d-ae3f-dbeac5cfe411.png)


### Versions

Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.19.6
Libc version: glibc-2.27

Python version: 3.9.12 (main, Apr  5 2022, 06:56:58)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.27
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.21.5
[pip3] numpydoc==1.2
[conda] blas                      1.0                         mkl  
[conda] magma-cuda110             2.5.2                         1    pytorch
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-include               2022.0.1           h06a4308_117  
[conda] mkl-service               2.4.0            py39h7f8727e_0  
[conda] mkl_fft                   1.3.1            py39hd3c417c_0  
[conda] mkl_random                1.2.2            py39h51133e4_0  
[conda] numpy                     1.21.5           py39he7a7128_1  
[conda] numpy-base                1.21.5           py39hf524024_1  
[conda] numpydoc                  1.2
Repository: flutter
Issue: Some tests of VersionFreshnessValidator are incorrect
Labels: a: tests,tool,P2,team-tool,triaged-tool

Tests for checking whether `VersionFreshnessValidator.run()` is pinging the server or not (see [this](https://github.com/flutter/flutter/blob/ec02990646bcb9bade7a7e47c9c16e9e6e988f99/packages/flutter_tools/test/general.shard/version_test.dart#L154-L174) and [these](https://github.com/flutter/flutter/blob/ec02990646bcb9bade7a7e47c9c16e9e6e988f99/packages/flutter_tools/test/general.shard/version_test.dart#L198-L235) tests), have a bug. The line
```dart
expect(cache.setVersionStamp, true);
```
which is used to check whether there has been a write to the cache, only possible when the tool tries to ping the server, actually satisfy because of these lines:
https://github.com/flutter/flutter/blob/ec02990646bcb9bade7a7e47c9c16e9e6e988f99/packages/flutter_tools/lib/src/version.dart#L976-L982


[`VersionFreshnessValidator`](https://github.com/flutter/flutter/blob/ec02990646bcb9bade7a7e47c9c16e9e6e988f99/packages/flutter_tools/lib/src/version.dart#L852) does not involve in pinging the server in anyway, instead it is handled by [`_getLatestAvailableFlutterDate`](https://github.com/flutter/flutter/blob/ec02990646bcb9bade7a7e47c9c16e9e6e988f99/packages/flutter_tools/lib/src/version.dart#L344).
Repository: opencv
Issue: 4.5.4 with Inference Engine, does not spread across NUMA nodes
Labels: category: dnn,needs reproducer

 
- OpenCV => 4.5.4
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019

##### Detailed description

I have compiled opencv with Intel's Inference engine (run DNNs on CPU).

running on Xeon with 2 MUMA nodes (30 cores total), with 30 processes, run mostly on the same NUMA (this didn't happen in 4.4.0, in which processes distributed evenly on the 2 NUMAs)
Repository: terminal
Issue: InternalActionID is a hash, which cannot be depended on for equality comparison
Labels: Issue-Bug,Area-Settings,Product-Terminal

### Windows Terminal version

latest

### Windows build number

10.0.22621.0

### Other Software

_No response_

### Steps to reproduce

From `doc\specs\#885 - Terminal Settings Model\Actions Addendum.md`:

```c++
std::map<KeyChord, InternalActionID> _KeyMap;
std::map<InternalActionID, Command> _ActionMap;
```

> `InternalActionID` will be a hash of `ActionAndArgs` such that two `ActionAndArgs` with the same `ShortcutAction` and `IActionArgs` output the same hash value.

A hash function can be used to quickly determine if two items are *NOT* equal: if they have different hashes, they are not the same.

However, if the hashes are the same, *that does not mean the items are equal*. It just means that you've had a "hash collision", and need to perform a thorough equality check. But Terminal uses `InternalActionID` as a dictionary key (and the values are not lists), so if you have a collision, an action gets dropped.

I ran into this trying to add a new action--the hash function was not great, so there were collisions, which resulted in very confusing behavior, since some of my actions appeared to be straight-up do the wrong thing, but not just *any* wrong thing; but the same thing as some other instance of the command with different arguments!

I was fortunately able to improve the hash function, but this still depends on getting lucky.


### Expected Behavior

I expected to be able to add a new ActionAndArgs, even though it had a not-very-good hash function, without some of my actions being mysteriously subsumed by others.

### Actual Behavior

Some new actions appeared to do the wrong thing (the same thing as some other action that had different args, but ended up with the same hash value).
Repository: pytorch
Issue: TimeSeriesDataset retrieve columns
Labels: feature,triaged

### 🚀 The feature, motivation and pitch

Right now it is not clear or easy to retrieve column names from torch tensor after transforming data into pytorch forecasting TimeSeriesDataset. This is crucial to be able to use this library and interpret the results in a more straightforward way.

### Alternatives

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: torchrun leads to `ModuleNotFoundError: No module named 'tensorboard'`, but python -m torch.distributed.launch is ok
Labels: triaged,oncall: r2p

### 🐛 Describe the bug

When I tried to use torchrun to launch the job
```
torchrun --nproc_per_node=4 --master_port=12346 train_ours.py
```
It told me that `ModuleNotFoundError: No module named 'tensorboard'`, but actually I have installed it.
```
[stderr]    from torch.utils.tensorboard import SummaryWriter
[stderr]  File "/home/aiscuser/.local/lib/python3.7/site-packages/wrapt/importer.py", line 176, in _exec_module
[stderr]    self.loader.exec_module(module)
[stderr]  File "/opt/miniconda/lib/python3.7/site-packages/torch/utils/tensorboard/__init__.py", line 1, in <module>
[stderr]    import tensorboard
[stderr]ModuleNotFoundError: No module named 'tensorboard'
```
I used the old command to launch, everything is ok ....
`python -m torch.distributed.launch --nproc_per_node=4 --master_port=12346 train_ours.py`


### Versions
```
torch                   1.10.1+cu111
torchaudio              0.10.1+rocm4.1
torchvision             0.11.2+cu111
tensorboard             2.9.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit  1.8.1
tensorboardX            2.5
```

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501
Repository: flutter
Issue: When reverse is true in AnimatedList, always it calls initState of last item and not for the inserted item at beginning
Labels: framework,f: scrolling,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-framework,triaged-framework

I am using an AnimatedList to display a list of elements that are added from the end of the list, each element of the list (object) is passed to a StatefulWidget which within its initState does a process with the properties of the object passed in the arguments. The problem I have is that when adding the elements in this way, inserting them at the beginning of the list, the initState of the element added at the beginning is not called, but the initState of the last element of the list is always called, which would always be the same with each insertion, since it is displaced by the new elements. I need that initState of the element added at the beginning be called but I have not been able to achieve it. I am attaching an image for greater clarity and a DartPad script where I make a much more basic example but with the same problem.

## Steps to Reproduce

1. Open this DartPad https://dartpad.dev/?id=faa025e617b582e9063ff9bb53f567b5
2. Add elements and check the console

**Expected results:** 

That the initState of the element inserted at index 0 is trigger, the rest of the elements already added maintain their state, their initState is not fired

**Actual results:** 


The initState of the last element of the list is always trigger, which is the same in each insertion because it is displaced by the other elements added at the beginning

## Details


![AnimatedList English](https://user-images.githubusercontent.com/54115437/169050246-f9c65fa7-8805-4ba2-b4aa-1cdd2da3ddba.png)
Repository: react-native
Issue: Image with resizeMode='contain' and BorderRadius defined, repeat last pixel until complete container
Labels: Platform: Android,Component: Image,Priority: Mid,Tech: React Native Core,Impact: Bug

### Description

When using image with an aspectRatio of 3 / 5, width 80% of the screen and resizeMode 'contain' and borderRadius defined, the last vertical row is repeated until the end of the image container in android devices, all right in IOS.
<img width="217" alt="Captura de Tela 2022-05-18 às 10 36 30" src="https://user-images.githubusercontent.com/36475907/169051875-1579d3b2-448a-406f-ba9d-1324f39cc165.png">
Only borderRadius defined.
 
<img width="978" alt="Captura de Tela 2022-05-18 às 10 46 46" src="https://user-images.githubusercontent.com/36475907/169054734-63a0f4f5-ccae-41cb-95b8-826ffb44aa8e.png">


### Version

^0.68.1

### Output of `npx react-native info`

```
System:
    OS: macOS 12.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 54.98 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
    Watchman: 2021.11.01.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/vitor/.rvm/rubies/ruby-3.0.0/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7784292
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^18.0.0 => 18.0.0 
    react-native: ^0.68.1 => 0.68.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

Use Image with resizeMode='contain', style borderRadios: [ANY_VALUE] and aspectRatio: 3 / 5

### Snack, code example, screenshot, or link to a repository

```
```
<Image
  resizeMode="contain"
  source={{ uri: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQggwjVq0QWVYM0cVvz7jQzna5o5sCfNZbLS4uLVcBNHAW-yiPBs9yV7V2pyvyxOj45A4g&usqp=CAU' }}
  style={[styles.image, { width: '80%' }]}
  width={undefined}
  height={undefined} />
      
      
      
image: {
  aspectRatio: 5 / 3,
  borderRadius: 20,
  marginTop: 20,
  marginBottom: 30,
  alignSelf: 'center',
},

```
Repository: go
Issue: x/tools/gopls: reconcile directoryFilters and `go.work` files.
Labels: gopls,Tools,gopls/workspace

With `go.work` files, gopls now has multiple ways to exclude workspace directories, and they may be disjoint or overlap. This has been a source of recent confusion (e.g. #45340).

We need a new way to reconcile which files, packages, and modules are considered part of the workspace, and we need to present this to the user more clearly.
Repository: opencv
Issue: Using cv2.decolor on black-and-white image outputs all zero image
Labels: category: photo

<!--
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)
- Python => 3.9.6
- opencv-python => 4.5.5
- numpy => 1.20.0
- Operating System / Platform => Windows 11

##### Detailed description

Using `cv2.decolor` on black and white image outputs all zero image. It can be reproduced with the following code.

Code:

```python
import cv2
import numpy as np

print(cv2.__version__)
print(np.__version__)
# create a black-and-white image
im = np.ones((300, 300, 3), np.uint8) * 255
im[100:200, 100:200] = 0
# call decolor
im = cv2.decolor(im)[1]
print(np.all(im == 0))
```

Output:
```
4.5.5
1.20.0
True
```
Repository: rust
Issue: Double-panics recurse in `panic = "abort"` mode
Labels: T-compiler,C-bug,A-panic

Today @diondokter noticed that in a `no_std` embedded binary, which is configured to use `panic = "abort"` as a default, a panic during the panic handler will recurse, rather than abort.

Here is an embedded reproduction case (you'd need an nRF52840-DK, but I've included the output in the README):

https://github.com/jamesmunns/multi-panic

The docs [mention 'abort on double panic'](https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html), but prior to this - I didn't realize this was unique to the `"unwind"` handler, rather than panics in general. This was a surprise to myself and a number of other experienced embedded-rust folks.

This was tested with stable rust 1.59, but I wanted to check (with the lang/libs teams?) whether this is:

* Intended, and the docs (not sure exactly which ones) should be updated/clarified
* Unintended, and this may need to be fixed

At this point, I'm also not sure if this generalizes to desktop programs in `panic = "abort"`, but in that case, it may be a soundness issue if folks had not considered their panic handlers to be re-entrant safe (though that's probably just the `std` panic handler in almost every case anyway).
Repository: material-ui
Issue: "styled" utility from '@mui/material' does not add labels to css class names, unlike "styled" utility that is exported from '@mui/system'
Labels: package: system

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

if import "styled" utility that way `import { Stack, styled } from '@mui/material'` it does not add [labels](https://emotion.sh/docs/@emotion/babel-plugin#labelformat) according to [@emotion/babel-plugin](https://emotion.sh/docs/@emotion/babel-plugin#labelformat)

But if "styled" is imported from "@mui/system" labelFormats work properly

### Expected behavior 🤔

Adding a labels to css class names as defined in labelFormats @emotion/babel-plugin config

### Steps to reproduce 🕹

_No response_

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: neovim
Issue: PreFormat / PostFormat Callback/Event
Labels: enhancement,lsp

### Feature already in Vim?

_No response_

### Feature description

It be cool if he could get a `PostFormatEvent` or something like:

```lua
vim.lsp.buf.format({ async = true, callback = function() end })
```

that would allow us in a more natural way to format and save the file after async format is done
i'm not aware of any alternative that allows for async formatting and auto save the file
Repository: godot
Issue: [3.x] Export doesn't work using enums from another class
Labels: bug,topic:gdscript,confirmed,regression

### Godot version

v3.4.4.stable.arch_linux

### System information

Arch Linux x86_64  5.15.37-1-lts 

### Issue description

When trying to use the enum `TransitionType` from the `Tween` like this:

```gdscript
export (Tween.TransitionType) var transition_type := Tween.TRANS_CUBIC
```

I get the following error:

`invalid index 'TransitionType' in constant expression`

For now I'm defining the enum on the script itself to get the dropdown in the editor but is not ideal

```gdscript
enum TRANSITION_TYPES {
	TRANS_LINEAR,
	TRANS_SINE,
	TRANS_QUINT,
	TRANS_QUART,
	TRANS_QUAD,
	TRANS_EXPO,
	TRANS_ELASTIC,
	TRANS_CUBIC,
	TRANS_CIRC,
	TRANS_BOUNCE,
	TRANS_BACK
}

enum EASE_TYPES {
	EASE_IN,
	EASE_OUT,
	EASE_IN_OUT,
	EASE_OUT_IN
}

export (float, 0, 2) var tween_duration := 0.5
export (EASE_TYPES) var ease_type := 1
export (TRANSITION_TYPES) var transition_type := 3

```

Related bug https://github.com/godotengine/godot/issues/19704

### Steps to reproduce

Create a new gdscript and export a variable using a enum from the `Tween` class

### Minimal reproduction project

[export-from-tween-class.zip](https://github.com/godotengine/godot/files/8718011/export-from-tween-class.zip)