sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Document ProcessGroupOptions
Labels: triage review,oncall: distributed,module: docs

### 🐛 Describe the bug

It is referenced in the docs but not defined anywhere.

See also https://github.com/pytorch/pytorch/pull/130957

### Versions

main

cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @svekars @brycebortree
Repository: TypeScript
Issue: Mapped type of a conditional type unexpectedly fails inference
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

conditional type infer unknown
conditional type mapped type inference

### 🕗 Version & Regression Information

This is the behavior in every version I tried (3.3.3 to 5.5.3), and I reviewed the FAQ for entries about conditional types, mapped types, and structural inference.


### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.5.3#code/C4TwDgpgBAsghmSATAPAFQHxQLxQN5QDaAClAJYB2UA1hCAPYBmUaAugFwsmtQC+AUP1CQoAYXoBbMPQoQKwAII5YCZCgKMyEADZJOFAK4SARhABOfDIOHRxUmXOAAhZRq279R0xYFDw0AEkKRnMARnQsXHhECFQ0KAgAD2A5JABnKFkAN3MoAH5Mg21tKE5MQSQIAGNtODNoRgMKKuAyGXJgsIiACirOIJCzcMwASjL+SkHQ7rxeKDgMu2lZeQURgDpNHSRlUKgoAHoDqEBQcgnOoZm5hbFJZccnDa3dXf2jqEAZcigAUTMzejMnAA8sYAFbVYDkDJMKA2KAAcia1Ao9AA7hR4YI-CIBuYAEwRZTxJIpCjpTIQHIWAqGYqlFQxOJWfiVGp1BpNFptKiTfE9PpQXFmAmjca84VXeaLO4OVZPdw7XB7Q7HM7ivGSm5LWXOeXbV4q078IA

### 💻 Code

```ts
type Mapped<T> = { [P in keyof T]: T[P] }

type ComponentA = Mapped<{ field: number }>
type ComponentB = { field: number }

type Infer1<T> = Mapped<T extends never ? null : T>

declare function infer1<T>(c: Infer1<T>): T
infer1({} as ComponentA).field = 1  // ✅
infer1({} as ComponentB).field = 1  // ❌ Error: Object is of type 'unknown'


type Infer2<T> = T extends never ? null : Mapped<T>

declare function infer2<T>(c: Infer2<T>): T
infer2({} as ComponentA).field = 1  // ✅
infer2({} as ComponentB).field = 1  // ✅
```


### 🙁 Actual behavior

`infer1(ComponentA)` passed inference but `infer1(ComponentB)` failed with `unknown`.

However, if it's the other way around — `Conditional ? Mapped<T>` instead of `Mapped<Conditional ? T>`, both `infer2(ComponentA)` and `infer2(ComponentB)` passed inference.

### 🙂 Expected behavior

I expect `infer1(ComponentA)` and `infer1(ComponentB)` to both work, because `ComponentA` and `ComponentB` are essentially the same type — I'm unable to otherwise differentiate them by any means.

### Additional information about the issue

I discovered this while debugging vuejs/core#11353, and the interference failure there was eventually reduced to this report.
Repository: ui
Issue: [bug]: Type error: using autoplay in carousel
Labels: bug

### Describe the bug

I'm trying to use the plugins prop to add plugins to the carousel.and I'm having a typing error.

**My componet:**
```tsx
<Carousel
      plugins={[plugin.current]}
      onMouseEnter={plugin.current.stop}
      onMouseLeave={plugin.current.reset}
      opts={{
        align: "start",
        loop: true,
      }}>
...
</Carousel>
```

**My dependencies**

```json
"dependencies": {
    "@hookform/resolvers": "^3.3.4",
    "@radix-ui/react-avatar": "^1.0.4",
    "@radix-ui/react-checkbox": "^1.0.4",
    "@radix-ui/react-dialog": "^1.1.1",
    "@radix-ui/react-dropdown-menu": "^2.0.6",
    "@radix-ui/react-label": "^2.0.2",
    "@radix-ui/react-navigation-menu": "^1.1.4",
    "@radix-ui/react-popover": "^1.0.7",
    "@radix-ui/react-radio-group": "^1.1.3",
    "@radix-ui/react-select": "^2.0.0",
    "@radix-ui/react-slot": "^1.0.2",
    "axios": "^1.7.2",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "embla-carousel-autoplay": "^8.1.6",
    "embla-carousel-react": "^8.0.2",
    "lucide-react": "^0.367.0",
    "next": "14.1.4",
    "next-themes": "^0.3.0",
    "react": "^18",
    "react-dom": "^18",
    "react-hook-form": "^7.51.2",
    "react-resizable-panels": "^2.0.16",
    "tailwind-merge": "^2.2.2",
    "tailwindcss-animate": "^1.0.7",
    "zod": "^3.22.4"
  },
```

