sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Moved code UI is bit busy and full of lines and boxes
Labels: polish,diff-editor

Loving the moved code detection but I think the UI can benefit from some polish. There are very many lines, boxes and intersections of things making it not fit so well into the general more flat look.

### Today (boxes, frames)

<img width="572" alt="Screenshot 2023-06-23 at 09 45 20" src="https://github.com/microsoft/vscode/assets/1794099/3bd61d24-8250-47f3-b68c-b1251d3a9a11">


### Idea (no extra box, a strong'ish connector)

Not shown because I lack skills is an idea to let the color of the vertical connecting line be a gradient from deleted to inserted color

<img width="572" alt="Screenshot 2023-06-23 at 09 45 20" src="https://github.com/microsoft/vscode/assets/1794099/411cac24-df43-4a07-9fda-1bb43200e6e5">
Repository: godot
Issue: [TRACKER] IK/ModificationStack2D issues
Labels: tracker,topic:animation,topic:2d

### Issue description

This is a tracker for a problem with ModificationStack2D. 

Backlink to the tracker tracker. https://github.com/orgs/godotengine/projects/58/views/3

```[tasklist]
- [ ] https://github.com/godotengine/godot/issues/75820
- [ ] https://github.com/godotengine/godot/issues/75337
- [ ] https://github.com/godotengine/godot/issues/75224
- [ ] https://github.com/godotengine/godot/issues/73888
- [ ] https://github.com/godotengine/godot/issues/73242
```
Repository: opencv
Issue: Opencv Exceptions disable option
Labels: duplicate

### System Information

