sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [RenderParagraph] - Should call markNeedsLayout in the textAlign setter
Labels: framework,good first issue,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.16,found in release: 3.18

### Steps to reproduce

1. Use the provided reproduction code
2. Tap on the text to change the alignment from left to right

### Expected results

The `LayoutBuilder` surrounding the `Text` widget should build again, because the layout of its descendant`Text` changed.

### Actual results

The `LayoutBuilder` doesn't run again because the descendant `Text` didn't report a layout change. It only reported dirty paint.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

const Color darkBlue = Color.fromARGB(255, 18, 32, 47);

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(
        scaffoldBackgroundColor: darkBlue,
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: MyWidget(),
      ),
    );
  }
}

class MyWidget extends StatefulWidget {
  @override
  State<MyWidget> createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: (context, constraints) {
        print("Running LayoutBuilder");
        return SizedBox(
          width: double.infinity, 
          child: TextAlignChanger(),
        );
      }
    );
  }
}


class TextAlignChanger extends StatefulWidget {
  @override
  State<TextAlignChanger> createState() => _TextAlignChangerState();
}

class _TextAlignChangerState extends State<TextAlignChanger> {
  TextAlign _textAlign = TextAlign.left;
  
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () => setState(() {
        print("Changing text alignment to the right");
        _textAlign = TextAlign.right;
      }),
      child: Text(
        'Hello, World!',
        textAlign: _textAlign,
        style: Theme.of(context).textTheme.headlineMedium,
      ),
    );
  }
}
```

</details>


### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

Reproduced in Dart Pad: Based on Flutter 3.16.5 Dart SDK 3.2.3
Repository: material-ui
Issue: [joy-ui][Drawer] Add a dedicated z-index in the default theme
Labels: component: drawer,package: joy-ui,enhancement

### Duplicates

- [x] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Pretty self explanatory. Add a Drawer zIndex field in the default theme object like material ui.

### Examples 🌈

_No response_

### Motivation 🔦

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: txt2img or img2img Returns the image path or image nickname
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 ?

 txt2img or img2img Set send_images Returns the base64 image. 
If I don't want base64, I just want to get the address where save_images is saved, so I can use the api to get the image.  Similar to /static/{image_path} or C://{path}

### Proposed workflow

1. When save_images = True, the image name is returned


### Additional information

_No response_
Repository: PowerToys
Issue: Force File Format Change During Resizing
Labels: Idea-Enhancement,Product-Image Resizer

### Description of the new feature / enhancement

Allow the possibility of enforcing a file format change during the resize operation

### Scenario when this would be used?

When dealing with Apple HEIC files and it is necessary to quickly resize and convert them to JPG before it can be used in other sites.

### Supporting information

_No response_
Repository: next.js
Issue: next/image: Setting onError needlessly resets src on rerenders
Labels: bug,Image (next/image)

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/boring-wright-cf45dc

### To Reproduce

1. Start the application
2. Observe how the left gif (which has `onError` set) restarts every second, when there's a rerender due to a state change, while the right gif plays normally.
3. Comment out line 41 `onError={() => {}}`
4. The left gif no longer restarts every second

### Current vs. Expected behavior

I expect the image to behave the same regardless of whether `onError` is set or not. However, due to the `img.src = img.src` line linked below, setting `onError` has several side-effects (because `img.src = img.src` is not pure)

1. The image loads again, which fires `onLoad` on every re-render
2. Because the image is loaded again, gifs restart on every re-render
3. Frequent state changes, such as dragging an image around, will look very choppy as the image flashes between unloaded and loaded

### 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 Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.0.5-canary.32
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


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

Image optimization (next/image, next/legacy/image)

### Additional context

I believe this is due to the following lines, introduced in #39824

https://github.com/vercel/next.js/blob/fa32e32df47774c60a731553c447e1d4880bdd4b/packages/next/src/client/image-component.tsx#L241-L247
Repository: neovim
Issue: vim.lsp.buf.incoming_calls does not show full call hierarchy
Labels: enhancement,lsp

### Problem

Although the LSP provides the entire call hierarchy information, Neovim only displays references that are one level deep. Similar to vscode, the entire call hierarchy should be shown in a window allowing us to explore all the paths. There is an unmaintained [plugin](https://github.com/crusj/hierarchy-tree-go.nvim?tab=readme-ov-file) that used to address this issue.

### Steps to reproduce using "nvim -u minimal_init.lua"

```
:lua vim.lsp.buf.incoming_calls()
```

### Expected behavior

Should display a window showing the full call hierarchy

### Neovim version (nvim -v)

NVIM v0.9.2 Build type: Release LuaJIT 2.1.0-beta3

### Language server name/version

golang.org/x/tools/gopls@v0.11.0 h1:/nvKHdTtePQmrv9XN3gIUN9MOdUrKzO/dcqgbG6x8EY=

### Operating system/version

macos

### Log file

_No response_
Repository: pytorch
Issue: Reland guarded config
Labels: triaged,oncall: pt2,module: dynamo

### 🐛 Describe the bug

Reland https://github.com/pytorch/pytorch/pull/111299

Filing an issue so we do not lose it

### Versions

main

cc @anijain2305 @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @gchanan @zou3519 @msaroufim @wconstab @bdhirsh
Repository: TypeScript
Issue: Reverse mapped type fails to be inferred with constraint that is a union containing an intersection
Labels: Possible Improvement

### 🔎 Search Terms

reverse mapped type inference inferred constraint union intersection

### 🕗 Version & Regression Information

- This is the behavior in every version I tried. However, I'd call this to only be a bug for recent 5.4 nightlies - this should only work since https://github.com/microsoft/TypeScript/pull/55811 

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.4.0-dev.20231231#code/CYUwxgNghgTiAEAzArgOzAFwJYHtVNQB4AVeEADwxFWAGd4AlcHGYQ2jGLVAcwBp4qZAFsARiBgA+SQAocogFYAueAG8AUPHgBtANLxu8GQGsQATxyJ4pAGTwARFHsBKeAB8Ho+wF0VxPd4A3OoAvs5+wWB4HPDyCvAAvGqa8FAqACwATHwpoioAjAAMhTlaYCqcyCA5IZHRGPBwtMgQDUmIqHKKzsEA9L1aWgB6APzqQA

### 💻 Code

```ts
declare function fn<T extends Record<string, number>>(obj: {
  [K in (keyof T & "a") | "b"]: T[K];
}): T;
const obj = {
  a: 42,
  b: 100,
  c: true,
};
const result = fn(obj);
```


### 🙁 Actual behavior

It fails to infer `T` and uses its constraint

### 🙂 Expected behavior

It should infer `{ a: number; b: number; }`

### Additional information about the issue

_No response_
Repository: godot
Issue: Virtual keyboard height is wrong when making navigation bar permanently visible 
Labels: platform:android,topic:porting,needs testing,topic:input

### Tested versions

4.2 (betas and devs), 4.2, 4.2.1, 4.3 dev1

### System information

Editor on MacOS, exporting for Android

### Issue description

The keyboard height gets calculated wrong when using specific system UI flags on android which cause the navigation bar to be visible all the time. 
It seems like the virtual keyboard height gets added to the navigation bar height which i set as permanent in a flag.
Didnt find a workaround, spent already too much time trying to.
I hope the devs fix this in the next version

This only happens on android 11+, I have one phone on which this does not happen

Here are a few screenshots from a minimal reproduction project i made:

https://github.com/godotengine/godot/assets/144027730/ddc72c1b-0c04-427e-96a3-64f5c01c44a1
![Screenshot_20231231_134936_NavigationBarProblem](https://github.com/godotengine/godot/assets/144027730/2d408b0c-ac27-4fa8-9c7b-5c6a49159e96)
![Screenshot_20231231_134929_NavigationBarProblem](https://github.com/godotengine/godot/assets/144027730/e6f6cbc2-9ed2-4109-9218-63d3f5d24f2f)


### Steps to reproduce

Make a minimal project which needs the height of the virtual keyboard in android
Use these themes.xml, androidmanifest.xml and GodotApp.java files to properly style the app
[Archive.zip](https://github.com/godotengine/godot/files/13801011/Archive.zip)

Expand the keyboard
You will see a gap of the size of the navigation bar (if activated)

This only happens on android 11+, I have one phone on which this does not happen

### Minimal reproduction project (MRP)

[NavigationBarProblem.zip](https://github.com/godotengine/godot/files/13801018/NavigationBarProblem.zip)
[Archive.zip](https://github.com/godotengine/godot/files/13801019/Archive.zip)

The Archive.zip contains the GodotApp.java, themes.xml and AndroidManifest.xml which you have to insert in the android export template accordingly because i couldn't upload the project with that export template installed (too much space)
Repository: godot
Issue: obj meshes seem to randomly loose material override settings
Labels: bug,needs testing,topic:import,topic:3d

### Tested versions

Godot 4.1.3.stable

### System information

Godot v4.1.3.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4080 Laptop GPU (NVIDIA; 31.0.15.3713) - 13th Gen Intel(R) Core(TM) i7-13700HX (24 Threads)

### Issue description

Obj meshes randomly loose material override setting. Doesn't matter if the mesh uses 1 or 2 or more materials. Similar meshes behave differently. Only happens w/ obj, not gltf.

![obj_material_override](https://github.com/godotengine/godot/assets/59080934/e7df28e2-4511-40f1-9026-8b74be992d3b)


### Steps to reproduce

obj mesh dragged into scene , add surface material override.
Sometimes the material override will be gone after re-opening the editor, sometimes the material override will remain set.

### Minimal reproduction project (MRP)

n.a. : seems random.
Repository: PowerToys
Issue: Update (x)Bindings
Labels: Product-Settings

- use `x:Bind...` in place of `Binding`
- Remove `Path=`

> A new binding mechanism is available for Windows 10, which is optimized for performance and developer productivity. See [{x:Bind} markup extension](https://learn.microsoft.com/windows/uwp/xaml-platform/x-bind-markup-extension).
Repository: go
Issue: proposal: encoding/xml: support context on Marshaler/MarshalerAttr interfaces
Labels: Proposal

### Proposal Details

To some extent this is very similar to [encoding/xml: context-aware XML decoders](https://github.com/golang/go/issues/22290) and [encoding/json supports Marshaler/Unmarshaler interfaces with a context.Context](https://github.com/golang/go/issues/23059). It is different in that it is specific to XML encoding but in spirit it covers both the other two as well.

1. Add `func NewEncoderWithContext(ctx context.Context, w io.Writer) *Encoder`
2. Add `func (*Encoder) Context() context.Context`
3. Add `type ContextMarshalerAttr interface` containing `MarshalXMLAttrWithContext(ctx context.Context, name Name) (Attr, error)`

## Use cases

([To paraphrase](https://github.com/golang/go/issues/23059#issuecomment-350374086) @as) An HTTP handler in a go program marshals an XML document in response to an HTTP request. To give two examples: 

1. the XML document contains some attributes that are localized (i18n);
2. some attributes need to be masked either entirely or partially, due to some per-user data masking policy.

The context carries the i18n accepted language and the user information from which data masking policy is derived.

The response may be pre-prepared so that it may be marsahled for responses to different requests requiring different localization.

## Example use
```
type TranslatableString string