### Affected component/components

Carousel

### How to reproduce

**This is the error:**
```Type 'AutoplayType' is not assignable to type 'CreatePluginType<LoosePluginType, {}>'.```

**more:**
```
Type 'AutoplayType' is not assignable to type 'CreatePluginType<LoosePluginType, {}>'.
  Type 'AutoplayType' is not assignable to type '{ name: string; options: Partial<{ active: boolean; breakpoints: { [key: string]: Omit<Partial<...>, "breakpoints">; }; }>; init: (embla: EmblaCarouselType, OptionsHandler: OptionsHandlerType) => void; destroy: () => void; }'.
    Types of property 'init' are incompatible.
      Type '(embla: EmblaCarouselType) => void' is not assignable to type '(embla: EmblaCarouselType, OptionsHandler: OptionsHandlerType) => void'.
        Types of parameters 'embla' and 'embla' are incompatible.
          Property 'clickAllowed' is missing in type 'import("/home/eduardojpanzo/Projects/Vaawel/smarttech-ui/node_modules/embla-carousel-react/node_modules/embla-carousel/esm/components/EmblaCarousel").EmblaCarouselType' but required in type 'import("/home/eduardojpanzo/Projects/Vaawel/smarttech-ui/node_modules/embla-carousel/components/index").EmblaCarouselType'.ts(2322)
```


### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
node version: v20.15.1
npm version: 10.7.0
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: pytorch
Issue: For `expand()`, `sizes` argument doesn't work while `size` argument works against the doc
Labels: triaged,actionable,module: python frontend

### 📚 The doc issue

