sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: Bart evaluation throws the following error at generate(): UnboundLocalError: 'model_kwargs['decoder_attention_mask']' is used before assignment
Labels: TensorFlow,Examples,Good Second Issue

### System Info

- `transformers` version: 4.39.0
- Platform: Linux-5.4.0-167-generic-x86_64-with-glibc2.31
- Python version: 3.10.13
- Huggingface_hub version: 0.21.4
- Safetensors version: 0.4.2
- Accelerate version: 0.28.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.2.1+cu121 (False)
- Tensorflow version (GPU?): 2.16.1 (False)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no

### Who can help?

_No response_

### Information

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

1. Run the run_clm.py with bart given at https://github.com/huggingface/transformers/tree/main/examples/tensorflow/summarization
2. Use the latest tensorflow native version (2.16.1) and latest transformers version (4.39.1)
3. I run only inference and so give only --do_eval while running the command

### Expected behavior

Produce evaluation results
Repository: go
Issue: x/net/quic: TestServer_Rejects_TLS10 failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "golang.org/x/net/quic" && test == "TestServer_Rejects_TLS10"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/7b36465aaa0cfc65a7b77252a1fec376729925ae)):

    --- FAIL: TestServer_Rejects_TLS10 (0.01s)
        http2_test.go:67: 2024/03/25 19:37:24 http: TLS handshake error from 127.0.0.1:58128: local error: tls: bad record MAC
        server_test.go:181: remote error: tls: bad record MAC


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: x/net/quic: TestServer_Rejects_TLS11 failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "golang.org/x/net/quic" && test == "TestServer_Rejects_TLS11"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/70749441f542370a02333906bcafbda7ed468bae)):

    --- FAIL: TestServer_Rejects_TLS11 (0.01s)
        http2_test.go:67: 2024/03/25 19:06:32 http: TLS handshake error from 127.0.0.1:60640: local error: tls: bad record MAC
        server_test.go:181: remote error: tls: bad record MAC


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: x/net/quic: TestServer_Rejects_TLSBadCipher failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "golang.org/x/net/quic" && test == "TestServer_Rejects_TLSBadCipher"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/ecd4e6b2e3f0c3248051d68b50ff73d514a9d9fa)):

    --- FAIL: TestServer_Rejects_TLSBadCipher (0.01s)
        http2_test.go:67: 2024/03/25 18:35:28 http: TLS handshake error from 127.0.0.1:51466: local error: tls: bad record MAC
        server_test.go:181: remote error: tls: bad record MAC


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: PowerToys
Issue: Wrong extension icon display
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

![image](https://github.com/microsoft/PowerToys/assets/143479576/8b076224-9095-49fa-b57c-296e2c902e41)
in the third line, the option to search with chrome is displayed with settings icon. I have met this problem in v0.71.0, but it was fixed with v.0.72 update. And then when I try to configure shortcut to active extensions, it happens.



### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: go
Issue: net: TestDialerFallbackDelay failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "net" && test == "TestDialerFallbackDelay"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/57ec95e2bc582b48b892f858d067b57f738acb13)):

    --- FAIL: TestDialerFallbackDelay (0.71s)
        dial_test.go:380: #1: got 398.609097ms; want <= 295ms


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: neovim
Issue: Remote open if swap exists
Labels: enhancement,remote

### Problem

In Julia, it is possible to open and locate a file in the error stack trace.
However, using this frequently is slow (language server initialization...).
It will be much faster if the Julia script is opened in a long-running vim instance; and locating an error just reuses the instance.

More generally, it will be convenient if users are allowed to choose whether to use a new vim instance or to reuse an existing vim instance (that opened the target file).

### Expected behavior

Currently, when opening a file that is already opened, nvim displays:

```
...
        process ID: 769509 (STILL RUNNING)
...
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
```

It knows which process (thus the server address) opened the file.
So it is possible to remote open (and locate lines) this file.
I expect a prompt like:

```
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, O(p)en remote:
```

So that when debugging Julia, I can simply choose (p), without any special configurations.
Repository: vscode
Issue: Request json/sort failed with message: Range#create
Labels: bug,json-sorting

* have a JSON file as below
* have code on save and JSON sort
* have a JSON file and notice errors on save

```JSON
"editor.codeActionsOnSave": {
    "source.sort.json": "explicit",
}
```

```
notificationsAlerts.js:32 Request json/sort failed with message: Range#create called with invalid arguments[[object Object], [object Object], undefined, undefined]
```
Repository: transformers
Issue: Added HelpingAI model type in it
Labels: New model

### Model description


Introduction
HelpingAI-3B is a state-of-the-art AI model designed to assist with day-to-day tasks. It's trained on a diverse range of datasets, making it versatile and adaptable to various applications.

