sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: flutter assemble needs better documentation / error messages
Labels: c: new feature,d: api docs,c: proposal,P2,team-tool,triaged-tool

### 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

When using flutter assemble command, there are many undocumented features / options.

for instance, this is the sequence I use to generate an app bundle for windows-x64
```
flutter create test_module1 --template=module --local-engine-src-path /d/workspace/engine/src --local-engine=host_debug

cd test_module1
flutter assemble --local-engine=host_debug -dTargetPlatform=windows-x64 '-dBuildMode=debug' -dTrackWidgetCreation=true --output="jit_bundle" -dTargetFile="lib/main.dart" debug_bundle_windows_assets
flutter assemble --local-engine=host_release -dTargetPlatform=windows-x64 '-dBuildMode=release' --output="aot_bundle" -dTargetFile="lib/main.dart" release_bundle_windows_assets
```

- the target name (release_bundle_windows_assets / debug_bundle_windows_assets) are not documented and had to be deduced by looking at the src code for the command
- non of the options TargetPlatform, BuildMode are documented.
- in case of a missing option, there is no way to know which **valid** options are available.


### Proposal

- There should be a documentation for all options that are required to successfully run the command.
- The user should be able to get list valid options for each argument.
- Error messages should list valid options instead of just saying an option is missing.
Repository: go
Issue: proposal: net/http/cookiejar: `Secure` should not be checked on `localhost` 
Labels: Security,Proposal

Most browsers cookie implementation have an exception for the `Secure` flag when the request is send to a `localhost` domain (as stated [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies)).

I would appreciate if this behavior would be reflected in Go's cookie jar implementation. Probably best would be to add a new `Options` property which actively enables this behavior, so that it is disabled by default to avoid changing the currently expected behavior.

If this suggestion gets accepted, I would appreciate to take a try on an implementation contribution.
Repository: PowerToys
Issue: Feature request : Auto update content for Peek 
Labels: Idea-Enhancement,Help Wanted,Product-Peek

### Description of the new feature / enhancement

Allow peek to update the content in the opened window based on what file is currently selected by the user. This feature also exists within the QuickLook app available in the Microsoft Store. It would be time saving instead of having to close or repoen a new window each time using Ctrl + Space.

### Scenario when this would be used?

When Peek is opened and the user clicks on another file, the content of the window should update itself instead of having to reopen it

### Supporting information

take a look at QuickLook on the microsoft stora, this feature is present in this software
https://www.microsoft.com/store/productId/9NV4BS3L1H4S
Repository: bitcoin
Issue: fuzz: Use-of-uninitialized-value in evutil_inet_pton
Labels: Bug,Tests,Upstream

See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56529.

