sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: The results of run_mae.py pre-training were abnormal
Labels: Good Second Issue

### System Info

- `transformers` version: 4.39.0.dev0
- Platform: Linux-5.10.0-60.18.0.50.oe2203.x86_64-x86_64-with-glibc2.34
- Python version: 3.9.18
- Huggingface_hub version: 0.21.3
- Safetensors version: 0.4.2
- Accelerate version: 0.27.2
- Accelerate config:    not found
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- Tensorflow version (GPU?): not installed (NA)
- 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?

@NielsRogge.

### Information

- [X] The official example scripts
- [ ] 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. ViT_MAE_visualization_demo: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/ViTMAE/ViT_MAE_visualization_demo.ipynb
2. run_mae.py: https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-pretraining

This is the result of loading the pre-trained model `facebook/vit-mae-huge` directly from huggingface.
![image](https://github.com/huggingface/transformers/assets/96508996/7ef67f11-c796-42ec-97a0-baa9101ae2fb)

This is the result of my continued pre_training using `facebook/vit-mae-huge`
![image](https://github.com/huggingface/transformers/assets/96508996/8e89d48c-2eb8-4bbd-8c15-dec6875f22e3)


I don't know why it's getting worse，The loss is decreasing from loss=1.7 at the beginning to loss=0.13. 

### Expected behavior

a
Repository: ollama
Issue: Improve error messages for missing arguments
Labels: bug

# Background
While I am using `ollama show MODEL` command, I didn't know it need a `MODEL name` as args. 
So I'm just typing `ollama show`, it will show message as below.

``` bash
> ollama show
Error: accepts 1 arg(s), received 0
```

Until I use `ollama show --help`, it shows more friendly usage.


# Motivation
More friendly error message or friendly usage.


# Proposal

I think the upper error caused by this code.

https://github.com/ollama/ollama/blob/21347e1ed67a4ef36abc11bf314e90eaba9a0dc4/cmd/cmd.go#L851

After commenting out this line of code, the result of recompilation is much clearer.

``` bash
> ollama show
Error: missing model name
```
Repository: PowerToys
Issue: Environment variables profile allows duplication of duplicates
Labels: Issue-Bug,Needs-Triage,Product-Environment Variables

### Microsoft PowerToys version

0.77.0

### Installation method

WinGet

### Running as admin

No

### Area(s) with issue?

Environment Variables

### Steps to reproduce

Make a profile and pick an existing variable
![image](https://github.com/microsoft/PowerToys/assets/43612965/7b3ea1d5-f27a-4a0e-822a-b80392bc5a8d)

Turn on the profile:
![image](https://github.com/microsoft/PowerToys/assets/43612965/a2ab8331-0cca-4620-8f68-99c7096ba43a)

Edit profile and add the duplicate variable from the profile:
![image](https://github.com/microsoft/PowerToys/assets/43612965/9602a0be-496e-4306-9f3e-81ec9253a1c0)

A duplicate of the duplicate has now been made:
![image](https://github.com/microsoft/PowerToys/assets/43612965/b85a7f2f-c87b-42d8-86e6-0b0fafda15a7)

Delete or turn off the profile, will leave the first duplicate behind:
![image](https://github.com/microsoft/PowerToys/assets/43612965/3ee43edd-df84-4b1a-93ed-574d444d6305)


### ✔️ Expected Behavior

All variables made by a profile are cleaned up and removed on deletion.
It might be a good idea not to let a profile add its own duplicate variables.

### ❌ Actual Behavior

When making a profile I can add temporary duplicate variables to the profile that created the profile.
When deleting the profile it does not clean up all its variables.

### Other Software

_No response_
Repository: ui
Issue: [Bug][Solution]: Tabs are missing orientation css behavior
Labels: bug

### Describe the bug

When changing the orientation of the Tabs elements at root level (a radix feature prop), the UI doesn't update.

PLEASE update the component code- notice the data-[orientation=vertical]: in the tailwind classNames

```ts
"use client";

import * as React from "react";
import * as TabsPrimitive from "@radix-ui/react-tabs";

import { cn } from "@/lib/utils";

const Tabs = TabsPrimitive.Root;

const TabsList = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.List>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.List
    ref={ref}
    className={cn(
      "inline-flex h-10 items-center justify-center rounded-md border bg-muted p-1 text-muted-foreground data-[orientation=vertical]:flex data-[orientation=vertical]:h-fit data-[orientation=vertical]:flex-col data-[orientation=vertical]:justify-start data-[orientation=vertical]:gap-4",
      className,
    )}
    {...props}
  />
));
TabsList.displayName = TabsPrimitive.List.displayName;

const TabsTrigger = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.Trigger
    ref={ref}
    className={cn(
      "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[orientation=vertical]:justify-start data-[state=active]:bg-background data-[state=active]:text-secondary-foreground data-[state=active]:shadow-sm",
      className,
    )}
    {...props}
  />
));
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;

const TabsContent = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.Content>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.Content
    ref={ref}
    className={cn(
      "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[orientation=vertical]:mt-0",
      className,
    )}
    {...props}
  />
));
TabsContent.displayName = TabsPrimitive.Content.displayName;

export { Tabs, TabsList, TabsTrigger, TabsContent };

```

### Affected component/components

Tabs

### How to reproduce

add radix prop orientation="vertical" to root <Tab></Tab>

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
not relevant
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: stable-diffusion-webui
Issue: [Bug]: txt2video won't generate videos
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

Clean installation to 1.8 won't allow generating videos in txt2video tab (modelscope, zeroscope). Clicking 'generate' will result in just changing to grey buttons to 'interrupt' and 'skip', but no calculation happening in webUI or terminal. Reverting to 1.7 fixed the issue for now.

### Steps to reproduce the problem

1. clean install automatic1111 
2. add extension txt2video
3. generate video in txt2video tab (either txt2vid or vid2vid)

### What should have happened?

produce video

### What browsers do you use to access the UI ?

Mozilla Firefox, Brave, Microsoft Edge

### Sysinfo

[sysinfo-2024-03-03-16-49.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14473783/sysinfo-2024-03-03-16-49.json)


### Console logs

```Shell
venv "D:\stable_diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --api --xformers --autolaunch
Style database not found: D:\stable_diffusion\stable-diffusion-webui\styles.csv
Loading weights [6ce0161689] from D:\stable_diffusion\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
2024-03-03 11:52:33,327 - AnimateDiff - INFO - Injecting LCM to UI.
2024-03-03 11:52:33,455 - AnimateDiff - INFO - Hacking i2i-batch.
D:\stable_diffusion\stable-diffusion-webui\extensions\sd-webui-text2video\scripts\text2vid.py:48: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row(elem_id='t2v-core').style(equal_height=False, variant='compact'):
Creating model from config: D:\stable_diffusion\stable-diffusion-webui\configs\v1-inference.yaml
```


### Additional information

console log is for 1.7. i wrote this bug report after reverting back from 1.8
Repository: TypeScript
Issue: Class marked as unused when used in a static block
Labels: Bug,Help Wanted

### 🔎 Search Terms

class unused static field block

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.5.0-dev.20240303#code/DYUwLgBAQsCu4AsD2SwBEQDcCWBjEA+rgE4gCGYIA3ALABQuwZAzs9HIiulniBAN70IEAMTYAJgEIAXBGZhi2AHYBzWnSFywFPKLLBgSAO4BhJEvnFYuSAF4IAM33Nq9TQAdFmCn1znL1mBIxAAUAJQCmsLYDhAhkjDwYMioGDj4AHQi+oam-gqBEYJ0wqUQycTGEEogRhAAosSVoQBEAJpIsBC4ZEpKqBDK8r1g2D7lCNhsjCxs4tikNsAAni1h6mUAvprbGiVaOriR+8KJnKk8+ESk4-YhErKWyioRtgB8x2WnHMlcabxZHLGMwWAo2CD2AquE6lPygiDiS58ew1OpnX4XdIgcIbL7olLcLGAgzA-JWcH2JzAFy4sqIolicQQwbiWmlUhgWDEJQIpFsza43aaFTgFnhT7s8BcnnJKZZCSC+hCuigSBkZkAJnU9HxfyR13IlBCLTIZDW2roIAAHu5gpB+JsgA

### 💻 Code

```ts
let BluethootDevice_create;
class BluethootDevice {
  #id!: string;

  static #allowConstruct = false;

  private constructor() {
    if (!BluethootDevice.#allowConstruct) {
      throw new Error("You cannot instantiate this class directly");
    }
  }

  static {
    BluethootDevice_create = (id: string) => {
      BluethootDevice.#allowConstruct = true;
      const device = new BluethootDevice();
      BluethootDevice.#allowConstruct = false;
      device.#id = id;
      return device;
    };
  }

  get id() {
    return this.#id;
  }
}

let a = 2;

BluethootDevice_create("aa");

export {}
```


### 🙁 Actual behavior

The class `BluethootDevice` is marked as unused, but it's used by the `BluethootDevice_create` function

### 🙂 Expected behavior

`BluethootDevice` should not be marked as unused

### Additional information about the issue

_No response_
Repository: godot
Issue: TAA causes jittering with "Advanced Post-Processing"
Labels: bug,topic:rendering,topic:3d

### Tested versions

occurred in ver 4.2.1 [b09f793f5] .


### System information

Linux Ubuntu 21 - Godot 4.2.1 stable

### Issue description

I tried making a post processing effect that needs to read the z buffer, I followed [this tutorial](https://docs.godotengine.org/en/stable/tutorials/shaders/advanced_postprocessing.html?highlight=full%20screen#full-screen-quad) from the docs.
and using that along Temporal AA causes jittering.

https://github.com/godotengine/godot/assets/79392031/9ff759d9-bf88-4ed7-a38e-78d267bb2d6f

here's what it looks like with FXAA : 


https://github.com/godotengine/godot/assets/79392031/6986d868-84ec-4950-a128-f886dd0e376f


### Steps to reproduce

enable TAA from the project settings.
then follow the Advanced Post-Processing tutorial from the docs.

### Minimal reproduction project (MRP)

N/A
Repository: storybook
Issue: [Bug]: Vite CJS warning still present in v8 RC
Labels: bug,builder-vite,sev:S3

### Describe the bug

Using Vite 5 with Storybook 8 RC produces the following warning:
```
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details
```

According to #24333 this was supposed to be fixed with v8.
As a RC has been released, I would assume this should have been fixed by now.

### To Reproduce

https://github.com/dan-mba/react-svg-components/tree/sb-8

### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.11.1/bin/yarn
    npm: 10.4.0 - ~/.nvm/versions/node/v20.11.1/bin/npm <----- active
    pnpm: 8.7.0 - ~/.nvm/versions/node/v20.11.1/bin/pnpm
  Browsers:
    Chrome: 122.0.6261.94
  npmPackages:
    @storybook/addon-essentials: ^8.0.0-rc.1 => 8.0.0-rc.1
    @storybook/react: ^8.0.0-rc.1 => 8.0.0-rc.1
    @storybook/react-vite: ^8.0.0-rc.1 => 8.0.0-rc.1
    eslint-plugin-storybook: ^0.8.0 => 0.8.0
    storybook: ^8.0.0-rc.1 => 8.0.0-rc.1
```


### Additional context

_No response_
Repository: material-ui
Issue: [joy-ui] Add Spin component
Labels: waiting for 👍,package: joy-ui

### Summary

A spinner for displaying loading state of a page or a section or a suspense.

**When To Use**
When a portion of the page is awaiting asynchronous data or undergoing a rendering process, incorporating a well-designed loading animation can significantly ease user anticipation and enhance their experience.

### Examples

<Spin><div>data</div></Spin>

### Motivation

_No response_

**Search keywords**: Loading
Repository: tauri
Issue: [feat] Menu event handler directly on MenuItemBuilder
Labels: type: feature request

### Describe the problem

Building complex menu means complex `on_menu_event`, keeping track of event names, etc.

### Describe the solution you'd like

Build the event handler directly when creating a menu item. Something like:

```rs
let view_menu = SubmenuBuilder::new(app_handle, "View")
    .item(
        &MenuItemBuilder::new("Jump to playing track")
            .id(MenuId::new("jump_to_playing_track"))
            .accelerator("CmdOrCtrl+T")
            .handler(|app_handler| { // HERE (triggered on click + accelearator)
                app_handler.get_webview_window("main").unwrap().emit("hey_yah")
            })
            .build(app_handle)
            .unwrap(),
    )
    .build()
    .unwrap();
```


### Alternatives considered

none.

### Additional context

_No response_
Repository: rust
Issue: ABA-problem with pointer provenance in lockless queues
Labels: P-medium,I-unsound,T-libs,A-atomic

Both lockless queue implementations inside `std` for `Once` and `RwLock` suffer from the ABA problem, resulting in unsoundness.

In both cases, the enqueue operation roughly looks like the following:
```rust
struct Node {
    next: *mut Node,
}

struct Queue {
    state: AtomicPtr<Node>,
}

let mut state = queue.state.load();
loop {
    node.next = to_node(state); // Some pointer masking
    let next = to_state(node); // Some bittagging
    match state.compare_exchange(state, next) {
        Ok(_) => break,
        Err(new) => state = next,
    }
}
```
This code is problematic, because it allows the following to occur:
1. Thread 1: Append node 1 to the queue.
2. Thread 2: Load the state (a pointer to node 1) and store it as the `next` pointer of node 2.
3. Thread 1: Remove node 1 from the queue and deallocate it/modify it.
4. Thread 1: Create node 3 at the same address as node 1 and append it to the queue.
5. Thread 2: Perform the CAS. Because the state has the same bits, this succeeds.

Now, any traversal operation on the queue that attempts to dereference the `next` pointer of node 2 exhibits UB, as the pointer, while having the right address, only has provenance to node 1, which is no longer valid, but may not access node 3.

This is of little practical concern, as it is extremely unlikely that LLVM will perform a problematic optimization; but nevertheless the code is unsound, both under stacked-borrows and LLVM's semantics.

This is the cause of #121626, where this exact situation led to a (correct) UB report from miri.

@rustbot label +T-libs +I-unsound

# Possible solutions

The only solution I see at the moment is to use fuzzy provenance and use `from_exposed_provenance` inside the traversal operation to make miri/LLVM guess the right provenance.
Repository: vscode
Issue: `Vscode.Window.onDidCloseTerminal` not invoked even terminal is halted in a specific case
Labels: bug,api,confirmation-pending,terminal-process

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.86.2 and 1.87.0
- OS Version: Ubuntu 20.02 on top of WSL2

This happened while preparing a patch for a bug in VSCode IDE plugin for the OCaml programming language.

The user environment of OCaml is pretty similar to Python in the sense that a user wants to open an interpreter window (called REPL) , run some codes on it, and watch the output.

A long-standing bug in VSCode OCaml plugin is that in some cases, after its interpreter terminal window is closed once, it cannot be reopened (https://github.com/ocamllabs/vscode-ocaml-platform/issues/935).
It seems this issue is related to the observed fact that, even if a REPL terminal is closed by a user using Ctrl+D, `Vscode.Window.onDidCloseTerminal` is not being invoked for some reason.

`Vscode.Window.onDidCloseTerminal` is not invoked when the VSCode OCaml plugin is installed at a virtual machine of Ubuntu 20.02 in WSL2 & VSCode is remotely connected to the virtual machine.

`Vscode.Window.onDidCloseTerminal` is invoked when everything is running locally, specifically MacOS.

https://github.com/ocamllabs/vscode-ocaml-platform/pull/1398 has a relevant patch & discussion as well.

Steps to Reproduce:

I can provide its reproduce, but this might be a bit lengthy.
I wonder whether this is a known issue & what is a typical solution for this.
Repository: go
Issue: cmd/go: `go get` should give a clearer error with `GO111MODULE=off`
Labels: NeedsFix,GoCommand,BadErrorMessage

### Go version

6f5d77454e31be8af11a7e2bcda36d200fda07c5

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/iant/.cache/go-build'
GOENV='/home/iant/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/iant/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/iant/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org'
GOROOT='/home/iant/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/iant/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.23-6f5d77454e Sat Mar 2 14:01:52 2024 +0000'
GODEBUG=''
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/iant/go/src/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3030176309=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

```
> GO111MODULE=off go get -v go.wit.com/apps/test
go: modules disabled by GO111MODULE=off; see 'go help modules'
> go get -v go.wit.com/apps/test
go: module go.wit.com/apps/test: reading https://proxy.golang.org/go.wit.com/apps/test/@v/list: 404 Not Found
	server response: not found: go.wit.com/apps/test@latest: unrecognized import path "go.wit.com/apps/test": parse https://go.wit.com/apps/test?go-get=1: no go-import meta tags ()
```

### What did you see happen?

See above.

### What did you expect to see?

I expect to see a similar error message whether `GO111MODULES` is specified or not.  The setting of that environment variable seems irrelevant for whether the Go package exists.
Repository: transformers
Issue: ReduceLROnPlateau version of get_constant_schedule_with_warmup
Labels: Feature request

### Feature request

There is a very useful scheduler for people too lazy to code up the sequential scheduler pieces from pytorch:

https://huggingface.co/docs/transformers/en/main_classes/optimizer_schedules#transformers.get_constant_schedule_with_warmup

It would be convenient to have a version of this where the long flat section is actually a ReduceLROnPlateau:

https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.ReduceLROnPlateau.html



### Motivation

I'm really lazy and would love to have this piece of work done for me, plus there would probably be other people who find it useful

### Your contribution

Could do, if it's a feature other people would like to see but no one is eager to pick up the gauntlet
Repository: angular
Issue: Support `protected` for input(), output(), and model().
Labels: area: core,cross-cutting: signals

### Description

Hello;
In Angular 17, `signals `are awesome. Now , I use `signal`, `input `and `model `in everywhere. 
`model` signal has both of variable and `input` properties. If we use with `public ` then it would be a component parameter. If we use with `protected ` then it wouldn't as an input. Can we add a option (like as `public model = model<string>.protected()`) for no `ìnput` or `output` parameter. Sometimes we needs access from other class (with directive, or dynamic component `createComponent`) but we wants not `input `or `output`

### Proposed solution

`public model = model.protected<string>()` -> Only two-way binding
`public model = model.protectedInput<string>()` -> two-way binding + @Input()
`public model = model.protectedOutput<string>()` -> two-way binding + @Output()