sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Array Repeat operator should not use a loop for small sizes
Labels: A-LLVM,I-slow,E-needs-test,T-compiler,C-bug,A-array

This likely caused poor assembly for `Simd::splat` in some circumstances:
https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd/topic/Very.20bad.20.60u16x8.3A.3Asplat.60.20codegen.20on.20x86_64

I opened a PR for a workaround: https://github.com/rust-lang/portable-simd/pull/284

Reduced reproducer:
https://godbolt.org/z/rhvEjz5MW
```rust
#![feature(portable_simd)]
use core::{mem, simd::u8x16};

pub fn f(v: u16, p: &mut [u8; 16]) {
    unsafe {
        let v: u8x16 = mem::transmute([v; 8]);
        *p = mem::transmute(v);
    }
}
```

```asm
.LCPI0_0:
        .short  65535
        .short  65535
        .short  65535
        .short  0
        .short  65535
        .short  65535
        .short  65535
        .short  65535
.LCPI0_1:
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  0
        .short  65535
        .short  65535
.LCPI0_2:
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  65535
        .short  0
example::f:
        movd    xmm0, edi
        pshuflw xmm1, xmm0, 0
        pshufd  xmm2, xmm0, 0
        punpckldq       xmm1, xmm2
        movdqa  xmm2, xmm0
        psllq   xmm2, 48
        movdqa  xmm3, xmmword ptr [rip + .LCPI0_0]
        pand    xmm1, xmm3
        pandn   xmm3, xmm2
        por     xmm3, xmm1
        movdqa  xmm1, xmm3
        punpcklqdq      xmm1, xmm0
        movdqa  xmm2, xmm0
        pslldq  xmm2, 10
        movdqa  xmm4, xmmword ptr [rip + .LCPI0_1]
        pand    xmm1, xmm4
        pandn   xmm4, xmm2
        por     xmm4, xmm1
        movsd   xmm4, xmm0
        shufps  xmm3, xmm4, 36
        andps   xmm3, xmmword ptr [rip + .LCPI0_2]
        pslldq  xmm0, 14
        por     xmm0, xmm3
        movdqu  xmmword ptr [rsi], xmm0
        ret
```
Repository: youtube-dl
Issue: PGA tour
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->

## Checklist

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

- Single video: https://www.pgatour.com/video/2022/05/22/justin-thomas-powers-drive-onto-green-and-birdies-at-pga-champio.html
- Single video: https://www.pgatour.com/video/2022/04/19/best-of--alligator-encounters-at-the-zurich-classic.html


## Description

Got server HTTP error: <urlopen error [Errno 11001] getaddrinfo failed>. Retrying (attempt 1 of 10) ...

Can PGA tour website be supported ?
Repository: storybook
Issue: Allow the story property to accept String or Function as values
Labels: feature request,addon: docs,block: description

**Is your feature request related to a problem? Please describe**
I have complex documentation per story that I'd like to render into the docs page but it is currently not possible.
For example I'd like to render some custom HTML into the description of a story.

**Describe the solution you'd like**
As described here: https://github.com/storybookjs/storybook/issues/8527#issuecomment-856806500

Functions can be passed as values to parameters.docs.page:

```js
export default {
    ...
    parameters: {
        docs: {
            page: () => (
                <>
                    <Title>My Story</Title>
                    <Description markdown={docs}/>
                    Whatever else..
                </>
            ),
        },
    },
}
```

But not for a specific story's description parameters.docs.description:

```js
MyStory.parameters = {
    docs: {
        description: {
            // "story" property should also accepts a function, just like "page" for default export
            story: () => (
                <>
                    lots of complex things goes here
                </>
            ),
        },
    },
}
```

It would be great for story property to accept String or Function as values, for more control over story-specific descriptions

**Describe alternatives you've considered**
There are none that I know of.

**Are you able to assist to bring the feature to reality?**
Maybe with some guidance?
Repository: pytorch
Issue: [forwardAD] torch.no_grad has no effect under forward_ad
Labels: triaged,module: forward ad

### 🐛 Describe the bug