func (ts *TranslatableString) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
	var v string
	if ts != nil {
		v = i18n.GetString(e.Context(), *ts)
	}
	return e.EncodeElement(v, start)
}

func (ts *TranslatableString) MarshalXMLAttrWithContext(ctx context.Context, name xml.Name) (Attr, error) {
	var v string
	if ts != nil {
		v = i18n.GetString(ctx, *ts)
	}
	return xml.Attr{Name: name, Value: v}, nil
}
```

## Previous rebuttals

@rsc [commented](https://github.com/golang/go/issues/23059#issuecomment-363232268) on both the previous referenced proposals:

> Contexts are not for per-operation options. It's for timeouts and more global things like authorization credentials, not fine-grained per-call options. ...

However https://go.dev/blog/context specifically documents use of contexts in this manner with regard to extracting a user IP address from a request and associating it with a `Context` so that it may be used later in the request processing by a different package.
Repository: PowerToys
Issue: Create CheckBoxWithDescription in XAML
Labels: Product-Settings,Area-Build

Check out this branch: github.com/Jay-o-Way/PowerToys/tree/CheckBoxWithDescription (w.i.p.)
@niels9001 Seems to work fine, but there are quite some errors in the Error List...

Just have to look into if it's better to create a user control or a template control.

Concept

```xaml
	<?xml version="1.0" encoding="utf-8" ?>