[The doc](https://pytorch.org/docs/stable/generated/torch.Tensor.expand.html) of `expand()` says there is `sizes` argument as shown below:

> *sizes (torch.Size or [int](https://docs.python.org/3/library/functions.html#int)...) – the desired expanded size

But, setting `sizes` gets the error saying there is `size` argument as shown below:

```python
import torch

my_tensor = torch.tensor([7, 4, 5])

my_tensor.expand(sizes=(4, 3)) # Error
```

> TypeError: expand() missing 1 required positional arguments: "size"

So,  I set `size` argument following the error message above, then it works as shown below:

```python
import torch

my_tensor = torch.tensor([7, 4, 5])

my_tensor.expand(size=(4, 3))
# tensor([[7, 4, 5],
#         [7, 4, 5],
#         [7, 4, 5],
#         [7, 4, 5]])
```

### Suggest a potential alternative/fix

So, the doc should say `size` instead of `*sizes` and also should say `tuple` of `int` and `list` of `int` as shown below:

> *sizes (torch.Size, [int](https://docs.python.org/3/library/functions.html#int)..., `tuple` of `int` or `list` of `int`) – the desired expanded size


cc @albanD
Repository: ant-design
Issue: Make autoSize consistent between Input.TextArea and Mentions components
Labels: 🐛 Bug,Inactive

### What problem does this feature solve?

Both Input.TextArea and the Mentions components allow for the autoSize prop, but they behave slightly differently.

In Input.TextArea, if "autoSize={false}", then the input can be manually resized by dragging the lower right side of the input (which is visually indicated to show that this is possible).

In Mentions, if "autoSize={false}", then the input cannot be manually resized.

This request is for the Mentions input to behave like Input.TextArea and allow for manual resizing if "autoSize={false}".

### What does the proposed API look like?

There would be no change to the user-facing API, since the autoSize prop is already the same between the two components. The changes would be internal in rc-mentions.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ollama
Issue: New Command/ Flag to notify or download latest updates to an already pulled model. 
Labels: feature request

There might be scenarios where quants might be recreated (e.g. gemma) or templates could be updated in the model registry. 

If there is some way to show it during ls or pull commands as info, it can improve user experience. Users can benefit from better quantization and prompt templates accordingly.
Repository: go
Issue: encoding/xml: does not reject forbidden processing instruction names
Labels: NeedsInvestigation

### Go version

1.22

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

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/user/.cache/go-build'
GOENV='/home/user/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/user/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/user/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/user/go/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/user/go/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.23-071b8d51c1a70fa6b12f0bed2e93370e193333fd Fri Jul 12 22:42:17 2024 +0000'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/user/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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-build2107157220=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

https://go.dev/play/p/ldTeErDvu3t

```
package main

import "encoding/xml"

func main() {
	err := xml.Unmarshal([]byte(`<?a /b?><a/>`), new(interface{}))
	if err != nil {
		panic("well-formed XML rejected")
	}
	err = xml.Unmarshal([]byte(`<?xmla b?><a/>`), new(interface{}))
	if err == nil {
		panic("forbidden processing instruction name accepted")
	}
}
```

### What did you see happen?

Ill-formed XMl with forbidden processing instruction name accepted.

### What did you expect to see?

Ill-formed XMl with forbidden processing instruction name rejected.
Repository: PowerToys
Issue: 0x80070005 - access denied
Labels: Issue-Bug,Area-Setup/Install,Needs-Triage

### Microsoft PowerToys version

v0.82.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Installer

### Steps to reproduce

Opening the installer as an admin.

### ✔️ Expected Behavior

Normal instalation

### ❌ Actual Behavior

if I don't run it as an admin it gives me that screen but if I do run it as an admin I get a bunch of errors and I can't open PowerToys
![image_2024-07-17_201734104](https://github.com/user-attachments/assets/2314eac8-dafd-4d10-b943-13a7341aaef1)
![image](https://github.com/user-attachments/assets/e3f6bf20-1cda-4883-863f-3ac6612c4887)
![image_2024-07-17_201840667](https://github.com/user-attachments/assets/25b32aa5-575e-44dc-b3a4-a485213b0a6f)
![image_2024-07-17_201849163](https://github.com/user-attachments/assets/70d5dc29-8460-4f22-a08d-a322fcf99684)





### Other Software

_No response_
Repository: pytorch
Issue: float8 types cannot be used under deterministic mode
Labels: triaged,module: determinism,module: float8

```
>>> import torch
>>> torch.__version__
'2.4.0a0'
>>> torch.use_deterministic_algorithms(True)
>>> torch.empty(1, dtype=torch.float8_e4m3fn)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: "fill_empty_deterministic_" not implemented for 'Float8_e4m3fn'
>>> torch.empty(1, dtype=torch.float8_e5m2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: "fill_empty_deterministic_" not implemented for 'Float8_e5m2'
```

We need `fill_empty_deterministic_` implementations.

cc @mruberry @kurtamohler @yanbing-j @vkuzo @albanD @kadeng @penguinwu
Repository: go
Issue: proposal: net/http: add Request.CopyTo
Labels: Proposal

### Proposal Details

# The Issue

Currently, the addition of new contexts to `net/http.Request`s always allocates.  Even when `net/http.Request.WithContext` is used, which creates a shallow copy of the original request with the new context, there is still the allocation of a new `Request` value:

```go
func (r *Request) WithContext(ctx context.Context) *Request {
	if ctx == nil {
		panic("nil context")
	}
	r2 := new(Request)
	*r2 = *r
	r2.ctx = ctx
	return r2
}
```

This is a problem, since the pattern of taking the original context, creating a child context with additional data, and creating a copy of the original request with the new context is very common in HTTP middlewares.

# Proposal

I propose adding a new method, `net/http.Request.CopyTo`:

```go
// CopyTo writes a shallow copy of r into r2 and sets its context to ctx. The
// provided ctx and r2 must be non-nil.
//
// For outgoing client request, the context controls the entire lifetime of a
// request and its response: obtaining a connection, sending the request, and
// reading the response headers and body.
//
// To create a new request with a context, use [NewRequestWithContext]. To make
// a deep copy of a request with a new context, use [Request.Clone]. To make
// a shallow copy of a request with a new context, use [Request.WithContext].
func (r *Request) CopyTo(ctx context.Context, r2 *Request) {
	if ctx == nil {
		panic("nil context")
	} else if r2 == nil {
		panic("nil r2")
	}
	*r2 = *r
	r2.ctx = ctx
}
```

(The name is inspired by `github.com/miekg/dns.Msg.CopyTo` and is bikesheddable.)

`Request.WithContext` can thus be rewritten into:

```go
func (r *Request) WithContext(ctx context.Context) *Request {
	r2 := new(Request)
	r.CopyTo(ctx, r2)
	return r2
}
```

This allows HTTP middlewares to reuse `Request` structs by using `sync.Pool`s or some other mechanism to reuse the memory.

# Related

- #44525
Repository: PowerToys
Issue: Windows Explorer Status Bar
Labels: Needs-Triage

### Description of the new feature / enhancement

## Windows Explorer Status Bar :

Status Bar only show the sum of the selection files size of them and number of items 
but if you select multiple files (video files mp4,mp3,.....) on your explorer and go to properties of the file in Details it show you the length and more details about your files as a sum 
i want to add like length  to the Status Bar but currently i did not find any options to do this 🤔

-----------------------------------------------------------------------------------------------------------------------------------------

![Screenshot 2024-07-17 223819](https://github.com/user-attachments/assets/8a25f9d8-dba8-429b-8e21-8e8a90a1d20a)
-----------------------------------------------------------------------------------------------------------------------------------------

![Screenshot 2024-07-17 224311](https://github.com/user-attachments/assets/17d82565-2e2b-47e5-8b3c-b9a190f3dabe)



### Scenario when this would be used?

when selecting multiple video files and want to know how long they're (length  )

### Supporting information

only thing  i find for this topic in internet was about  how to  show or hide the  status bar

https://www.softwareok.eu/?page=Windows/11/Explorer/18
https://www.tenforums.com/general-support/140392-two-status-bars-file-explorer-want-hide-one-them.html
https://www.elevenforum.com/t/show-or-hide-status-bar-in-file-explorer-in-windows-11.5004/
Repository: godot
Issue: Animations saved with .res extension are not respecting bonemap on import
Labels: bug,topic:import,topic:animation

### Tested versions

Reproducible in Godot 4.22 stable.

### System information

Godot v4.2.2.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Mon, 15 Jul 2024 09:23:08 +0000 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti (nvidia; 555.58.02) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)

### Issue description

When exporting an animation library from rigged model A using the .res extension, the bonemap is not being used when importing said library into the animation player on model B.  Instead, of seeing the generic names from the bonemap such as Hips, Spine, etc, you will see that a direct mapping of the bone names from model A is being used instead. This means that the animations will not work on model B.  However, when exporting the animations from model A using .tres extension, everything works as expected and the animations work properly on model B after the quick load.

### Steps to reproduce

Import two different glb rigged models and create a valid bonemap for each.  Create at least one animation for model A and save the animation in your project using the .res (default) file extension from the manage animations window.  

Next, create a new inherited scene from model B and click on manage animations, load library, and choose the library you exported from model A.  Note the names of the bones are not correct and the animation will not play.  Repeat the process but use .tres instead of .res extension and all will work as expected.

### Minimal reproduction project (MRP)

sdf
Repository: flutter
Issue: Enable standard link context menu on long-press.
Labels: c: new feature,package,c: proposal,team-ecosystem,P2,p: flutter_markdown,triaged-ecosystem

I want to long-press a link in markdown text, in Flutter web app, and get standard menu, that will allow to copy the link, open it with different options and so on:

![image](https://github.com/user-attachments/assets/cdc39b71-1b7b-4637-8bc3-2a755713b156)
Repository: storybook
Issue: [Bug]: Cannot access Next router in custom container when using NextJS preset with Docs add-on
Labels: bug,needs triage

### Describe the bug

I have a wrapping component that accesses `next/router` for the purpose of registering some event listeners. When I use it as a `decorator` on my Stories, everything is fine (the `@storybook/nextjs` mocks kick in), but since the [Docs add-on doesn't support decorators](https://github.com/storybookjs/storybook/blob/next/code/addons/docs/docs/recipes.md#overwriting-docs-container), when I use the same wrapping component in a custom `container`, I get an error (See Reproduction steps).

### Reproduction link

https://stackblitz.com/edit/github-bdxeif-nadeqm

### Reproduction steps

1. Boot the linked StackBlitz environment
2. Wait for Storybook to finish installing/loading
3. Observe that the "Configure your project" (and all other Docs) display the following error, but Stories do not

> [!CAUTION]
> NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted


### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @storybook/addon-docs: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/addon-essentials: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/addon-interactions: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/addon-links: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/addon-onboarding: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/blocks: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/nextjs: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/react: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    @storybook/test: ^8.3.0-alpha.1 => 8.3.0-alpha.1 
    storybook: ^8.3.0-alpha.1 => 8.3.0-alpha.1
```


### Additional context

A path to a possible fix would be for the `@storybook/next` preset to expose the `Provider`s that it uses for the decorators. These could imported in `preview.tsx` by consumers of the Docs add-on and passed to a custom `container`.

Needs `nextjs` and `addon: docs` labels.
Repository: angular
Issue: Improve misleading error message for control flow when HTML close tags are missing
Labels: area: compiler,compiler: parser

### Which @angular/* package(s) are relevant/related to the feature request?

common, core

### Description

The following template does not compile in Angular, because the <table> tag has no corresponding closing tag </table>.

The error message is difficult to understand - it seems to imply that there's a problem with the closing brace for the @if block (and that closing brace is highlighted in VSCode), which makes the real cause of the problem difficult to spot.

Template example:
```
<div>
    @if (propertyGroups) {
    <table>
        @for(group of propertyGroups; track $index) {
        <tr>
            <td colspan="2" class="bold-font">group.displayableType</td>
        </tr>
        <tr *ngFor="let property of group.properties">
            <td>property[0]</td>
            <td>property[1]</td>
        </tr>
        }
    } @else {
    <div class="bold-font">Error loading properties</div>
    }
</div>
```

Error message:

```
Error: src/app/admin/view/admin.properties.component.html:13:5 - error NG5002: Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.

13     } @else {
       ~

  src/app/admin/view/admin.properties.component.ts:6:16
    6   templateUrl: './admin.properties.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AdminPropertiesComponent.
```

### Proposed solution

The error message for this case should be more descriptive about the parsing failure, indicating that a certain HTML element tag needs to be closed before the control flow block can be concluded.

### Alternatives considered

None
Repository: neovim
Issue: LSP RPC fails to parse multiple header fields
Labels: bug,lsp

### Problem

The [LSP RPC request parser](https://github.com/neovim/neovim/blob/master/runtime/lua/vim/lsp/rpc.lua#L66) fails to parse headers where more than one field exists even though `parse_headers` supports multiple fields. The [protocol](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#headerPart) requires the header to be terminated with `\r\n` and for at least one header field to be included. The implementation of this parser assumes that the header is complete when there exists `\r\n\r\n` which happens to be true for popular language servers.

### Steps to reproduce using "nvim -u minimal_init.lua"

1. Apply the [patch](https://gist.github.com/dssecret/c052154ca61fca5298b4a5a733bb80e2)
2. Execute respective test with `TEST_FILE=test/functional/plugin/lsp_spec.lau TEST_FILTER='handler can return false as response' make functionaltest`

### Expected behavior

_No response_

### Neovim version (nvim -v)

NVIM v0.11.0-dev-438+g1f2f460b4-dirty

### Language server name/version

N/A

### Operating system/version

Manjaro 24.0.4

### Log file

_No response_
Repository: deno
Issue: proposal: add `Deno.ConfigFile`
Labels: suggestion,types

Sometimes projects have to read a `deno.json` file (e.g. in Fresh [here](https://github.com/denoland/fresh/blob/b510113655d0a018eab49c1bb2400bd737eb08a2/tools/release.ts#L28)). In such cases, having a type that makes working with the file easier, from the `Deno.*` namespace, could be quite helpful, and prevent users from having to come up with their own types (another example in Fresh [here](https://github.com/denoland/fresh/blob/b510113655d0a018eab49c1bb2400bd737eb08a2/update/src/update.ts#L11-L15)).