Model Overview
HelpingAI-3B is the latest model in the HelpingAI series. It's built on advanced machine learning algorithms and trained on a wide variety of data sources. This ensures that the model is capable of understanding and generating responses in a wide range of contexts.

Usage code
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer

# Let's bring in the big guns! Our super cool HelpingAI-3B model
model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI-3B", trust_remote_code=True, torch_dtype=torch.bfloat16).to("cuda")

# We also need the special HelpingAI translator to understand our chats
tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI-3B", trust_remote_code=True, torch_dtype=torch.bfloat16)

# This TextStreamer thingy is our secret weapon for super smooth conversation flow
streamer = TextStreamer(tokenizer)

# Now, here comes the magic! ✨ This is the basic template for our chat
prompt = """

system: {system}



user: {insaan}



assistant:
"""

# Okay, enough chit-chat, let's get down to business!  Here's what our system will say to the user
system = "You are an adaptive and versatile AI assistant, ready to help with various topics and situations while maintaining a conversational, engaging, and friendly tone. You aim to provide accurate, comprehensive information and advice. Be open to feedback and adjust your responses based on user input. Always show empathy and understanding in your conversations."


# And the insaan is curious (like you!) insaan means user in hindi
insaan = "Hey HelpingAI, how's it going?"

# Now we combine system and user messages into the template, like adding sprinkles to our conversation cupcake
prompt = prompt.format(system=system, insaan=insaan)

# Time to chat! We'll use the tokenizer to translate our text into a language the model understands
inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to("cuda")

