sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tauri
Issue: [feat] recursive option for fileDropEnabled
Labels: type: feature request

### Describe the problem

It would be nice to have a `recursive` option for `fileDropEnabled`, so that it would work the same that `dialog.open` works with the `recursive` option. My application needs to access files inside sub directories in the provided folder, but dropped items only seem to add the main folder and first level of files to the fs scope.

### Describe the solution you'd like

I'm not quite sure how this option would be implemented, an additional configuration setting of `fileDropRecursive` in `tauri.conf.json` could be added.

**e.g.**
```json5
{
  "tauri": {
    // ...
    "windows": [
      {
        "title": "Tauri App",
        "width": 1600,
        "height": 900,
        "resizable": true,
        "fullscreen": false,
        "fileDropRecursive": true
      }
    ]
  }
}
```

### Alternatives considered

I'm currently forced to have a global fs scope _(e.g. `["**"]`)_, which is something I'd very much like to avoid. I tried to figure out how to extend the fs scope through Rust, but even after hours of scouring through GitHub issues/discussions, the Tauri website and the Rust docs for Tauri _(even tried ChatGPT and Bing Chat... I got desperate...)_, I wasn't able to figure out how to do it...

Tauri is my first interaction with Rust and it's quite hard figuring out the Rust docs when no examples are provided for how to use the methods listed in the documentation, on the other hand the provided JavaScript/TypeScript documentation shows nice minimal examples on basic usage _(would be nice if the Rust docs had similar examples for Rust beginners like me)_.

Even though I'm able to find the functions I'm suppose to use in Rust using the docs, I have no idea how to use them, everything I've tried just gives me errors _(which is why some minimal examples would be nice)_...