<UserControl
	  x:Class="Microsoft.PowerToys.Settings.UI.Controls.CheckBoxWithDescription"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	    xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls"
	  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	    mc:Ignorable="d">

	  <Grid>
		<CheckBox>
		    <CheckBox.Content>
			<StackPanel>
			    <TextBlock Text="{x:Bind Header, FallbackValue=''}" TextWrapping="WrapWholeWords" />
			    <TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Text="{x:Bind Description, FallbackValue=''}" />
			</StackPanel>
		    </CheckBox.Content>
		</CheckBox>
	  </Grid>
</UserControl>
```
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add output filename config to prompts from file script.
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 ?

When generating images from text using script "Prompts from file or text box" it would be useful to also specify a file name for the output to be saved to. One usecase would be when experimenting with generating the regularisation images for Lora training, and some guides suggest saving reg images with the same filename as the training image.

### Proposed workflow

1. Go to txt2img
2. Choose script "Prompts from file or text box"
3. When writing the prompts use "--output_filename example1.png" option


### Additional information

_No response_
Repository: neovim
Issue: window view topline is not preserved when switching buffers
Labels: bug,bug-vim

### Problem

When switching between buffers in a window using `<C-6>`, the `topline` of the buffers is not preserved and the `lnum` position is reset to the middle of the window. This creates an uncomfortable experience when working with multiple buffers.

This issue is present in neovim 0.9.4 and the latest nightly release version. It happens when using a custom `init.lua`, with `-u NORC`, and with `-u NONE`. The code mentioned in a [fandom wiki page](https://vim.fandom.com/wiki/Avoid_scrolling_when_switch_buffers) about this issue doesn't seem to work on the latest nightly release. I wrote [some Lua code](https://0x0.st/Hgkc.lua) myself but that doesn't work reliably either. I posted [a thread on the Neovim Discourse forum](https://neovim.discourse.group/t/restore-view-and-position-of-window-when-switching-buffers/) but received no response.

### Steps to reproduce

1. Open two buffers in a window with at least as many lines as the maximum number of lines that can displayed at a time in a window
2. Scroll down in the 1st buffer at one of the last lines in a window (say 47th line if 52 lines are being shown in a window at a time)
3. Switch to the 2nd buffer.
4. Switch back to the 1st buffer
5. The `topline` is not preserved and `lnum` position is moved to the middle of the window
6. The same behavior is observed if a custom position is taken in the 2nd buffer.

### Expected behavior

The `topline` value should be preserved and the position of `lnum` in a buffer should be the same where it was left when switching back to it in a window. 

I hope this expected behavior is seen as sensible enough to land a fix in the neovim repository itself rather than fixing it with Lua code although any kind of reliable solution is welcome.

### Neovim version (nvim -v)

v0.9.4 and the latest nightly from GitHub

### Vim (not Nvim) behaves the same?

behaves similarly, vim 9.0.2167, the `topline` of only of one the buffers seems to be preserved

### Operating system/version

Arch Linux

### Terminal name/version

foot version 1.16.2 +pgo +ime +graphemes -assertions

### $TERM environment variable

foot-extra

### Installation

pacman package manager on Arch Linux, the latest nightly was grabbed from GitHub releases
Repository: node
Issue: Hooks loading `commonjs` files uses `import` condition for `require()`
Labels: confirmed-bug,loaders

### Version

21.5.0

### Platform

macOS

### Subsystem

_No response_

### What steps will reproduce the bug?

Reproduction: https://github.com/privatenumber/bug-node-hooks-cjs-conditions

### How often does it reproduce? Is there a required condition?

A Hook needs to be registered to load `commonjs` type files.

### What is the expected behavior? Why is that the expected behavior?

For the conditions to include `require` when `require(file)` is executed.

### What do you see instead?

The import conditions only include `import`.

Here are the logs:

```
resolve: {
	"url": "file:///repro/src/index.cjs",
	"context": {
		"conditions": [
			"node",
			"import",
			"node-addons"
		],
		"importAttributes": {}
	}
}
load: {
	"url": "file:///repro/src/index.cjs",
	"context": {
		"format": "commonjs",
		"importAttributes": {}
	}
}
resolve: {
	"url": "file:///repro/src/file.cjs",
	"context": {
		"conditions": [
			"node",
			"import",
			"node-addons"
		],
		"importAttributes": {},
		"parentURL": "file:///repro/src/index.cjs"
	}
}
load: {
	"url": "file:///repro/src/file.cjs",
	"context": {
		"format": "commonjs",
		"importAttributes": {}
	}
}