# Here comes the fun part!  Let's unleash the power of HelpingAI-3B to generate some awesome text
generated_text = model.generate(**inputs, max_length=3084, top_p=0.95, do_sample=True, temperature=0.7, use_cache=True, streamer=streamer)
```

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

_No response_
Repository: ui
Issue: [bug]: asChild breaks DropdownMenuSubTrigger 
Labels: bug

### Describe the bug

The following code breaks: `<DropdownMenuSubTrigger asChild ....>`.

This is because `DropdownMenuSubTrigger` passes two children to the Primitive, `props.children` and `ChevronRight`. This breaks the `asChild` implementation of Radix as it only expects a single child to be passed

### Affected component/components

Dropdown Menu

### How to reproduce

Open a regular DropdownMenu example, and add `asChild` to the subtrigger

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Brave / MacOS
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: vscode
Issue: Debt: Do not hardcode menu height when activity bar bottom
Labels: debt,layout

https://github.com/microsoft/vscode/blob/a307d64354046f1dab8153a2f95628da4f037d75/src/vs/base/browser/ui/menu/menubar.ts#L1021
Repository: tauri
Issue: [bug] Gestures are not disabled
Labels: type: bug,status: needs triage

### Describe the bug

Gestures are not disabled by default.

### Reproduction

1. Create sample app( `create tauri-app` )
2. Execute app and open devtools
3. Go to any page(set to `location.href`)
4. Go forward or backward by gestures

https://youtu.be/s5mzUUeyUEM

### Expected behavior

Gestures are disabled by default.

### Full `tauri info` output

```text
[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 122.0.2365.92
    ✔ MSVC:
        - Visual Studio Professional 2017
        - Visual Studio Professional 2019
    ✔ rustc: 1.77.0 (aedd173a2 2024-03-17)
    ✔ cargo: 1.77.0 (3fe68eabf 2024-02-29)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - yarn: 4.1.1
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.13
    - tauri-build [RUST]: 2.0.0-beta.10
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.11

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: godot
Issue: Multiple gridmaps in same scene cause issues with mesh selection and filtering
Labels: bug,topic:editor

### Tested versions

3.5

### System information

Windows 10

### Issue description

If using multiple gridmaps in the same scene and switching between them, the editor will try to pick the MeshLibrary item from the previously selected gridmap's meshlibrary and choose it in the newly selected gridmap (instead of the one previously chosen in that gridmap) and if using the filter meshitem and less than two are chosen, it is impossible to pick the only chosen meshitem.

The chosen item should be separated between each gridmap, so switching between them keeps the item chosen last independently.

Similar to https://github.com/godotengine/godot/issues/64126 but without the error, it's still very inconvenient though.

### Steps to reproduce

- Add two gridmaps to a scene
- Have them both use separate MeshLibraries of different sizes
- Pick an item from one gridmap meshlibrary for painting with and switch to the other gridmap
- Godot will attempt to select the previously chosen item from the other gridmap in the newly chosen gridmap, and if filtering a meshitem library that results are less than two, you won't be able to choose the single selected meshitem.

### Minimal reproduction project (MRP)

N/A
Repository: puppeteer
Issue: `browsingContext.create` fails after abandoned `browsingContext.print` via `browsingContext.close` in Firefox over BiDi 
Labels: bug,upstream,confirmed,bidi,P3,firefox

See https://github.com/puppeteer/ispuppeteerwebdriverbidiready/actions/runs/8434244508/job/23097051126#step:3:10250

Suspect: https://github.com/puppeteer/puppeteer/commit/6be72f315b64128d30f82b74f448d2ca3e70f536

cc @Lightning00Blade @whimboo
Repository: godot
Issue: Cursor jumps between start and end of line when line begins with a RTL letter while typing with non-RTL letters and symbols
Labels: discussion,topic:gui

### Tested versions

v4.3.dev5.official [89f70e98d]

### System information

Apple M1, Ubuntu 20.04 LTS

### Issue description

See title.

### Steps to reproduce

1. Optionally download the MRP (rtl_jumps.zip) then go to step 9.  Otherwise follow steps 2-8 to recreate the MRP.
2. Create a csv called `translations.csv` and add the following:

       key,en,ar
       test,test,test

3. Create a new project.
4. Click on `User Inteface` and replace the root node with a `LineEdit` node.
5. Move `translations.csv` created in step 2 into the new project.
6. Project -> Project Settings...
7. Click on the `Localization` tab, click `Add...` and choose `translations.ar.translation` and `translations.en.translation`.
8. Click on the `General` tab, toggle `Advanced Settings`, Internationalization -> Locale, set `Test` to `ar`.
9. Run the project.
10. Paste this Arabic letter as the first letter: `ﺵ`
11. Alternate between English letters and symbols, like `a,b<c>d;e:f`, and watch the cursor jump back and forth.

https://github.com/godotengine/godot/assets/135338122/31032bb4-0e11-49dd-beca-7087bdc3a9bd

**Notes**
1. ( ), { }, [ ], are confusing since the opposite brace appears, though I don't know what the expected behavior should be.
2. The issue does not occur if an English letter was typed first.  However, the cursor behaves strangely once an Arabic letter is typed.  For example, type this: `abc` then paste `ﺵ`. Notice the cursor is to the left of `ﺵ`. If you type another symbol or English letter the cursor will jump to the right.  Again, I don't know if this is expected.
3. You can see https://github.com/godotengine/godot/issues/84370 in the video

### Minimal reproduction project (MRP)

[rtl_jumps.zip](https://github.com/godotengine/godot/files/14758778/rtl_jumps.zip)
Repository: material-ui
Issue: [docs-infra] Scoped notification per product
Labels: enhancement,scope: docs-infra

### Summary

Today, having a unified notification system doesn't make sense from a user perspective. For instance, it doesn't make sense to hear about a new MUI X version when browsing Pigment CSS. It doesn't make sense for a user to hear about Toolpad new version when browsing Base UI.

### Examples

_No response_

### Motivation

I would like us to not teach developers that the notifications on the docs are noise that should be ignored.

### Solution

It could be as simple as having an array of products where the notification triggers in `docs/notifications.json`.

```diff
diff --git a/docs/notifications.json b/docs/notifications.json
index 4b3431c0..95b6916d 100644
--- a/docs/notifications.json
+++ b/docs/notifications.json
@@ -16,6 +16,7 @@
   },
   {
     "id": 80,
+    "productIds": ["x", "material-ui", "toolpad-core"],
     "title": "<b>MUI X v7.0.0-beta.0</b>",
     "text": "Featuring new components and multiple enhancements for both developers and end-users. Discover all the specifics in the <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-x-v7-beta\" href=\"https://mui.com/blog/mui-x-v7-beta/\">announcement blog post</a>."
   }
```

**Search keywords**: -
Repository: pytorch
Issue: Unable to call len on nested tensor 
Labels: low priority,triaged,module: nestedtensor

### 🐛 Describe the bug

```
import torch

t = torch.nested.nested_tensor([torch.zeros])
len(t)
```

produces error message

```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/opt/anaconda3/envs/test/lib/python3.9/site-packages/torch/_tensor.py", line 904, in __len__
    return self.shape[0]
RuntimeError: Internal error: NestedTensorImpl doesn't support sizes. Please file an issue on https://github.com/pytorch/nestedtensor
```

New `nested_tensors` does not support the __len__ operation as it is implemented using `self.shape[0]`. Replacing this with `self.size(0)` should produce intended results.

### Versions

```
--2024-03-26 14:19:05--  https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22068 (22K) [text/plain]
Saving to: ‘collect_env.py’

collect_env.py           100%[==================================>]  21.55K  --.-KB/s    in 0.001s

2024-03-26 14:19:05 (19.0 MB/s) - ‘collect_env.py’ saved [22068/22068]

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: macOS 14.2.1 (x86_64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.3.9.4)
CMake version: version 3.26.4
Libc version: N/A

Python version: 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:53:33)  [Clang 16.0.6 ] (64-bit runtime)
Python platform: macOS-14.2.1-x86_64-i386-64bit
Is CUDA available: N/A
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
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

CPU:
Apple M1

Versions of relevant libraries:
[pip3] flake8==3.9.2
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.21.6
[pip3] numpydoc==1.1.0
[conda] blas                      1.0                         mkl
[conda] mkl                       2021.4.0           h89fa619_689    conda-forge
[conda] mkl-service               2.4.0            py39hadd8af7_0    conda-forge
[conda] mkl_fft                   1.3.1            py39h4ab4a9b_0
[conda] mkl_random                1.2.2            py39hb2f4e1b_0
[conda] numpy                     1.21.6                   pypi_0    pypi
[conda] numpy-base                1.24.3           py39h9cd3388_0
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1
```

cc @cpuhrsch @jbschlosser @bhosmer @drisspg @soulitzer @davidberard98 @YuqingJ
Repository: electron
Issue: [Bug]: Inconsistent behaviour in save dialog when Windows has file extensions hidden
Labels: platform/windows,bug :beetle:,component/dialog,28-x-y,29-x-y,30-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

29.1.5

### What operating system are you using?

Windows

### Operating System Version

Windows 10

### What arch are you using?

x64

### Last Known Working Electron version

never

### Expected Behavior

On Windows, when file extensions are hidden, when the user changes the filename, the original extension should be added back. This is the default behaviour when using the browser save dialog.

### Actual Behavior

The file extension is removed when the user hasn't typed an extension. 

Note that, sometimes, this even happens when the user hasn't changed the file name at all.

### Testcase Gist URL

https://gist.github.com/db79d1744481ab377ea8c0904d5e1633

### Additional Information

In this Gist, when you click Browser Download, first of all, the save dialog auto-detects the type from system settings:
![5bece578036c12a4e5e412032d2999d9](https://github.com/electron/electron/assets/9607577/ea3e7920-81d9-4b52-9640-64a144e10b4b)

Changing the name to "i-wanted-another-name": 
![82407b4e78fe32e76e997b4628571f31](https://github.com/electron/electron/assets/9607577/2fbb9ba0-7eb3-4252-a9cf-8f11276a6346)

it'll automatically add back .csv
![f8908e4a0fec3b1610a2e1b9596c8280](https://github.com/electron/electron/assets/9607577/59dce7f8-e7ec-43a2-886a-9c0b1b402dd1)



While with the Electron dialog, we get this (when defaulting to some-file.csv):
![9f01f45186cf9166dc9db8dd1b901fb4](https://github.com/electron/electron/assets/9607577/ce81945c-4794-4cfa-a7ab-b675a8ec59b3)

Changing the name does this:
![6ea53d3f1e07eb84de21b0cf5bb820a0](https://github.com/electron/electron/assets/9607577/7523a9c4-6eaf-46e1-90b2-a0159e22bd48)

```javascript
{
canceled: false,
filePath: 'C:\\Users\\Vincent\\Downloads\\i-wanted-some-other-name'
}
```
Repository: flutter
Issue: Add a height object type to AnimatedContainer instead of a integer value
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

### Use case

In the `AnimatedContainer` can not animate height like as a slide up and slide down spoiler content controlled by external button of the widget. The height is only a single integer value, but can not set the automatic height to show entrie content, by example, if the content is dynamic the height is almost dynamic.

In the issue https://github.com/flutter/flutter/issues/28002 @Kartik1607 show a poc using a static height `height: collapsed ? 0 : 100,`, but this require calculate the height of all widgets in each change of the complex content.

### Proposal

Add a option to set the dynamic height like as:

```dart
AnimatedContainer(
    size: WidgetSize.static(height: 100),
    child: ...
);
```

```dart
AnimatedContainer(
    heightData: WidgetSize.AUTO,
    child: ...
);
```

This proposal can be applied for all other widgets like as the single container or a button. The default attrribute can be `WidgetHeight.AUTO` but the user can use other specific values like as:

- `WidgetSize.AUTO`
- `WidgetSize.static(int height, int weight)`

Or use a matrix with a automatic option,or able to animate null values. It is a intuitive situation, by example, in CSS the animated height can be applied to `auto` and `0` and no set (null) value.
Repository: go
Issue: go test -short ./...: unrecognized failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- repo == "tools" && section == "go test -short ./..." && test == ""
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/a9aa23e2d163e23ef1c1f6f24c17d1b0ca84333e)):



— [watchflakes](https://go.dev/wiki/Watchflakes)