**Example from Rust docs:**
![Screenshot 2023-03-01 033043](https://user-images.githubusercontent.com/11979966/222021754-0b74e028-d994-4d55-8320-d5770caa02dc.png)

Sorry I got a bit of topic here... Simply put, implementing a `fileDropRecursive` configuration setting would be quite helpful and a better solution than having to manually do recursive fs scope addition from the frontend using as Rust command.

### Additional context

_No response_
Repository: HelloGitHub
Issue: 【开源自荐】Imglib：轻量级的 JAVA 图像处理库
Labels: Java 项目

## 推荐项目

- 项目地址：https://github.com/nackily/imglib

- 类别：Java

- 项目标题：轻量级的 Java 图像处理库，致力于简化对图像的常见处理。

- 项目描述：Imglib 是一个易于使用的图像处理库，涵盖了对图像的常见处理，例如创建图像、提取图像、图像处理和拼图拆图等图像操作。

- 亮点：
  - 屏蔽了底层复杂的I/O操作
  - 提供了链式API，编码更加流畅

- 示例代码： 

> 示例一：为用户创建一个 hash 图像，头像点阵设定为 8px\*8px，头像大小为 300px\*300px，并增加一个边距为 20px 的边框
```java
ImagePipes.ofEmptySource()
        .register(new HashImageGenerator.Builder("Imglib")      // hash 图像生成器
                .gridVerticalNum(8)                             // 水平方向的点阵数量
                .bgColor(ColorUtils.of(240, 240, 240))          // 背景色
                .fgColor(ColorUtils.of(50, 150, 50))            // 前景色
                .build())   
        .toThumbnails()                                         // 转换为 Thumbnails
        .addFilter(new HighQualityExpandHandler.Builder()       // 图像无损放大处理器
                .finalWidth(150)                                // 图像的宽度
                .keepAspectRatio(true)                          // 保持长宽比例
                .build())   
        .addFilter(new BorderHandler.Builder()                  // 边框处理器
                .fillColor(ColorUtils.of(240, 240, 240))        // 边框填充色
                .vMargins(15)                                   // 垂直方向的边距
                .hMargins(15)                                   // 水平方向的边距
                .alpha(1.0f)                                    // 边框透明度
                .build())
        .scale(1.0)
        .toFile(".../avatar.png");
```
> 示例二：多个图像文件写入 GIF 文件，每隔 400ms 切换下一帧，并且已设定为重复播放模式
```java
ImagePipes.of("spring.jpg",
            "summer.jpg",
            "winter.jpg",
            "autumn.jpg")
        .toFile(new GifFileEncoder.Builder()
            .filename("seasons.gif")
            .delay(400)
            .repeat(0)
            .build());
```

- 截图：

> 示例一生成的用户头像如下所示：

![avatar](https://user-images.githubusercontent.com/53166668/222028695-ca0d542e-48f4-4b07-826e-8f4c86132a00.png)

> 示例二合成 GIF 前后的图像如下所示：

|                 原始图像列表                 |            合成后的 GIF 文件            |
|:--------------------------------------:|:---------------------------------:|
| ![all_to_merge_slices](https://user-images.githubusercontent.com/53166668/222028791-2b6efe49-fcf4-4457-a71c-677779a791d2.jpg) | ![seasons](https://user-images.githubusercontent.com/53166668/222028907-b1b5fd47-9a6c-49ae-a363-ca314081890d.gif)|
  

- 后续更新计划：在0.3.x版本中计划的内容有
  - 丰富现有的功能
  - 去水印
  - 图像压缩
Repository: storybook
Issue: [Bug]: Can't specify ID for docs
Labels: bug,addon: docs

### Describe the bug

When [providing a custom `id`](https://storybook.js.org/docs/7.0/react/configure/sidebar-and-urls#permalink-to-stories), the given ID only applies to stories. Docs always use the auto-generated ID, be they attached docs (to a component with a custom ID), autodocs (for a component with a custom ID), unattached docs with `<Meta id={...} />` set, etc.

I couldn't find any documentation about the ability to set IDs for _docs_ specifically, so I'm not actually sure if this is a bug or working as designed. But this was possible in SB 6: in general, the docs ID would mirror that of a story with a custom ID. An MDX file could also specify `<Meta id={...} />` to customize the ID (whether or not the file contained stories or was docs-only), but the `id` prop doesn't seem to be present on the `Meta` doc block anymore.

### To Reproduce

https://github.com/joshbolduc/sb7-repro-custom-id

### System

```shell
Environment Info:

  System:
    OS: macOS 13.2.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 18.14.1 - ~/.asdf/installs/nodejs/18.14.1/bin/node
    Yarn: 1.22.19 - ~/.asdf/shims/yarn
    npm: 9.5.0 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Firefox: 109.0.1
    Safari: 16.3
  npmPackages:
    @storybook/addon-essentials: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/addon-interactions: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/addon-links: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/blocks: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/react: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/react-vite: ^7.0.0-beta.54 => 7.0.0-beta.57
    @storybook/testing-library: ^0.0.14-next.1 => 0.0.14-next.1
```


### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: Centos 7 docker 20.10.14, image: ubuntu20.04 - circular import caused core dump
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

When I run:  python3 -u webui.py --listen --port 7860 --xformers
It core dumped.
And I noticed that in modules/sd_vae.py, it imports sd_models, and in modules/sd_models.py it imports sd_vae


### Steps to reproduce the problem

>>> from modules import sd_vae
Segmentation fault (core dumped)


### What should have happened?

Should start normally

### Commit where the problem happens

0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

### What platforms do you use to access the UI ?

Linux

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
python3 -u webui.py --listen --port 7860 --xformers
```


### List of extensions

No

### Console logs

```Shell
root@b3f1e02a2b24:/stable-diffusion-webui# python3 -u webui.py --listen --port 7860 --xformers
Segmentation fault (core dumped)
```


### Additional information

Centos 7 docker 20.10.14, image: ubuntu20.04 with cuda:11.6.0-cudnn8, python 3.10 (installed  via conda )

PS:
If I put these two lines before import sd_vae
  from modules import paths
  import ldm.modules.encoders.modules
Core dump disappeared
Repository: godot
Issue: Setters/Getters don't allow functions with default arguments
Labels: bug,topic:gdscript,regression

### Godot version

4.0-rc6_win64

### System information

Windows 10

### Issue description

I was converting a Godot 3.5 project of mine to Godot 4 and found the following code throws an error:
```gdscript
var dims : set = set_dims

func set_dims(_dims, some_arg=null):
{
    print(some_arg)
    dims = _dims
}
```

> Error: Function "set_dims" cannot be used as setter because of its signature.

I can luckily get the functionality to work with alternative syntax, but it's a bit silly and overly verbose when you have a lot of setters that should otherwise be very simple. It impacts readability quite a bit.

For example, the following:
```gdscript
var dims : set = set_dims
var surface : set = set_surface
var counts : set = set_counts
var bedrock : set = set_bedrock
var size : set = set_size
```
Becomes this:
```gdscript
var dims :
    set(_dims): set_dims(_dims)
var surface :
    set(_surface): set_surface(_surface)
var counts :
    set(_counts): set_counts(_counts)
var bedrock :
    set(_bedrock): set_bedrock(_bedrock)
var size :
    set(_size): set_size(_size)
```

I can't see any particular reason for this not to work, seeing as normal function calls can call functions without overriding default values. I'd probably call this a regression.

I found an issue back from 3.1 beta10, which seems to be when the original functionality was implemented: https://github.com/godotengine/godot/issues/26530

### Steps to reproduce

The sample code from above should do it:
```gdscript
var dims : set = set_dims

func set_dims(_dims, some_arg=null):
{
    print(some_arg)
    dims = _dims
}
```

### Minimal reproduction project

N/A
Repository: stable-diffusion-webui
Issue: [Bug]: Interrogate Clip Won't Work - MAC
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I have installed Stable Diffusion on my Mac. It appears to be working until I attempt to "Interrogate Clip". The Terminal then says the code below. The box then disappears from the UI never completing the prompt. I would appreciate any help.


### Steps to reproduce the problem

I have installed Stable Diffusion on my Mac. It appears to be working until I attempt to "Interrogate Clip". The Terminal then says the code below. The box then disappears from the UI never completing the prompt. I would appreciate any help.

```
To create a public link, set `share=True` in `launch()`.
Downloading: "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth" to /Users/alexan/stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth

100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 855M/855M [09:16<00:00, 1.61MB/s]
load checkpoint from /Users/alexan/stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth
Downloading CLIP categories...
downloading default CLIP interrogate categories: FileExistsError
Traceback (most recent call last):
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 35, in download_default_clip_interrogate_categories
    os.makedirs(tmpdir)
  File "/Users/alexan/opt/anaconda3/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: 'interrogate_tmp'

Error interrogating
Traceback (most recent call last):
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 211, in interrogate
    for name, topn, items in self.categories():
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 62, in categories
    download_default_clip_interrogate_categories(self.content_dir)
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 44, in download_default_clip_interrogate_categories
    os.remove(tmpdir)
PermissionError: [Errno 1] Operation not permitted: 'interrogate_tmp'
```

### What should have happened?

1

### Commit where the problem happens

1

### What platforms do you use to access the UI ?

MacOS

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
.
```
Repository: stable-diffusion-webui
Issue: [Feature Request]: use one image in img2img to control multiple image styles
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Use an image to determine the style of img2img and then add a folder in the controlnet, and spread the style of the above picture to all the pictures in the folder.

### Proposed workflow

1. add a image in img2img
2. add a input folder in controlnet1，controlnet2 and so on
3. choose an output folder
4. generate！


### Additional information

_No response_
Repository: storybook
Issue: [Bug]: Error handling for Vite 2.x
Labels: help wanted,maintenance,has workaround,builder-vite

### Describe the bug

```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @inkline/inkline@3.1.9
npm ERR! Found: vite@2.9.15
npm ERR! node_modules/vite
npm ERR! dev vite@"^2.9.14" from the root project
npm ERR! peer vite@"2.x || 3.x || 4.x" from @preact/preset-vite@2.5.0
npm ERR! node_modules/@preact/preset-vite
npm ERR! peerOptional @preact/preset-vite@"*" from @storybook/builder-vite@7.0.0-beta.55
npm ERR! node_modules/@storybook/builder-vite
npm ERR! dev @storybook/builder-vite@"^7.0.0-beta.55" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from @storybook/builder-vite@7.0.0-beta.55
npm ERR! node_modules/@storybook/builder-vite
npm ERR! dev @storybook/builder-vite@"^7.0.0-beta.55" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/tom/.npm/eresolve-report.txt for a full report.
```

The issue here is the that the project depends on vite@^2.9.14, which isn’t supported by builder-vite. 
- [ ] Catch this error and make a more useful error message
- [ ] Document this limitation in the migration guide

## Workaround
I then ran npm add vite@^4 @vitejs/plugin-vue@^4 before upgrading, and it went through fine.

### To Reproduce

https://github.com/inkline/inkline

### System

_No response_

### Additional context

_No response_
Repository: storybook
Issue: [Bug]: runtime.mjs was preloaded using link preload but not used within a few seconds from the window's load event
Labels: bug,core

### Describe the bug

After migrating and running Storybook, then waiting a couple seconds, I get the following warning in the browser:

> The resource http://localhost:6006/sb-preview/runtime.mjs was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

### To Reproduce

https://github.com/yannbf/mealdrop

### System

_No response_

### Additional context

_No response_
Repository: rust
Issue: Tracking Issue for TIMESPEC_MAX_CAPPED on QNX Neutrino
Labels: T-libs-api,C-tracking-issue,O-neutrino

Review finding of https://github.com/rust-lang/rust/pull/106673 (adding QNX Neutrino support to the standard library):
`TIMESPEC_MAX_CAPPED` is introduced additionally to `TIMESPEC_MAX`. Both are only visible inside the standard library but only `TIMESPEC_MAX_CAPPED` is used. It would make sense to consolidate them.

cc: @gh-tr

@rustbot label +O-neutrino
Repository: puppeteer
Issue: [Feature]: Ability to get platform fonts for a selector.
Labels: feature

### Feature description

CDP supports [getPlatformFontsForNode](https://chromedevtools.github.io/devtools-protocol/tot/CSS/#method-getPlatformFontsForNode) which gets all the rendered fonts for a given node. It will be nice to have this feature in Puppeteer as well.
Repository: PowerToys
Issue: svg preview extremely slow
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

This is not a new feature request, but a request to improve the already available svg explorer preview.
It is exremely slow in rendering a folder with a lot of svg files...
In the past (and still available) i used a freely available extension which did the same job at blazing speed, as it should be.


### Scenario when this would be used?

This explorer extension aims to fill the gap of windows OS not being able to preview a standard format as svg is

### Supporting information

one tool I know about being fast is: https://github.com/tibold/svg-explorer-extension
Repository: stable-diffusion-webui
Issue: [Feature Request]: Use the `huggingface_hub` library for downloading checkpoints from the HF Hub 
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Currently, the model checkpoints from the Hugging Face (HF) Hub are downloaded using the following

https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8/modules/modelloader.py#L62

The HF team provides a separate library called [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/) that lets anyone seamlessly interact with the HF Hub and its files. It comes packed with support for caching as well. So, I was wondering if we should consider refactoring [this](https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8/modules/modelloader.py#L62) with `huggingface_hub`. 




### Proposed workflow

If a user enters, say, `andite/anything-v4.0` (a [repository](https://huggingface.co/andite/anything-v4.0) on the HF Hub), we would automatically download [this checkpoint](https://huggingface.co/andite/anything-v4.0/blob/main/anything-v4.0.ckpt) and cache it. An option for downloading a specific checkpoint can also be added. 

The code for this is relatively quite simple:

```python
import huggingface_hub as hub

repo_id = "andite/anything-v4.0"
filename = "anything-v4.0.ckpt"

file_path = hub.hf_hub_download(repo_id, filename)
```

Here are some number on loading a checkpoint: 

**_Without caching:_**

```
CPU times: user 14.3 s, sys: 14.2 s, total: 28.5 s
Wall time: 1min 59s
```

**_With caching:_**

```bash
CPU times: user 380 ms, sys: 48.7 ms, total: 428 ms
Wall time: 682 ms
```


### Additional information

Cc: @patrickvonplaten
Repository: PowerToys
Issue: PowerToys Rename: Improving handling with many files or nested subfolders
Labels: Needs-Triage

### Description of the new feature / enhancement

PowerToys Rename should better handle situations with large numbers of files / subfolders.

In the instance of a flat hierarchy (no subfolders) Powertoys should initially only load the first few thousand files.
In the instance of deep hierarchies (many nested subfolders/files) Powertoys should intitially only load the first few levels.

A UI element should allow the user to then choose to load more files, with a progress bar to indicate the program is working on it. The other UI elements should not lock up while PowerToys Rename is working.

### Scenario when this would be used?

When loading more than 10,000 files. When changing names that are the top of a hierarchy containing large numbers of subfolders and files.

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: with img2img, if I input a rgba image,  the output is rgba32, and the alpha channel is destroyed with all the value of 255 [Feature Request]: 
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

with img2img, if I input a rgba image,  the output is rgba32, and the alpha channel is destroyed with all the value of 255 

### Proposed workflow

1. Go to .... 
2. Press ....
3. ...
with img2img, if I input a rgba image,  the output is rgba32, and the alpha channel is destroyed with all the value of 255 

### Additional information

with img2img, if I input a rgba image,  the output is rgba32, and the alpha channel is destroyed with all the value of 255
Repository: PowerToys
Issue: Show Screen Ruler on focused display
Labels: Idea-Enhancement,Product-Screen Ruler

### Description of the new feature / enhancement

Open the screen ruler on the focused display, not on the default display.

### Scenario when this would be used?

When a web developer has a second monitor and is using that monitor to test the alignment of elements on his website, it comes in handy when he doesn't have to switch focus to his default display in order to find the "Screen Ruler menu". The user can remain focused on the current display instead of moving their head to switch to the default display.

I think this feature would not only be helpful for web developers but for anyone who uses the Screen Ruler functionality and has at least one extra monitor/display.

### Supporting information

_No response_
Repository: pytorch
Issue: SymInt'ify _gather_sparse_backward
Labels: triaged

When adding the missing sparse_grad parameter support for torch.gather (https://github.com/pytorch/pytorch/issues/95187), it triggers a dynamic shape test error (https://github.com/pytorch/pytorch/blob/9835c93abaf2961c72a8deec16ed9732383fbe0f/test/inductor/test_torchinductor_dynamic_shapes.py#LL43C18-L43C18). 

The problem is the function _gather_sparse_backward at https://github.com/pytorch/pytorch/blob/11f293a74e54fb216952b9b4756df5136659a383/aten/src/ATen/native/TensorAdvancedIndexing.cpp#L2025 needs to be SymInt'ified.