```python
import torch
import torch.autograd.forward_ad as fwAD

primal = torch.ones(10, 10)
tangent = torch.ones(10, 10)

def fn(x):
    return x ** 3

with fwAD.dual_level():
    dual_input = fwAD.make_dual(primal, tangent)
    with torch.no_grad():
        dual_output = fn(dual_input)

    jvp = fwAD.unpack_dual(dual_output).tangent
    torch.testing.assert_close(jvp, torch.ones(10, 10))  # Error

```

cc: @soulitzer @zou3519 

### Versions

master
Repository: react-native
Issue: [iOS] Shadow styles are unexpectedly applied to elements in the subtree
Labels: Platform: iOS,Bug,Impact: Bug,Never gets stale

### Description

Setting the iOS-only `shadow*` style props on a View can unexpectedly apply shadows to multiple elements in the view's subtree. This issue can be reproduced in Fabric too.

### Version

0.68

### Output of `npx react-native info`

...

### Steps to reproduce

1. Open: https://snack.expo.dev/MmY5VRLKN
2. Select iOS preview
3. Notice how the shadow applied to a wrapping view causes text elements to receive a shadow, and the background to be tinted the color of the shadow

### Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/MmY5VRLKN

<img width="283" alt="image" src="https://user-images.githubusercontent.com/239676/172238549-65bb2a77-10b0-49ee-a5b0-958deae6b5ca.png">
Repository: go
Issue: x/vulndb: allow time-based filters via flags in cve command
Labels: NeedsInvestigation,vulncheck or vulndb
Repository: flutter
Issue: Identify engine post-submit tests which catch dart regressions
Labels: team-infra,P3,triaged-infra

Dart/flutter engprod team is working on a HHH repo to run tests from dart, engine, and also framework to catch potential dart regressions quickly without waiting until rolled into downstreams.

This bug aims to collect a small subset of engine tests that are suitable for the above purpose.

@zanderso Could you help with a sub list here?

/cc @whesse
Repository: rust
Issue: Coherence issue when using crate-local traits with type parameters
Labels: C-enhancement,A-trait-system,A-visibility,T-types,A-coherence

When using crate-local traits with type parameters, it seems rust incorrectly thinks that downstream crates may implement the trait (which we know to be impossible as the traits are crate-local). 

See this [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=44ed8db978b15942267b47bb8941097b).

Also captured here for readability: 
```rust
pub(crate) struct DummyCtx {}

pub(crate) trait FooContext<C> {}

trait LocalTrait {}

pub(crate) trait BarContext<C>: LocalTrait {}

impl<C> FooContext<C> for DummyCtx {}

// Doesn't work:
impl<C: BarContext<F>, F> FooContext<F> for C {}

// Works:
// impl<C: BarContext<F> + LocalTrait, F> FooContext<F> for C {}
```

Expected both impls to compile but only the impl that restricts `C` to `LocalTrait` compiles even though `BarContext<F>` is a supertrait over `LocalTrait` which (IIUC) makes the `LocalTrait` restriction in `C:  BarContext<F> + LocalTrait` redundant.

### Meta
Can observe failure on 2021 edition stable (see rust playground link)

[This playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=817514a89e59389af2efd98801eb98ef) is another example of this but without a `LocalTrait`.

Note that using crate-local traits without any type parameters work just fine [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a558446a267e36763adf027275fd1ed5).

</details>
Repository: neovim
Issue: diff mode: mouse only scrolls one buffer if hovering inactive buffer
Labels: documentation,mouse

### Neovim version (nvim -v)

v0.7.0-dev+1186-g83fc91433

### Vim (not Nvim) behaves the same?

no, 8.2.5056 (does not scroll at all)

### Operating system/version

Windows 10

### Terminal name/version

windows-terminal 1.12.10982.0

### $TERM environment variable

builtin_vtpcon

### Installation

chocolatey

### How to reproduce the issue

Note that I could also reproduce this on kde-plasma (manjaro) with alacritty.

* echo "a\nb\nc\nd" > a.txt
* echo "a\nb\nc\nd\ne" > b.txt

* nvim --clean -d a.txt b.txt
* :set mouse=a

* &lt;scroll in unfocused buffer with the mouse&gt;

### Expected behavior

Both buffers should be scrolled.
Just like when scrolling in the active buffer.