OPENCV version 4.7.0-dev
Host platform OS: Ubuntu 22.10
Cross Compiler used for compilation - tiarmclang compiler
Target Platform: ARM Cortex-R5 CPU, AM273x High performance R5F CPU MCU from Texas Instruments [TRM](https://www.ti.com/lit/ug/spruiu0c/spruiu0c.pdf?ts=1681297045683)


### Detailed description

Some of the compilers like tiarmclang doesn't have exception handling support out of the box, due to which when I compiled my opencv I am getting this errors

```
/home/kowshik/Desktop/opencv_porting/opencv_with_tiarmclang/modules/core/src/async.cpp:323:13: error: cannot use 'throw' with exceptions disabled
            throw cv_exception;
            ^
1 error generated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:173: modules/core/CMakeFiles/opencv_core.dir/src/async.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1023: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
```
To enable this it would be great if there is a compilation macro/flag to enable/disable global exception handlers.

### Steps to reproduce

Compiler opencv with armclang compilers.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: create-react-app
Issue: Support workerIdleMemoryLimit as a Jest configuration option
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

Jest has [memory leaks on versions of Node > 16.11.0+](https://github.com/jestjs/jest/issues/11956) which in large projects cause a significant slow down when running the tests. To mitigate this Jest 29 added the `workerIdleMemoryLimit` configuration option to help Jest restart and stop endlessly consuming memory. Unfortunately you can't set this due to the restriction on supported Jest keys without ejecting:

```
Out of the box, Create React App only supports overriding these Jest options:

  • clearMocks
  • collectCoverageFrom
  • coveragePathIgnorePatterns
  • coverageReporters
  • coverageThreshold
  • displayName
  • extraGlobals
  • globalSetup
  • globalTeardown
  • moduleNameMapper
  • resetMocks
  • resetModules
  • restoreMocks
  • snapshotSerializers
  • testMatch
  • transform
  • transformIgnorePatterns
  • watchPathIgnorePatterns.

These options in your package.json Jest configuration are not currently supported by Create React App:

  • workerIdleMemoryLimit

If you wish to override other Jest options, you need to eject from the default setup. You can do so by running npm run eject but remember that this is a one-way operation. You may also file an issue with Create React App to discuss supporting more options out of the box.
```

### Describe the solution you'd like

It would be incredibly helpful if we could set the `workerIdleMemoryLimit` and pass that through to Jest so we don't need to eject, as there is no CLI option avaliable.

### Describe alternatives you've considered

- Looking for a CLI option I could pass directly through instead
- Ejecting, but I don't want to really...
Repository: godot
Issue: Autocomplete of enum values inside Dictionary not working
Labels: bug,topic:gdscript,topic:editor

### Godot version

4.1.beta.3

### System information

Windows 11

### Issue description

Autocomplete for Enum values not listing inside dictionary context but listing values outside dictionary context.

**Failing here:**
![image](https://github.com/godotengine/godot/assets/84369217/3c109cc6-4ee3-43ad-bd02-8a464c20d73e)


**Working here:**
![image](https://github.com/godotengine/godot/assets/84369217/0151c986-89fc-4c15-91cf-0fa52378f823)

Note this also fails within the method itself also

### Steps to reproduce

Create an Enum with name in a scripte.g., 
```gdscript
enum Items{ A, B, C}
```
Create a dictionary:
```gdscript
var dict = {
}
```
Try typing the Enum as the key of the dictionary
```gdscript
var dict = {
Items.
}
```

### Minimal reproduction project

N.A
Repository: stable-diffusion-webui
Issue: [Feature Request]: Keep original file names for img2img batches
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 ?

Hello,

I couldn't find it in the settings or in the wiki documentation. Wiki custom images filename has no pattern for original filename.
Is there a setting I haven't seen to keep the original filenames after batch processing in img2img?

I've seen that this option exists for the extra menu and upscales.
Repository: stable-diffusion-webui
Issue: [Feature Request]: Multiple preview Images for "Extra Networks"
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 ?

It would be really helpful if it was possible to add multiple Preview Images inside the extra networks. 
Just as an example: Inside the "Checkpoints" i usually use the same Promt to have some kind of Benchmark for the style to make it more comparable. While this is super helpful, I often think that I miss out on the strengths of certain Checkpoints as they are maybe trained on different Keywords.
Or just seeing multiple Preview Images would really help to decide which Checkpoint, LoRa, etc. I should be using.

So instead of just “replacing preview image” on hover, it could be 2 options. Add and delete. If more than 1 Image is added, the preview image will just turn into a simple “Slider”.

### Proposed workflow

1. Go to "Show/hide Extra Networks"
2. Go to one of the Options: Textual Inversion, Hypernetworks, Checkpoints, ... etc.
3. Hover one of the Items 
4. Click on a + to Add a preview image
5. Make the Preview Image into a Slider if there is more than 1
6. Click on garbage bin to remove preview image.


### Additional information

_No response_
Repository: PowerToys
Issue: SideScroller
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

I found an extension for VisualStudio 2022 named 'SideScroller' and I think it would be a cool little feature to add to PowerToys.
It works with holding the 'Shift'-Key and scrolling up or down to go left and right, if it is possible in the current application.

### Scenario when this would be used?

I think it would be a cool feature for websites, but also other applications where you would need to use the horizontal scrollbar.

### Supporting information

_No response_
Repository: yt-dlp
Issue: add `--format none` as an alias for `--skip-download`
Labels: enhancement,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.06.22** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

expected:

let me use

```
yt-dlp --format none
```

instead of

```
yt-dlp --skip-download
```

`--format none` is the opposite of `--format all` (Select all formats separately)


### Provide verbose output that clearly demonstrates the problem

- [ ] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: rust
Issue: hint to consider dereferencing instead of mutably borrowing an immutable variable
Labels: A-diagnostics,T-compiler

### Code

```Rust
let a = &mut 0;
let b = 1;
let r = &b;
let z = a < b;

println!("{r}");
```


### Current output

```Shell
error[E0308]: mismatched types
 --> src/main.rs:5:13
  |
5 | let z = a < b;
  |             ^ expected `&mut _`, found integer
  |
  = note: expected mutable reference `&mut _`
                          found type `{integer}`
help: consider mutably borrowing here
  |
5 | let z = a < &mut b;
  |             ++++

For more information about this error, try `rustc --explain E0308`.
```


### Desired output

```Shell
something along the lines of:

let z = a < b;
        ^ expected `integer`, found &mut _

help: consider dereferencing here
  |
5 | let z = *a < b;
  |         +

For more information about this error, try `rustc --explain E0308`.
```


### Rationale and extra context

rustc should not hint to mutably borrow an immutable variable `b` (or also tell to make it mutable, but this does not work if `b` is borrowed), it should hint to dereference `a` (`*a < b`) or convert `a` to an immutable reference and reference `b` (`&*a < &b`)

### Other cases

_No response_

### Anything else?

the same message with stable, beta and nightly, only stable doesnt show where to insert `&mut`
Repository: PowerToys
Issue: Can you support powertoys run fuzzy search for local files and support various file formats.
Labels: Needs-Triage

### Description of the new feature / enhancement

Run powertoys run and enter a fuzzy file name to search for matching files.(eg: everything and listary clients)

### Scenario when this would be used?

When there are a lot of local files and you don't know where they are, it's faster to use powertoys run to fuzzy search them directly.

### Supporting information

_No response_
Repository: opencv
Issue: grabcut example not working 
Labels: incomplete

### Describe the doc issue

I am unable to run the example for grabcut mentioned in the opencv python documentation:

[grabcut](https://docs.opencv.org/4.x/d8/d83/tutorial_py_grabcut.html)

I have an image named 'messi.png'. For sanity testing I have taken the mask image also to be 'messi.png' in b/w.

```
import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
img = cv.imread('messi.jpg')
assert img is not None, "file could not be read, check with os.path.exists()"
mask = np.zeros(img.shape[:2],np.uint8)
bgdModel = np.zeros((1,65),np.float64)
fgdModel = np.zeros((1,65),np.float64)
newmask = cv.imread('messi.jpg', cv.IMREAD_GRAYSCALE)
assert newmask is not None, "file could not be read, check with os.path.exists()"
# wherever it is marked white (sure foreground), change mask=1
# wherever it is marked black (sure background), change mask=0
mask[newmask == 0] = 0
mask[newmask == 255] = 1
_ = cv.grabCut(img,mask,None,bgdModel,fgdModel,5,cv.GC_INIT_WITH_MASK)
mask = np.where((mask==2)|(mask==0),0,1).astype('uint8')
img = img*mask[:,:,np.newaxis]
plt.imshow(img),plt.colorbar(),plt.show()
```

I am getting the following error:

```
Traceback (most recent call last):
File “mask.py”, line 15, in
_ = cv.grabCut(img,mask,None,bgdModel,fgdModel,5,cv.GC_INIT_WITH_MASK)
cv2.error: OpenCV(3.4.2) /opt/concourse/worker/volumes/live/9523d527-1b9e-48e0-7ed0-a36adde286f0/volume/opencv-suite_1535558719691/work/modules/imgproc/src/grabcut.cpp:380: error: (-215:Assertion failed) !bgdSamples.empty() && !fgdSamples.empty() in function ‘initGMMs
```

Some problem with the doc?


### Fix suggestion

_No response_
Repository: godot
Issue: `assert` should only evaluate message argument on failure
Labels: enhancement,topic:gdscript,breaks compat,performance

### Godot version

4.0.3.stable

### System information

Ubuntu 22.04.2 LTS

### Issue description

`assert` evaluates the message argument regardless of the output of the condition.

It should instead only evaluate the message when the condition is false.
This would allow complicated messages on assertion failures without impacting performance even in debug mode. Such a message may be very large and/or expensive to generate.

Since `assert` is executed in debug mode only, both condition and message should be free from side-effects. Evaluating them or not should already make no difference in terms of behavior.

With that said, I have only glanced at the gdscript VM and am unclear how difficult this would be to change.



### Steps to reproduce

I have encountered this while chasing down an occasional latency spike. This ended up being due to an assertion message dumping a very large datastructure in a human-readable format. This was taking approximately 300ms within my `_physics_process`.

Please find a reproducible minimal example below. This is similar to what I used: a basic message containing the object's custom string representation. This is the script attached to a single Node2D which is the root of the scene.

Despite the assertion succeeding, the call still evaluates the very expensive message.


### Minimal reproduction project

```
extends Node2D

func _process(_delta):
	var obj: Custom = Custom.new()
	var start = Time.get_ticks_msec()
	
	assert(true, "failed on obj: %s" % obj)
	var end = Time.get_ticks_msec()
	print_verbose("Time: %dms" % (end - start))
	
class Custom:
	extends RefCounted
	func _to_string() -> String:
		_expensive_func()
		return "foo"

	func _expensive_func():
		var byte_arr: PackedByteArray = []
		byte_arr.resize(10000)
		byte_arr.fill(42)
		for i in range(20000):
			var ctx = HashingContext.new()
			ctx.start(HashingContext.HASH_SHA256)
			ctx.update(byte_arr)
			ctx.finish()
```
Repository: storybook
Issue: [Bug]: Handling of Enums (Storybook 7)
Labels: bug,needs triage

### Describe the bug

I have this Enum for my TextSizes:

```
export enum TextSize {
  small = 'text--size-small',
  medium = 'text--size-medium',
  large = 'text--size-large',
  extralarge = 'text--size-x-large',
}
```

When declaring Enums, its also a Best Practice to use them with a purpose:

```
<Text size={TextSize.large}></Text>
```

But for some reason Storybook doesn't seem to be able to handle the Enum, as Control Values are always set as strings in the "Copy Code" Area:
![image](https://github.com/storybookjs/storybook/assets/93798668/87e87574-d9e3-48b7-ba8b-7b568c31b799)


This is my Text.stories.tsx to show the possible Enum Options:

```
const meta = {
  title: 'Foundations/Text',
  component: Text,
  tags: ['autodocs'],
  argTypes: {
    size: {
      control: 'select',
      options: Object.values(TextSize),
    },
    ...argTypesForIconInText,
  },
} satisfies Meta<typeof Text>;
```

Basically what i would like, or am expecting, is that Storybook is capable of changing the output of the control to be `EnumName.EnumKey`... in my case:

```
<Text size={TextSize.large}></Text>
```

Or am I missing something here that Storybook is already capable of doing...?



### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: node
Issue: Possible bug in node:internal/url getpathfromurlwin32
Labels: url,whatwg-url

### Version

16.15.1

### Platform

Microsoft Windows NT 10.0.19045.0 x64

### Subsystem

url

### What steps will reproduce the bug?

This might be a bug in v8 rather than node's `url` module, but I'm reporting here first since I'm not sufficiently knowledgeable in C++ or with the URL spec to determine if the bug is in v8 or where it is.

On networked filesystems on Windows, v8's `Profiler.takePreciseCoverage` ends up returning URLs that are of the form `file:////some-server-cifs/<path-to-js-file>`. While the URL appears to have 'too many' slashes, Chrome and Windows Explorer are perfectly happy to resolve this. However, node throws some errors.

On Windows, create a file, `test.mjs`, that contains:
```js
import { fileURLToPath } from 'url'

const url = 'file:////some-server-cifs/vmgr/17/testdir/foo.txt'
const p = fileURLToPath(url)
```

Now run `node test.mjs`.

### How often does it reproduce? Is there a required condition?

The code provided will reproduce this issue every time on Windows 

### What is the expected behavior? Why is that the expected behavior?

I would expect either v8 to return valid URLs or NodeJS' `url.fileURLToPath()` to sanitize the "slightly malformed" URL and parse it correctly just like Chrome and Windows Explorer do.

### What do you see instead?

```
node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
    at new NodeError (node:internal/errors:372:5)
    at getPathFromURLWin32 (node:internal/url:1393:11)
    at fileURLToPath (node:internal/url:1423:22)
    at file:///S:/test.mjs:4:11
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:61:12) {
  code: 'ERR_INVALID_FILE_URL_PATH'
}
```

### Additional information

If it is deemed that there is some kind of bug in NodeJS regarding this, I'm hoping `url.fileURLToPath` can handle this gracefully.

FWIW, python3 is also perfectly happy to handle this URL

```python
from urllib import request
data = request.urlopen('file:////some-server-cifs/vmgr/17/testdir/foo.txt')
for line in data:
    print(line)

```
Repository: PowerToys
Issue: Add shortcut to activate/deactivate keyboard manager
Labels: Needs-Triage

### Description of the new feature / enhancement

Add an activation shortcut for Keyboard Manager that would toggle between activate and deactivate.

### Scenario when this would be used?

I have a wireless keyboard for my laptop that was designed for macs.  I use keyboard manager to swap a couple of keys to make it more usable for windows.   But when I roam with laptop only, I want to deactivate keyboard manager so that my laptop keys behave normally.    This currently requires right click of powertoys, click settings, navigate to keyboard manager and activate/deactivate.     A shortcut to toggle activation would be very welcome!

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: Broken extensions section and errors in the console after updating extensions and clicking the "apply and restart UI" button
Labels: bug-report

![Снимок экрана 2023-06-23 165822](https://github.com/AUTOMATIC1111/stable-diffusion-webui-extensions/assets/136346091/9c027d00-988e-4a99-a826-751dc23454f9)
Console logs:
Traceback (most recent call last):
  File "G:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "G:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "G:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1159, in preprocess_data
    self.validate_inputs(fn_index, inputs)
  File "G:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1146, in validate_inputs
    raise ValueError(
ValueError: An event handler didn't receive enough input values (needed: 2, got: 1).
Check if the event handler calls a Javascript function, and make sure its return value is correct.
Wanted inputs:
    [slider, slider]
Received inputs:
    ["Current"]
Repository: vscode
Issue: [css] add clamp() math function
Labels: feature-request,css-less-scss

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
The clamp() math function has been supported by the modern browsers for a while now [clamp() Browser Compatibility](https://caniuse.com/?search=clamp()). I believe it is time VSCode shows this function in intellisense. Thanks for all your work.
Repository: next.js
Issue: dev mode not working with route rewriting and disabled languageDetection
Labels: bug,Navigation,Pages Router

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.14.2
      npm: 9.5.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.4.7
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Data fetching (gS(S)P, getInitialProps), Internationalization (i18n), Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/AIwcom/next-bug

### To Reproduce

- check out repository
- run yarn install
- run yarn dev
- access localhost:3000 
- click "Test no rewrite" --> new page loads successfully
- reload page --> page loads
- go back to "/"
- click "Test rewrite" --> new page loads successfully
- reload page --> 404

### Describe the Bug

When accessing a route which is rewritten in next.config directly it ends up in a 404 (only in dev mode - yarn build & yarn start works as expected). I experience this behavior since version >13.2.4.

### Expected Behavior

I can access the rewritten route directly in dev mode

### Which browser are you using? (if relevant)

not relevant

### How are you deploying your application? (if relevant)

not relevant