We already have [workarounds](https://github.com/bitcoin/bitcoin/blob/80f04febbc6048f9da85b9289e0d433d1f164de0/src/test/fuzz/http_request.cpp#L37-L43) for similar issues in the `http_request` target, so this probably just needs another one of those.
Repository: godot
Issue: Drag and dropping icons from file explorer don't show up in filesystem if i drag then to file manager they show up in filesystem
Labels: bug,topic:editor,regression

### Godot version

4.0.3.stable.mono.official [5222a99f5]

### System information

Windows 10 - godot 4.0.3 stable.mono

### Issue description

Dragging and dropping icons from file explorer or desktop doesn't show up in the file system dock. If I drag them to the file manager folder directly, they show up in the file system dock.

### Steps to reproduce

Create New Project in godot then drag and drop an icon from file explorer or desktop to the file system should show the icon in the file system dock, but nothing shows. If I drag and drop from file explorer or desktop into file manager icons show in the file system.

### Minimal reproduction project

new project
Repository: vscode
Issue: File quick open should allow to trigger "Go to line"
Labels: feature-request,quick-open

In quick open today, you can drill into symbols from the file picker such as:

![Recording 2023-06-26 at 11 48 46](https://github.com/microsoft/vscode/assets/900690/e9401c37-c6a8-4e6f-bd07-06e1c72a8f9d)

It would be nice if typing `:` with a line/column pattern would do the same.

Symbols are implemented from here:

https://github.com/microsoft/vscode/blob/70a4e12ca660cbc4c50affc72d5bbb0e8a814965/src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts#L856

//cc @Tyriar @TylerLeonhardt
Repository: rust
Issue: `#[link(kind="raw-dylib")]` mis-compiles if cdylib export has the same name
Labels: A-linkage,O-windows,T-compiler,C-bug,F-raw_dylib

When importing a function via `raw-dylib`, if an exported function has the same name, the compiler will use the exported version in all cases.

```rust
mod user32 {
    #[link(name = "user32", kind="raw-dylib")]
    extern "C" {
        pub fn MessageBoxA();
    }
}

#[no_mangle]
pub unsafe extern "C" fn MessageBoxA()  {
    user32::MessageBoxA()
}
```

I would expect my exported `MessageBoxA` function to compile to a `jmp` or a `call` to the one imported via IAT.

Instead, in Debug mode it compiles to a call of my function, and in Release mode, an infinite loop (x64 assembly `eb fe: jmp 0x0`).
The DLL does not even have an IAT entry for `user32.dll`.

If I name my function `my_MessageBoxA` and then rename it using a `.def` file during linking, the behaviour is as expected.

### Meta

`rustc --version --verbose`:
```
rustc 1.72.0-nightly (8084f397c 2023-06-25)
binary: rustc
commit-hash: 8084f397c6710e4748994dd1488b1f399283d469
commit-date: 2023-06-25
host: x86_64-pc-windows-msvc
release: 1.72.0-nightly
LLVM version: 16.0.5
```

Relates to: #58713
Repository: flutter
Issue: Save Scroll State with floatHeaderSlivers in NestedScrollView
Labels: c: new feature,framework,f: scrolling,c: proposal,P2,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

here is a working example

https://dartpad.dev/?id=c97e0d127230ed3ca0b4238e9ece9d3c

notice here that when the switching tabs the scroll position changes if you change the example by removing `floating: true` and `floatHeaderSlivers: true` and setting `pinned: true` the scroll position is saved

is there a way around this? 

### Proposal

enable save scroll position  with floating header
Repository: PowerToys
Issue: Count characters in text
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Calculate and count the number of characters, words, sentences and paragraphs in your text just by right clicking it maybe with an action named "characters count" or "text inspection".

### Scenario when this would be used?

Everywhere, starting from writing emails, essays in office365, copy pasting from chats or files.

### Supporting information

I work in I.T. and to test some functionalities I sometimes need to be precise with characters of text in fields, or when writing emails I usually need to "keep it short" and search for how many occurrences or typos are in the text.
Repository: neovim
Issue: paste, clipboard: detect and handle content types (images, URLs)
Labels: enhancement,provider,clipboard

# Problem

- `vim.paste()` (`nvim_paste`) and clipboard put (`"+p`) doesn't understand image contents or URLs (e.g. in a markdown file).
- Overriding the [clipboard provider](https://github.com/neovim/neovim/blob/0ca2d11c1f473d9924c261c9dbd4e38730932bb4/runtime/autoload/provider/clipboard.vim#L1) is awkward. It should just be a function, similar to `vim.paste`.

# Expected behavior

- Convert all providers to `vim.ui.*` functions, e.g. clipboard provider is exposed as `vim.ui.clipboard()`
    - #27119
- Support buffer-local (filetype) handlers for `vim.paste` (and clipboard?).
    - Related: ([on_func()](https://github.com/neovim/neovim/pull/22598))
- Detect binary content and pass a flag to `vim.paste` ?
- Markdown filetype: default handling of image/URL paste
    - When a URL is pasted over a visual selection, replace the selected `text` with `[text](<url>)`.
    - When an image is pasted, do something like [clipboard-image.nvim](https://github.com/ekickx/clipboard-image.nvim/blob/d1550dc26729b7954f95269952e90471b838fa25/lua/clipboard-image/utils.lua#L18-L42): 
        1. save the image to CWD
        2. create a `<image src="...">` reference to it.

# Implementation

- https://github.com/sindresorhus/file-type looks useful: "detect filetype by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of a buffer."
- https://github.com/HakonHarnes/img-clip.nvim
Repository: svelte
Issue: Add a `component` scope to transitions
Labels: feature request,compiler,transition/animation

### Describe the problem

It would be useful to have a `component` scope for transitions so that we can limit our transitions to the component.

This would let us be confident how a transition will behave without knowing anything about how the component is being used.

The issue with `global` scope is the behaviour depends on whether the component is inside a block or not.
With `local` scope, we cannot animate within nested blocks.

I've created a REPL playground:

https://svelte.dev/repl/30f6e9d08aa2466daab7eaa0f739076f?version=4.0.0

And recorded a short video explaining the idea / issue:

https://www.loom.com/share/a25fc70f3987474ea3fbe647e1716a10

### Describe the proposed solution

Adding `transition:slide|component` that limits the scope of transitions to the current component.

### Alternatives considered

None

### Importance

would make my life easier
Repository: transformers
Issue: Finetune ClipSeg model 
Labels: Good Second Issue,Vision

### Feature request

Quite recently, I was exploring zero-shot classification to segment medical images. And it looks quite promising. I stumbled upon ```ClipSeg``` a few days ago and it looked wonderful and just well-suited for my work. Unfortunately, I couldn't find any tutorials or notebooks that showed how to perform fine-tuning on ClipSeg model. 

I am assuming, we have to train the decoder with a dataset containing binary classification images of cells and their corresponding masks and a text description. Unfortunately, a bit confused. is there any tutorials/resources anyone could suggest on this topic? Cuz I couldn't none. 

### Motivation

```ClipSeg``` shows a lot of potential than SAM (Segment Anything Model). Unfortunately, there's no fine-tuning script neither instructions on **How to prepare the dataset?** which is very frustrating. Will love some help from the community. 

And another point, Zero shot classification looks a way lot better option with fine-tuning than training a model like ```U-Net```, ```R-CNN``` and others from scratch while you have very few images and don't have much room to play around with.

### Your contribution

I could provide a PR on my LinkedIn, where I have a lot of AI experts as my connections and then I contribute in the programming as well.
Repository: vscode
Issue: Custom snippets not prioritized when quick suggestions are inline 
Labels: bug,inline-completions

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.79.2
- OS Version: Windows 11

### Steps to Reproduce:

1. Set quick suggestions to inline
2. Create a snippet
3. Type the snippet prefix characters in a file of an appropriate type

### Expected results:
Custom snippet should appear as the inline suggestion and first in the suggestions list (triggered by (`Ctrl + Space`))

### Actual results:
Custom snippet does not appear as the inline suggestion. And even though it is the first in the suggestions list, the focus initially is on the second suggestion that comes after it.


https://github.com/microsoft/vscode/assets/7148327/72056199-fc12-4996-9e7b-3b12a24b7025

Snippet:
```json
{
	"Absolutely positioned": {
		"prefix": "pa",
		"body": [
			"position: absolute;"
		]
	}
}
```

Settings:
```json
{
  "editor.quickSuggestions": {
    "other": "inline",
    "comments": "off",
    "strings": "off"
  },
  "emmet.showExpandedAbbreviation": "never"
}

```
Repository: pytorch
Issue: Add memory managemenet information for Apple silicon mps backend
Labels: triaged,enhancement,module: mps

### 🚀 The feature, motivation and pitch

Torch has useful memory management information for CUDA devices such as 
- `torch.cuda.mem_get_info`
- `torch.cuda.memory_summary`
- `torch.cuda.max_memory_allocated`
- etc...

which are useful for debugging purposes. Nevertheless, these functionalities are very limited for Apple silicon mps backend. Is it possible to include more memory management information in `torch.mps`? I think these would be the most relevant memory management information functions for mps devices that are missing:

- memory summary
- available/free GPU memory
- maximum allocated memory

### Alternatives

_No response_

### Additional context

_No response_

cc @kulinseth @albanD @malfet @DenisVieriu97 @razarmehr @abhudev
Repository: rust
Issue: `successors` is 2x slower than `map`
Labels: I-slow,C-enhancement,A-iterators,T-libs,C-optimization

I tried this code:

```rust
use std::iter::successors;

pub fn foo_map(y: u32) -> Vec<u32> {
    (0..).map(|i| y.pow(i)).take(5).collect()
}

pub fn foo_successors(y: u32) -> Vec<u32> {
    successors(Some(1), |x| Some(y * x)).take(5).collect()
}

```
[godbolt](https://rust.godbolt.org/z/r37nsj7vs)

I expected to see this happen: the same performance

Instead, this happened: `foo_successors` is ~2x slower than `foo_map`, and the assembly outputted has a ton of checks. Changing `foo_map` to `(0..).map(|i| Some(y.pow(i)).take(5).collect::<Option<_>>().unwrap()` produces identical assembly (afaict, I have bad eyes :D), which leads me to believe it's because of `Some`, which should be optimized out as it never returns `None`.

### Meta

`rustc --version --verbose`:
```
rustc 1.72.0-nightly (fe7454bf4 2023-06-19)
binary: rustc
commit-hash: fe7454bf439c93cbe9ac8a8f7fcfacd5a40244c2
commit-date: 2023-06-19
host: x86_64-unknown-linux-gnu
release: 1.72.0-nightly
LLVM version: 16.0.5
```

@rustbot label +I-slow
Repository: godot
Issue: Draw arc does not draw clockwise or counterclockwise according to start-end
Labels: discussion,documentation,topic:2d

### Godot version

4.0.2

### System information

Linux mint

### Issue description

	var angle = PI
	draw_arc(pos, 70, angle+PI/2,angle-PI/2, 30, Color.ALICE_BLUE,2,true)
	draw_arc(pos, 70, angle-PI/2,angle+PI/2, 30, Color.ALICE_BLUE,2,true)

Everyone should agree this should draw a circle, but it doesn't, because godot is fundamentally broken.
This was supposed to be closed -> https://github.com/godotengine/godot/issues/64685

### Steps to reproduce

Copy this code into _draw
run it. notice how it doesn't draw a circle?

I just wanted to flip the arc, what good is an arc drawing function if you can't control the direction of the arc?

### Minimal reproduction project

[messing about.zip](https://github.com/godotengine/godot/files/11870237/messing.about.zip)
Repository: go
Issue: proposal: syscall: deprecate SysProcAttr.NoInheritHandles
Labels: OS-Windows,Proposal

(Extracted from https://github.com/golang/go/issues/60942#issuecomment-1604504596 by @bcmills)

### Background

On Windows, the `NoInheritHandles` property of [syscall.SysProcAttr](https://pkg.go.dev/syscall?GOOS=windows#SysProcAttr) makes that child processes created via `syscall.StartProcess` (and the corresponding `os` and `os/exec` wrappers) to not inherit any handle, even those marked as inheritable.

This knob was added in #42098, in a time where all inheritable handles were implicitly inherited. A bit latter, #44011 and [CL 288298](go.dev/cl/288298) refactored how handles were inherited by child processes so that all inheritable handles that needed to be inherited would have to be explicitly listed as such.

With this last change, `NoInheritHandles` became obsolete and redundant, as one can achieve the same behavior by setting all standard handles (stored in `ProcAttr.Files`) to `os.DevNull` and not adding any valid handle into `SysProcAttr.AdditionalInheritedHandles`. Note that this is the `os/exec` default's behavior.

The new behavior can led to confusion, like in the following gist, where `cmd.StdOut` is not inherited even when explicitly marked as such. 

```go
cmd := exec.Command("./foo.exe")
cmd.Stdout = os.Stdout
cmd.SysProcAttr = &syscall.SysProcAttr{
	NoInheritHandles: false,
}
cmd.Run()
```

I've also seen the following redundant pattern in the wild:

```go
cmd := exec.Command(os.Args[0], rebuiltArgs...)
cmd.Stdin = nil
cmd.Stdout = nil
cmd.Stderr = nil
cmd.SysProcAttr = &windows.SysProcAttr{
    NoInheritHandles: true,
}
cmd.Run()
```

### Proposal

Given that `NoInheritHandles` is redundant and adds cognitive load to the `os/exec` API, mark it as deprecated and better document the alternative solution.

The next step after deprecating it would be to error out in case `NoInheritHandles` is true and a non-null handle is set to be inherited via the aforementioned APIs. I prefer to leave this for a future proposal, as doing so might break some currently valid usages.
Repository: material-ui
Issue: [docs] Passing sx example causes eslint "unsafe spready of 'any' value in an array" error
Labels: package: system,support: docs-feedback

### Duplicates

- [X] I have searched the existing issues

### Related page

https://mui.com/system/getting-started/the-sx-prop/#passing-the-sx-prop

### Kind of issue

Broken demonstration

### Issue description

Perhaps the expectation is that users are not prohibiting the use of the `any` type via eslint, but if I copy the `ListHeader` component example from the referenced docs page, eslint marks it as an error. Specifically, the case where `sx` is an array, eslint sees it as type `any[]` (see screenshot). I'm wondering if there's a way to make this work with the eslint setting to prevent the use of `any`?

![image](https://github.com/mui/material-ui/assets/28648423/671736b1-1ad7-4a62-a0f8-6a5b64786404)


### Context 🔦

Attempting to make a component that accepts an `sx` property and passes it to its first child component (a MUI `Box`) and add a few style prop settings. See screenshot.

![image](https://github.com/mui/material-ui/assets/28648423/a88ce0f3-1996-4fbd-a8e2-7838373f7cc6)
Repository: storybook
Issue: [Bug]: 🐞 🐞 Image URL variable being replaced in autodocs source block with the entire URL
Labels: bug,needs triage

### Describe the bug

I am creating a story that passes in an image url stored in a variable to my component. When I view the component in Storybook 7's autodocs page and click on the "Show Code" button to view the underlying source block, the variable that stores the URL is replaced with the entire URL itself which is very long and hard to decipher. In the previous Storybook version 6, it did not replace the variable and kept it in the code which is what we hope to replicate in the new version.

Here is the original Storybook 6 version which shows the variable:
![image](https://github.com/storybookjs/storybook/assets/75461349/39f41658-e08d-4a17-b54a-fd75dfd1fa93)

Here is the current Storybook 7 version in which the imageURL variable is replaced with the entire URL:
![image](https://github.com/storybookjs/storybook/assets/75461349/3ac302ca-b427-495e-b9c5-961b01a12a39)

### To Reproduce

Please view the Avatar component in the generated autodocs from this reproduction:
https://stackblitz.com/edit/github-cnson3?file=src%2Fstories%2FAvatar.stories.js

### System

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: View ops on fake tensors can dispatch `detach`es to backend kernels
Labels: triaged,module: fakeTensor

### 🐛 Describe the bug

When calling an op on a fake tensor, a new fake tensor is made for the result via a call to `detach` ([src](https://github.com/pytorch/pytorch/blob/4e204ff87b1fbbe2f1820704e45559a6f448ce17/torch/csrc/autograd/python_variable.cpp#L587)).

When the op called is a view op (& I think it also needs to be one without a meta Python decomposition?), the `detach` is dispatched to the backend kernel (eg. `CPU`), instead of to `Meta`.

This usually isn't an issue as `detach` is declared only `CompositExplicitAutograd`, but for out-of-tree backends that _do_ intercept `detach`, they'll end up getting an op dispatched with a `Meta` tensor—this becomes an issue with Dynamo.

# Reproducer

```python
import torch

t = torch.randn(5, 5)
with torch._subclasses.FakeTensorMode() as mode:
    ft = mode.from_tensor(t)
    res = ft.view(25)
    print(res)
```

Running this with `TORCH_SHOW_DISPATCH_TRACE=1` gives:

```
[call] op=[aten::randn], key=[BackendSelect]
  [redispatch] op=[aten::randn], key=[CPU]
   [call] op=[aten::empty.memory_format], key=[BackendSelect]
    [redispatch] op=[aten::empty.memory_format], key=[CPU]
   [call] op=[aten::normal_], key=[CPU]
 [call] op=[aten::empty_strided], key=[BackendSelect]
  [redispatch] op=[aten::empty_strided], key=[Meta]
 [call] op=[aten::detach], key=[AutogradMeta]
  [redispatch] op=[aten::detach], key=[ADInplaceOrView]
   [redispatch] op=[aten::detach], key=[Meta]
 [call] op=[aten::view], key=[PythonTLSSnapshot]
  [redispatchBoxed] op=[aten::view], key=[AutogradCPU]
   [redispatch] op=[aten::view], key=[ADInplaceOrView]
    [redispatch] op=[aten::view], key=[Python]
     [callBoxed] op=[aten::view], key=[Meta]
     [call] op=[aten::detach], key=[CPU]    <<<<<===== The issue
FakeTensor(..., size=(25,))
```

Running in a debugger, in `THPVariable_make_subclass` (called from `FakeTensor.__new__`), printing `toString(r.tensor(1).key_set())` gives `DispatchKeySet(CPU, ADInplaceOrView, AutogradCPU, AutocastCPU)`.

### Versions

Collecting environment information...
PyTorch version: 2.1.0a0+git4ff3108
Is debug build: True
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.25.0
[pip3] torch==2.1.0a0+git9593b3a
[conda] numpy                     1.25.0                   pypi_0    pypi
[conda] torch                     2.1.0a0+git9593b3a          pypi_0    pypi