```

### Additional information

_No response_
Repository: Python
Issue: Misformatted/linked wiki entry in python sorting
Labels: awaiting triage

### What would you like to share?

[This file](https://github.com/TheAlgorithms/Python/wiki/Sorting-Algorithms#selection-sort) should be edited (I tried, but I dont think you can edit wikis on forks)

---
***current*** 

<img width="915" alt="image" src="https://github.com/TheAlgorithms/Python/assets/35689954/bbae9123-3575-418c-90bc-b610bc2b323e">

---
***proposed***

<img width="947" alt="image" src="https://github.com/TheAlgorithms/Python/assets/35689954/710127f1-ffd4-4d59-9b50-29fa5cecd598">

---



and requires modifying the markdown to this:

```markdown
<h2>Selection sort</h2>

**selection sort**, algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from the unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array.
<ol>
<li> The subarray which is already sorted.</li>
<li> Remaining subarray which is unsorted.</li>

In every iteration of selection sort, the minimum element (considering ascending order) from the unsorted subarray is picked and moved to the sorted subarray.

#### Properties:
- Worst-case performance O(n^2)
- Best-case performance O(n)
- Average case performance O(n^2)

**read more at: [Wikipedia](https://en.wikipedia.org/wiki/Selection_sort)**<br>
**code: [Selection sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/selection_sort.py)**

***
```
Note: edit required to bold text and link to code. [example ref](https://github.com/MarlieChiller/Python/wiki/Sorting-Algorithms#selection-sort)


### Additional information

_No response_
Repository: rust
Issue: rustdoc: search should prioritize matching capitalization
Labels: T-rustdoc,C-enhancement,A-rustdoc-search

It's good that rustdoc's search is case-insensitive, to make it easier for people to find what they're looking for. However, if the user types in capitalization that exactly matches (or more closely matches) a given type, rustdoc's search results should prioritize that type over things that don't match in case.

For example, https://doc.rust-lang.org/std/?search=Copy (note the capital `C`) should list `std::marker::Copy` at the top, not `std::fs::copy`.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"lolbinarycat"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: ollama
Issue: [enhancement] Support FROM gpt-4:0314
Labels: feature request

It would be nice if you could have a `Modelfile` that had an OpenAI model as a base. Then Ollama inference would call the OpenAI APIs instead of local inference with the built parameters. I know it seems like maybe it sorta defeats the point but I really like having the "Ollama facade" available. I use the March version of GPT-4 heavily but have to type "Let's think step by step" and all those other things all the time 😵‍💫 

I could look at making a PR for this if there is interest. @jmorganca @mchiang0610