sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: build: 🔧 More control over custom image loader
Labels: area: common,common: image directive

### Which @angular/* package(s) are relevant/related to the feature request?

common

### Description

Hi team Angular,

I read the docs for NgOptimizedImage; specifically on the customer loader with support for multiple CDNs at the bottom. 

For my use case, I want to default to a supported provider like Cloudinary but have the option to use the generic or similar.

Right off the bat, I can no longer use `provideCloudinaryLoader()`. While implementing my customer loader, I have no access to the Cloudinary loader function as it's not being exported from @angular/common.

Would love to get all supported image loader functions exported so we can pick and choose within IMAGE_LOADER provider.

Thoughts?

Cheers,
Bjorn

### Proposed solution

```
{
      provide: IMAGE_LOADER,
      useValue: (config: ImageLoaderConfig) => {
        if (config.loaderParams != null && config.loaderParams['loader'] != null) {
          switch (config.loaderParams['loader']) {
            case 'raw': 
              return config.src;
            case 'cloudinary':
              return createCloudinaryUrl(CLOUDINARY_BASE_PATH, config)
            case ...
          }
        }

        return createCloudinaryUrl(CLOUDINARY_BASE_PATH, config);
      },
    },
```

### Alternatives considered

None
Repository: godot
Issue: Inputting Korean characters on any GUI control node breaks the characters on macOS
Labels: bug,platform:web,platform:macos,topic:input

### Godot version

4.2.stable

### System information

macOS 14 Sonoma - Godot v4.2.stable

### Issue description

On macOS, for Web Export and macOS App export, I cannot input Korean text properly.

With Web export on Safari and Chromium-based browsers, Korean characters are all broken down and not assembled - '가' becomes 'ㄱㅏ' for example. I assume other languages with dead keys are acting in similar way. On Firefox it doesn't input Korean characters at all, ignores IME and just inputs corresponding English characters with on the same key - '가' becomes 'RK'


https://github.com/godotengine/godot/assets/7546436/034ef91c-6fd5-4fa0-a470-d33ba6b260af

On App export, it does assemble characters in correct manner, but it does not advance cursor. So, when I type '가나다', only '다' remains. As a Godot app itself, it happens on Godot Editor as well.

https://github.com/godotengine/godot/assets/7546436/ba2eb6ee-fa0a-45ef-a6a2-56871e6330a4

https://github.com/godotengine/godot/assets/7546436/d0c14194-d768-4859-b028-8182639a6124

Below is how it should work, it is from Godot 3.5.3.stable and it works great there.

https://github.com/godotengine/godot/assets/7546436/515d8046-5cab-4292-b1ab-4338d12def68

### Steps to reproduce

1. Install and launch any Godot 4 version released.
2. Make a LineEdit or any other text-input control in a 2D scene and launch the scene. Or use in-editor text edit controls.
3. Type in Korean characters.

### Minimal reproduction project

[KoreanIMEBugReproduction.zip](https://github.com/godotengine/godot/files/13523343/KoreanIMEBugReproduction.zip)
Repository: stable-diffusion-webui
Issue: [Bug]: failed to generate the bath image to image at 1.6 or 1.61. it works at 1.52
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?

Issue: test many times, its failed to generate batch image to image at 1.6/1.61.
it doesn't have any error at console.

Reslove: i change to 1.52, it works normaly.

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/136415996/4844b76c-45c2-497f-9803-b6c320fffd0d)



### Steps to reproduce the problem

1.env: 1.6 or 1.6
2.config as below:
very sorry its chinese, if need, i could provide English later since SD's working.
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/136415996/5988ff5a-23ed-4fb8-892a-099067895898)

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/136415996/c5f43e8d-337c-47c7-bb89-c648240a294d)



### What should have happened?

succesfully bacth imagetoimage

### Sysinfo

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/136415996/0b7248d2-a602-4f98-bd2a-e6dcb03340b4)


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

Google Chrome

### Console logs

```Shell
its too huge, i cannot do that for SD is processing if you failed to reproduce..
```


### Additional information

_No response_
Repository: ollama
Issue: Beam search (best of) for completion API
Labels: feature request

Beam search is a sampling mechanism by which we maximize probability of not just the next token, but the entire completion.

While it can be ignored for simpler uses, any form of reasoning, especially with a tiny model, requires beam search to backtrack from incorrect steps.

llama.cpp already supports beam search, so it should be trivial to implement.
Repository: storybook
Issue: [Bug]: Broken types for `useArgs<generic>`
Labels: bug,good first issue,help wanted,typescript,args,sev:S3

### Describe the bug