### Actual behavior

Only the inactive buffer is scrolled.
Repository: flutter
Issue: Implement check boxes for PlatformMenuBar
Labels: c: new feature,platform-mac,a: fidelity,c: proposal,a: desktop,P3,team-macos,triaged-macos

Can the platformmenubar widget add a state field? tks!

[✓] Flutter (Channel stable, 3.0.0, on macOS 12.1 21C52 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.0.0 at /Users/jd/fvm/versions/3.0.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (4 weeks ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn


![Snip20220607_41](https://user-images.githubusercontent.com/4929805/172277381-64f2e324-b937-4488-8066-eec984ff6582.png)
![image](https://user-images.githubusercontent.com/4929805/172277446-7ac3d95d-92d6-409c-be4b-4db112e6cdb5.png)
Repository: flutter
Issue: FIAPaymentQueueHandler.h:18:42: warning build: 'SKDownload' is deprecated: first deprecated in iOS 16.0 - Hosted content is no longer supported
Labels: platform-ios,p: in_app_purchase,package,P3,team-ios,triaged-ios

On iOS 16 beta 1 there is a new deprecation warning on these lines:
https://github.com/flutter/plugins/blob/04f64ec89b65f135fc43e8856af95b7d66e3e38a/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPaymentQueueHandler.h#L18
https://github.com/flutter/plugins/blob/04f64ec89b65f135fc43e8856af95b7d66e3e38a/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPaymentQueueHandler.m#L213
https://github.com/flutter/plugins/blob/04f64ec89b65f135fc43e8856af95b7d66e3e38a/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/InAppPurchasePlugin.m#L80

`SKDownload` is deprecated in iOS 16:
https://developer.apple.com/documentation/storekit/skdownload
Repository: opencv
Issue: Morphological Opening not idempotent
Labels: question (invalid tracker)

##### System information (version)
- OpenCV => 4.5.5.64
- Operating System / Platform => Windows 64 Bit
- Compiler => OpenCV-python

##### Detailed description

There seems to be a bug with the morphological filter and the borders of an image. As a result applying the same filter with the same kernel multiple times results in different images, even though the operation is supposed to be idempotent.

Input image:
<img src="https://user-images.githubusercontent.com/63684347/172514208-12c1697d-a849-41b7-a6c7-1e798b0370e5.jpg" width="200"/>
When trying to remove the skinny rectangles in the top right using MORPH_OPEN, without adding a border to the image manually, the rectangles along the border are not removed. However, if the function is applied multiple times using the same kernel, the rectangles can be removed. This can be solved manually by adding additioal border around the image.

##### Expected behavior:
Applying the function multiple times using the same kernel should not result in different output images.

##### Steps to reproduce

```python
import cv2 as cv
import numpy as np

# %matplotlib inline
import matplotlib.pyplot as plt
matplotlib.rc('image', cmap='gray')

# load image
img = cv.imread("image.jpg", 0)

# apply binary thresholding to circumvent jpg compression
img = (img > 128).astype(np.uint8)

# adding a border around the image solves the issue
# img = cv.copyMakeBorder(img, 1, 1, 1, 1, cv.BORDER_CONSTANT)

kernel = cv.getStructuringElement(cv.MORPH_RECT,(20,5))
A = cv.morphologyEx(img, cv.MORPH_OPEN, kernel)
B = cv.morphologyEx(A, cv.MORPH_OPEN, kernel)
C = cv.morphologyEx(B, cv.MORPH_OPEN, kernel)

f, ax = plt.subplots(1,3)
ax[0].imshow(A)
ax[0].set_title("A")
ax[1].imshow(B)
ax[1].set_title("B")
ax[2].imshow(C)
ax[2].set_title("C")

plt.show()
```

Resulting images (notice the rectangles along the right border of the image):
![output](https://user-images.githubusercontent.com/63684347/172514428-5fe98e1d-da49-4351-80c7-45fa075e95f7.png)
Repository: material-ui
Issue: Identifier for component type in production builds
Labels: status: expected behavior

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

In production builds of the application
```javascript
process.env.NODE_ENV === 'production'
```
all MUI components are anonymous and do not tell the developer which component was rendered.
I am searching for a solution which help to identify the underlying component such as TextField.

### Examples 🌈

_No response_

### Motivation 🔦

I am the author of [mui-validate](https://github.com/kbrueckner/mui-validate) a validation library for MUI components.
To validate inputs the MUI components need to be wrapped with higher order components which need to be able to identify the wrapped childs type i.e. TextField.

A solution could have ben to access the childs displayName but this is stripped out in production builds from your side.
Repository: transformers
Issue: Loading repository after rename does not work (with old name)
Labels: Feature request

### System Info

```shell
- `transformers` version: 4.19.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.7.0
- PyTorch version (GPU?): 1.11.0+cu113 (False)
- Tensorflow version (GPU?): 2.8.2 (False)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```


### Who can help?

cc @LysandreJik

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Context
```
FROM LOCATION (old location): https://huggingface.co/KB/bert-base-swedish-cased
TO LOCATION (new location): https://huggingface.co/KBLab/bert-base-swedish-cased
```

The following breaks
```py
from transformers import AutoModel
model = AutoModel.from_pretrained("KB/bert-base-swedish-cased")
```

Error
```
OSError: Can't load config for 'KB/bert-base-swedish-cased'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'KB/bert-base-swedish-cased' is the correct path to a directory containing a config.json file
```

What works here?
:white_check_mark: going to original path redirects to new path
:white_check_mark: doing git clone
:white_check_mark: using huggingface_hub model_info("KB/bert-base-swedish-cased")
:x: using transformers AutoModel.from_pretrained("KB/bert-base-swedish-cased")

### Expected behavior

```shell
Loading the model with the old name would still work so users loading a transferred model don't have an impacted experience
```
Repository: ant-design
Issue: 嵌套 FormList 在 onValuesChange 中 setFieldsValue 时 remove 后 onValuesChange 中的 allValues 不正确
Labels: Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/fu-za-de-dong-tai-zeng-jian-biao-dan-xiang-antd-4-20-7-forked-5k9m9m?file=/package.json:169-177)

### Steps to reproduce

增加几个第一层list，在onValuesChange内更改list后再删除第一层list的某一项时，onValuesChange 中的 allValues 参数给的值不正确

### What is expected?

onValuesChange 中的 allValues 应为 form.getFieldValue 的值

### What is actually happening?

未删除成功的值

| Environment | Info |
| --- | --- |
| antd | 4.21.0 |
| React | ^16.14.0 |
| System | mac |
| Browser | Chrome/102.0.0.0 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Doc on index of CPU Device seems wrong
Labels: module: cpp,triaged

### 🐛 Describe the bug

Comment on this line says "When the device type is CPU, the device index must be zero".

https://github.com/pytorch/pytorch/blob/bf4b6d0dce/c10/core/Device.h#L29

However, I run PyTorch and found a CPU tensor's device has index = -1. Maybe the comment is wrong.

### Versions

```
PyTorch version: 1.11.0+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Debian GNU/Linux 11 (bullseye) (x86_64)
GCC version: (Debian 10.2.1-6) 10.2.1 20210110
Clang version: 13.0.0
CMake version: version 3.18.4
Libc version: glibc-2.31

Python version: 3.9.2 (default, Feb 28 2021, 17:03:44)  [GCC 10.2.1 20210110] (64-bit runtime)
Python platform: Linux-5.10.0-13-amd64-x86_64-with-glibc2.31
Is CUDA available: False
CUDA runtime version: 11.4.120
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: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.11.0
[conda] Could not collect
```

cc @jbschlosser
Repository: neovim
Issue: `:redrawstatus` Triggered by a Timer Cancels IncSearch Highlighting when `cursorline` is set
Labels: bug-vim,highlight

### Neovim version (nvim -v)

0.8.0-dev commit 9e442c17eeffca934c1de3674b910458e04c989b

### Vim (not Nvim) behaves the same?

yes, vim 8.1.3741. Vim has the same behavior when `laststatus` is 2.

### Operating system/version

Ubuntu 20.04 focal(on the Windows Subsystem for Linux)

### Terminal name/version

xterm 3.1

### $TERM environment variable

xterm-256color

### Installation

build from repo

### How to reproduce the issue

1. Create file `~/init.vim`
2. Write into `~/init.vim` (this is the minimal config that can reproduce the issue, notice that `cursorline` has to be set):

```vimscript
set incsearch
set cursorline
func RedrawStatus(timer)
  execute "redrawstatus"
endfunc
let timer = timer_start(1000, 'RedrawStatus', { 'repeat': -1 })
```
3. Open nvim using `nvim -u ~/init.vim`
4. In nvim open an arbitraty file, use `/` to search for a word
5. You can observe that IncSearch highlight disappears when `:redrawstatus` is fired by the timer
6. Vim have the same problem. You can verify it by using the same config file and **set `laststatus` to 2 explicitly**.


### Expected behavior

IncSearch highlighting should not disappear when `:redrawstatus` is fired.

### Actual behavior

IncSearch highlighting disappears when `:redrawstatus` is fired.
Here is the demonstration of this issue:


https://user-images.githubusercontent.com/76579810/172341787-5ba03472-05f0-4c36-ad01-a043c6f0c75f.mp4
Repository: TypeScript
Issue: window.opener should not be typed as any
Labels: Bug,Help Wanted,Domain: lib.d.ts

# lib Update Request

## Configuration Check

My compilation *target* is `esnext` and my *lib* is `["ESNext", "dom"]`.

## Missing / Incorrect Definition

`window.opener` should not be typed as `any`. I might be missing something obvious, but this has already been reported and supposedly fixed at #42433 more than a year ago, but it still seems to be typed as `any`, both on my local version of Typescript (version 4.7.3) and at https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts#L17209
Repository: flutter
Issue: Proposal: `MultiChildLayoutDelegate` as replacement of RenderBox just for more advanced layout phase
Labels: c: new feature,framework,customer: crowd,c: proposal,a: layout,P3,team-framework,triaged-framework

I need to create a custom `RenderBox` sometimes just to lay a few children out in a more custom way, depending on what are their sizes in certain box constraints.

`CustomMultiChildLayout` could serve as a replacement for custom `RenderObjectWidget`s for those cases. See the drawing below for an example. But there's no access to children's `getDryLayout` method and calling `layoutChild` more than once is prohibited.

<details>
<summary>Layout drawing example</summary>
<img src="https://user-images.githubusercontent.com/4085280/172342091-5a5f3f1f-3557-4402-9baf-a597c16fc3a6.jpeg">
</details>

Also, it's prohibited to use the laid out children's sizes in the overridden `getSize`method.

https://github.com/flutter/flutter/blob/c689f80aec327cc3901be92fafd187243879a048/packages/flutter/lib/src/rendering/custom_layout.dart#L31-L40

**My proposal is** to refactor `MultiChildLayoutDelegate` or create a new widget delegating the layout phase from rendering to the user so a developer doesn't have to write all the boilerplate `RenderObjectWidget`, `RenderObjectElement` and `RenderBox` when they don't really need all this power (and the volume of unnecessary code).

From a quick look, I think a delegate that doesn't have the `Size getSize(BoxConstraints)` virtual method and instead of `void performLayout(Size)` has a `Size performLayout(BoxConstraints)` with the access to `getDryLayout` of its children would serve as a great improvement.

What do you think?

Mentioning some people from git history and todos of `custom_layout.dart`: @Hixie @abarth @HansMuller @slightfoot 

Slightly related:
* #18426
Repository: pytorch
Issue: torchscript jit trace support custom op without  specific csrc and .so
Labels: oncall: jit

### 🚀 The feature, motivation and pitch

Despite of using a custom op in csrc way. sometimes, users just want wrap a block of lines into a single func, the using it as a single op, rather than tace them one by one.

For example, I have a block calucation like this:

```
a  = torch.sum(a*b, dim=1)
c = torch.einsum("ij,jk->ik", a, b)
```

I wanna using a single func as a Op like:

```
def my_dead_awesome_op(a, b):
    a  = torch.sum(a*b, dim=1)
    c = torch.einsum("ij,jk->ik", a, b)
```

and I wanna using jit trace this `my_dead_awesome_op` out, is there a way to do so?

### Alternatives

_No response_

### Additional context

_No response_