When upgrading from version **7.4.6** to **7.6.2**, I discovered that `useArgs<generic>` is no longer generic, which breaks the fix [7.0.0-beta.26 (January 14, 2023)](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md#700-beta26-january-14-2023)

> API: Fix typing on useArgs https://github.com/storybooks/storybook/pull/20610

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: storybook
Issue: [Bug]: addon-storysource should have source-loader as dependency
Labels: bug,dependencies,good first issue,help wanted,addon: storysource,source-loader,sev:S3

### Describe the bug

Hi,
source-loader has been moved to devDependencies but it's used in code/addons/storysource/src/preset.ts
as a result with the version 7.6.X, I have this issue: Error: Cannot find module '@storybook/source-loader'


### To Reproduce

- clone the repository [@talend/ui](https://github.com/Talend/ui/)
- asdf install (if you don't have it, install versions of node and yarn defined in .tool-versions)
- remove dependency @storybook/source-loader added as workaround in tools/scripts-config-storybook-lib
- yarn install
- yarn test:demo

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.1.1
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - ~/.asdf/installs/nodejs/20.9.0/bin/node
    Yarn: 1.22.19 - ~/.asdf/shims/yarn <----- active
    npm: 10.1.0 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Chrome: 119.0.6045.199
    Safari: 17.1
```


### Additional context

_No response_
Repository: pytorch
Issue: torch.multinomial - Unexpected (incorrect) results when replacement=True in version 2.1.1+cpu
Labels: triaged,module: random

### 🐛 Describe the bug

Running the code below in version 2.1.1+cpu produces unexpected output in the first iteration. 
The same code run in version 1.10.0+cpu produces different (expected) result.
The problem does not appear when ```replacement=False```.
```python
import torch
print(f"Torch Version: {torch.__version__}")

p = torch.ones(10)
for i in range(7):
    g = torch.Generator().manual_seed(123)
    num_samples = i+1
    out = torch.multinomial(p, num_samples, replacement=True, generator=g)
    print(i, out)    
```  
The output is (2.1.1+cpu):
```
Torch Version: 2.1.1+cpu
0 tensor([9])      <----------- UNEXPECTED RESULT
1 tensor([3, 0])
2 tensor([3, 0, 5])
3 tensor([3, 0, 5, 0])
4 tensor([3, 0, 5, 0, 4])
5 tensor([3, 0, 5, 0, 4, 5])
6 tensor([3, 0, 5, 0, 4, 5, 6])
```

Expected output (1.10.0+cpu):
```
Torch Version: 1.10.0+cpu
0 tensor([3])
1 tensor([3, 0])
2 tensor([3, 0, 5])
3 tensor([3, 0, 5, 0])
4 tensor([3, 0, 5, 0, 4])
5 tensor([3, 0, 5, 0, 4, 5])
6 tensor([3, 0, 5, 0, 4, 5, 6])
```

### Versions

```
Collecting environment information...
PyTorch version: 2.0.0+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Pro
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19045-SP0
Is CUDA available: False
CUDA runtime version: 8.0.60
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1060 6GB
Nvidia driver version: 536.23
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3600
DeviceID=CPU0
Family=107
L2CacheSize=3072
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=3600
Name=AMD Ryzen 5 1600X Six-Core Processor
ProcessorType=3
Revision=257

Versions of relevant libraries:
[pip3] torch==2.0.0
[conda] Could not collect
```

cc @pbelevich
Repository: storybook
Issue: [Feature request]: Element highlighting in addon-interactions
Labels: feature request,addon: interactions

**Ps: This feature should be implemented by a core Storybook maintainer in collaboration with a designer.**
**Ps²: This issue is mostly a draft on what the idea should be. It should be discussed further with the team.**

### Context

Addon interactions provides a list of test steps which get executed either automatically or upon click.

However, users might want to know exactly which element is selected in the steps, for easier debuggability. Here's an example of clicking on a "target" icon to see which element is the target of `password1`.

### Desired behavior

Whenever applicable, users should have an option to highlight the element which was interacted with in each test step.

- Clicking on the target icon should highlight the element;
- Clicking on another target should clear the highlight of the previous element, and highlight the next one;
- There should be a way to clear all highlights

Example:

![image](https://user-images.githubusercontent.com/1671563/178754211-8c4a8db6-541b-461b-80ad-fed969db4a57.png)

### Prior art

There's work which was done prior to this issue, in a closed PR that can serve as inspiration:
https://github.com/storybookjs/storybook/pull/18700
Repository: neovim
Issue: Treesitter: syntax highlighting for command line, window
Labels: enhancement,highlight,treesitter,cmdline-mode

### Problem

The command line does not have syntax highlighting, despite having a shiny new Vimscript parser at home. Also, enabling treesitter highlighting for vimscript breaks/disables the legacy parser for the command window (`q:`).

### Expected behavior

Hook a treesitter highlighter into the command line (and window) so we can have rainbow goodness (including highlighting of embedded Lua). This requires extending the `TSHighlighter` with a new mode that parses each line independently as its own tree (or writing a custom `TSLineHighlighter`).

This will also allow us to remove the custom (unmaintained) vimscript parser used for `<c-r>=` expression highlighting (although that will require some trickery to parse the whole line as Vim expression rather than statement).
Repository: pytorch
Issue: Nvidia P100, where to disable upcasting? Plus kernel image missing.
Labels: module: binaries,module: cuda,triaged

### 🐛 Describe the bug

P100 upcasts all FP16 to FP32. I would like to disable this and try out the FP16 support despite any numerical instability. Can anyone point me at the correct file to comment this behavior out? If the below is true, I probably have to recompile pytorch anyways.

Also, is SM6.0 fully supported by the binaries? When using fairseq and hubert it is complaining of a missing kernel image when doing the forward pass. I had tried to recompile fairseq so it seems like a pytorch problem? It works fine on SM6.1 and nothing except pytorch and fairseq is imported.

```
Traceback (most recent call last):
  File "/home/supermicro/ai/TavernAI-extras/modules/voice_conversion/rvc/rvc.py", line 233, in vc_single
    audio_opt = vc.pipeline(
  File "/home/supermicro/ai/TavernAI-extras/modules/voice_conversion/rvc/vc_infer_pipeline.py", line 355, in pipeline
    self.vc(
  File "/home/supermicro/ai/TavernAI-extras/modules/voice_conversion/rvc/vc_infer_pipeline.py", line 154, in vc
    logits = model.extract_features(**inputs)
  File "/home/supermicro/ai/TavernAI-extras/modules/voice_conversion/fairseq/models/hubert/hubert.py", line 535, in extract_features
    res = self.forward(
  File "/home/supermicro/ai/TavernAI-extras/modules/voice_conversion/fairseq/models/hubert/hubert.py", line 445, in forward
    unmasked_features = features.clone()
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
```

### Versions

Torch 2.1.1 CUDA 11.8

cc @seemethere @malfet @osalpekar @atalman @ptrblck
Repository: deno
Issue: Reading from Deno.stdin prevent Exception being thrown
Labels: bug

Version: Deno 1.38.4
Reading from stdin prevents Exception being thrown;

``` js
setTimeout(() => {
    throw new Error("this will not fire!")
}, 100);
const buffer = new Uint8Array(1024);
await Deno.stdin.read(buffer);
```
Repository: flutter
Issue: [dart:ui] Generalize `lerpDouble` return type so it returns `double` when the parameters are of type `double`
Labels: engine,c: proposal,a: null-safety,P3,team-engine,triaged-engine

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Currently, `lerpDouble` returns `double?`. It does this because it's acceptable to pass a nullable value to `a` or `b`.

It's a little inconvenient to deal with this when we know that both `a` and `b` are non-nullable.

In https://github.com/flutter/flutter/issues/64617 it was proposed that we change the return type to `double`, but the discussion concluded that it's not rare to want to lerp with nullable values, and that changing it would be breaking.

### Proposal

The proposal of this issue is to make a less breaking change to the code that allows both but strengthens the return type.

Considering the current implementation, the changed function would be something like:

```diff
-double? lerpDouble(num? a, num? b, double t) {
+T lerpDouble<T extends double?>(T a, T b, double t) {
   if (a == b || (a?.isNaN ?? false) && (b?.isNaN ?? false)) {
-    return a?.toDouble();
+    return a;
   }
-  a ??= 0.0;
-  b ??= 0.0;
-  assert(a.isFinite, 'Cannot interpolate between finite and non-finite values');
-  assert(b.isFinite, 'Cannot interpolate between finite and non-finite values');
+  final newA = a ?? 0.0;
+  final newB = b ?? 0.0;
+  assert(newA.isFinite, 'Cannot interpolate between finite and non-finite values');
+  assert(newB.isFinite, 'Cannot interpolate between finite and non-finite values');
   assert(t.isFinite, 't must be finite when interpolating between values');
-  return a * (1.0 - t) + b * t;
+  return (newA * (1.0 - t) + newB * t) as T;
 }
```

In this context, considering that it's impossible to extend `double`, the possible types that `T` may assume are `double`, `double?`, `Null` and `Never`.

The first three are handled internally, and although casting with `as T` is not recommended in general, in this case it shouldn't be a problem, because we handle everything. This may only become a problem if we ever allow extending from `double`, which I don't think we will.

The last case (`Never`) we don't need to handle, as it's virtually impossible to pass a value of type `Never` to `a` and `b`.

I may open a PR myself, if the team and the community find this to be an acceptable and viable change.
Repository: next.js
Issue: `redirect()` function not redirecting in client components
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/pedro757/redirect-issue-client-components

### To Reproduce

1. Click the button

### Current vs. Expected behavior

Currently it's not redirecting to the otherpage
I expect to actually redirect to the otherpage

### Verify canary release

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

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Mon Nov 20 12:57:36 UTC 2023
Binaries:
  Node: 20.5.1
  npm: 10.2.1
  Yarn: 1.22.19
  pnpm: 8.10.3
Relevant Packages:
  next: 14.0.4-canary.32
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router, Routing (next/router, next/navigation, next/link)

### Additional context

I have used redirect in server actions and it seems to be working good, the problem seems to be on client components
Repository: PowerToys
Issue: Mouses Without Borders breaks when keyboard and mouse are plugged into different devices
Labels: Issue-Bug,Priority-1,Product-Mouse Without Borders

### Microsoft PowerToys version

0.75.1

### Installation method

GitHub, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

1. Plug mouse into device A, and keyboard into device B
2. Move mouse cursor onto device B
3. Move mouse cursor back to device A
4. Attempt to type on the keyboard, input goes to device B rather than device A

### ✔️ Expected Behavior

I expect the input to follow the mouse cursor, even when the keyboard is not plugged into the same device

### ❌ Actual Behavior

Keyboard does not transfer to follow the keyboard

### Other Software

_No response_
Repository: flutter
Issue: Hausa native language support
Labels: c: new feature,tool,framework,a: internationalization,c: proposal,P3,team-framework,triaged-framework

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Every developer wanting to localize an app into a language not included in GlobalMaterialLocalizations must do extra work to achieve this. If the language is obscure, that’s sensible. But if the language is widespread it is better for everyone if it is supported natively. I would like to make a case for native Hausa support.

Currently, GlobalMaterialLocalizations supports the African languages Swahili, Amharic, Afrikaans, and Zulu but not Hausa. 

Swahili is a pan-African language meaning it is spoken across multiple African countries. 100+ million people speak Swahili Tanzania, Uganda, the Democratic Republic of Congo, and Kenya, but it is also used in countries like Ethiopia, Sudan, Burundi, Rwanda, southern Somalia, northern Mozambique, and the Comoros Islands. 

I am requesting support for Hausa, another pan-African language, with around 40 milion speakers throughout Africa. It is spoken in several countries including Benin, Burkina Faso, Cameroon, CAR, Chad, Congo, Eritrea, Germany, Ghana, Niger, Sudan, Togo and much of North Africa. 

Note that Zulu is spoken only in South Africa with 10 million speakers. Yet Zulu is supported but Hausa is not.

### Proposal

Since Hausa is a pan-African language with 40 million speakers, I am requesting native support for it in GlobalMaterialLocalizations.
Repository: kubernetes
Issue: NetworkPolicy block access from alb causing 504 gateway timeout
Labels: kind/bug,sig/network,needs-triage

### What happened?

I want to use networkpolicy to restrict traffic between pods. In my case I have argocd deployed to AWS EKS cluster with alb on top of aws load balancer contoller. Argocd is in argocd namespace. AWS Load Balancer controller in kube-system namespace. Setup works nicely without network policies. When Network Policy is deployed to argocd namespace it blocks also traffic from alb and I can't access domain. I get error 504 Gateway Time-out. Added entries in network policies for traffic both ways from and to argocd and kube-system namespace. 


### What did you expect to happen?

I'd expect adding entry for alb controller namespace will allow traffic from alb.

### How can we reproduce it (as minimally and precisely as possible)?

EKS deployed from aws blueprints. 
Argocd and aws-load-balancer-cotroller deployed from latest helm charts.
Network policy as below:
```
            apiVersion: networking.k8s.io/v1
            kind: NetworkPolicy
            metadata:
              name: argocd-allow-ingress-egress
              namespace: argocd
            spec:
              podSelector: {}
              policyTypes:
              - Ingress
              - Egress
              ingress:
              - from:
                - namespaceSelector:
                    matchLabels:
                      kubernetes.io/metadata.name: argocd
              - from:
                - namespaceSelector:
                    matchLabels:
                      kubernetes.io/metadata.name: kube-system
              egress:
              - to:
                - namespaceSelector:
                    matchLabels:
                      kubernetes.io/metadata.name: argocd
              - to:
                - namespaceSelector:
                    matchLabels:
                      kubernetes.io/metadata.name: kube-system
```

### Anything else we need to know?

Network policies via aws vpc cni addon.
aws-load-balancer-controller with hostNetwork set to false.

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.3-eks-4f4795d
```

</details>


### Cloud provider

<details>
AWS
</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

```
vpc-cni    = {
    addon_version = "v1.15.4-eksbuild.1"
    configuration_values = {
      "enableNetworkPolicy" : "true",
      "nodeAgent" : {
        "enableCloudWatchLogs" : "true"
      }
    }
  }
```

aws-load-balancer-controller version: 1.6.2