sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: ListWheelScrollView magnification should grow and shrink instead.
Labels: framework,f: scrolling,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

The magnification feature on the ListWheelScrollView feels broken. The number disappears at a hard line, shows up as bigger, then reappears as smaller.

It technically works, but I'm sure it doens't work for most designs.

https://github.com/flutter/flutter/assets/5642485/c663fb6c-f0f1-441f-846c-b3180734009c

### Proposal

Instead it should translate the item to grow, until it reaches the maximum magnification in the center, then translate it to shrink.

In addition, if the shrink capability was parameterized, and you kept the current functionality the same, then you should probably parameterize another feature: alternative to 'grow and shrink' you should be able to specify that when an item enters the magnification region it should just snap to the center and stay there until it would otherwise exit. That way it feels much better for selection purposes.

So that comes down to...
```
ListWheelScrollView(
    useMagnifier: true,
    magnification: 3,
    itemExtent: 50,
    children: [...]
    // added:
    magnificationType: MagnificationType.grow, // or MagnificationType.snap
    magnificationGrowthCurve: Curves.whatever // might as well parameterize this too.
)
```
Repository: opencv
Issue: cv::warpAffine A bug suspected to be dues to some limit of variables
Labels: bug,duplicate,category: imgproc

### System Information

Opencv version: 4.7.0
OS: Windows 10
Compiler: MSVC++17.x VS2022
Programing Language: C++







### Detailed description

Description:
When using warpAffine with BORDER_WARP, output a bitmap excceeding 60000 pixels, expecting some rest of the image be warpped. However, pixels beyond some range would not be warpped correctly and seems to be staying in BORDER_REPLICATE state. looks like an variable stopped at 32768?
in the test code you may see the bottom part of the image is not filled with boxes, but a clip of blackness.
Thank to this, some of my passive mats cannot get to work at all. If you could point out which code should be fixed, it shall be grateful.


### Steps to reproduce

Sample Code to replicate the bug:

```
cv::Mat ones=cv::Mat::ones(16,16, CV_8UC1) * 127;
cv::Mat padded = cv::copyMakeBorder(ones, padded, 8,8,8,8, BORDER_CONSTANT);
cv::Point2f src = {{0,0},{0,1}, {1,1}};
cv::Point2f dest = {{0,0},{0,1}, {1,1}};
cv::Mat M = cv::getAffineTransform(src, dest);
cv::Mat t;
cv::warpAffine(padded, t, M, cv::Size(padded.cols, 60000), INTER_AREA, BORDER_WARP);
cv::imwrite("fucked.png", t);

```



### Issue submission checklist

- [X] I report the issue, it's not a question
- [ ] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: TypeScript
Issue: Should go to type declaration on arrays if possible
Labels: Suggestion,Help Wanted,Experience Enhancement

# Suggestion

@Andarist thank you so much for fixing #14148, however, it doesn't work if we modify the code so the array is part of the desired type:

```ts
type B = {}[]
declare const goToTypeDefinitionOnMe: B
```

`{}` can also be literal, like string union. It displays the type definition `B` only if it is not an empty object.

### STR

Go to type definition on `goToTypeDefinitionOnMe` in vscode.

### Actual behavior

It reveals only `lib.d.ts` `Array` definitions.

### Expected behavior

It should primarily reveal `type B`. Like as it does with the following code:

```ts
type B = { foo }[]
declare const goToTypeDefinitionOnMe: B
```

---

Of course, I faced this problem in more complicated examples. However I decided to simply the case here.

I understand that in some cases, unfortunately, information of the target type (e.g. string union) is lost. However I tried to debug here
https://github.com/microsoft/TypeScript/blob/2623fe7049cfd837552c1dfab0b3c4687f0ec8a2/src/services/goToDefinition.ts#L444
and I saw that `resolvedType` actually has `resolvedType.aliasSymbol.declarations[0]` which is what I'm looking for (it points to `type B`)! So as I understand we can improve behavior in the following case, right?

## 🔍 Search Terms

go to type definition on array types still point to array from lib.d.ts

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: stable-diffusion-webui
Issue: [Bug]: can't read prompt from txt while using img2img batch
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?

using png info from directory with txt file can‘t append to prompt
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/113016462/e89b38e6-860a-4c0e-ba44-80dd718feadf)
input
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/113016462/e298491e-05c2-4203-b641-9689820b70d6)

**1girl,best best quality,** 
Negative prompt:  loweres,(worst quality:2),(low quality:2),(normal quality:2),
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 4059184577, Size: 512x512, Model hash: a110c57cea, Model: hxranime_v10, Clip skip: 2, ENSD: 31337, Version: v1.5.1

output
Negative prompt:  loweres,(worst quality:2),(low quality:2),(normal quality:2),
Steps: 10, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 1681505487, Size: 512x512, Model hash: a110c57cea, Model: hxranime_v10, Denoising strength: 0.7, Clip skip: 2, Noise multiplier: 0.86, Version: v1.5.1

if I use png info with itself, everything is OK.


### Steps to reproduce the problem

1. Go to img2img batch
2. set input dir ,output dir, png info dir with txt file 
3. set parameters  to take from png info

### What should have happened?

prompt in txt file should be Correctly add to the generated information


### Version or Commit where the problem happens

Version: v1.5.1

### What Python version are you running on ?

Python 3.10.x

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

Linux

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

xformers

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

Microsoft Edge

### Command Line Arguments

```Shell
no
```


### List of extensions

no

### Console logs

```Shell
no
```


### Additional information

_No response_
Repository: PowerToys
Issue: Always on top for Virtual desktop (Pin + AoT)
Labels: Idea-New PowerToy,Product-Virtual Desktop

### Description of the new feature / enhancement

It would be nice for ppl using virtual desktop feature (win+tab) to have the capacity to choose between, always on top for this virtual desktop or for all for virtual desktop (by default now)

### Scenario when this would be used?

Working on multiple virtual desktop and windows always on top, don't mess with other virtual desktop.

### Supporting information

_No response_
Repository: material-ui
Issue: [Skeleton][joy-ui] Horizontal scrollbar
Labels: bug 🐛,component: skeleton,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹


https://github.com/mui/material-ui/assets/3165635/40d4c271-3a49-47e0-b9a3-c809d819c880

https://master--material-ui.netlify.app/joy-ui/react-skeleton/


### Current behavior 😯

_No response_

### Expected behavior 🤔

_No response_

### Context 🔦

Reported in https://github.com/mui/material-ui/pull/37893#issuecomment-1646356405 

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: create-react-app
Issue: How to add DOTS to the pagination React js
Labels: needs triage

I'm trying to add a DOTS to my pagination table, so I started with some totus to get my data from an asp api as a JSON file then I displayed it on a table but my data was too big, which obligated me to use the pagination 
in my pagination I was confronted with the same problem which is the number of pages, I had a lot of pages (2000 pages)
this is my function who displays the pages

`showPagination = () => {
        const { pageNumbers,postsPerPage, vehicules } = this.state;
        
        const totalPosts = vehicules.length;
   
        for(let i = 1; i<=Math.ceil(totalPosts/postsPerPage); i++){
          pageNumbers[i-1]=i
        }
       
        const pagination = (pageNumbers) => {
          this.setState({currentPage: pageNumbers})
        }
        const onNext = (currentPage) => { 
        
             
            this.setState({currentPage: this.state.currentPage+1})
          }
        
          const onPrevious = (currentPage) => {
        
            this.setState({currentPage: this.state.currentPage-1})
          };
        return(

            
          
          <ul className="pagination">
          <li className={classnames('pagination-item', {    disabled: this.state.currentPage* this.state.postsPerPage > this.state.vehicules.length  })} >
         
         { 
         (this.state.currentPage* this.state.postsPerPage > 10 )?  <button className="page-link" onClick={()=> onPrevious(this.state.currentPage)} >السابق </button> :<button className="page-link" >السابق  </button> 
      
         }
    </li>

          {pageNumbers.map(number => (
            <li key={number} className={this.state.currentPage === number ? 'page-item active' : 'page-item' }>
            <button onClick={()=> pagination(number)} className="page-link"> {number} </button>
            </li>
          ))}
           <li className={classnames('pagination-item', {    disabled: this.state.currentPage* this.state.postsPerPage > this.state.vehicules.length  })} >
         
           { 
           (this.state.currentPage* this.state.postsPerPage <= this.state.vehicules.length )?  <button className="page-link" onClick={()=> onNext(this.state.currentPage)} >التالي </button> :<button className="page-link"  >التالي  </button> 
        
           }
      </li>
          </ul>
          
        )
   
   
      }`
Repository: flutter
Issue: SelectableText: `userUpdateTextEditingValue` calls `_scheduleShowCaretOnScreen` when it should not
Labels: a: text input,c: new feature,framework,f: material design,c: proposal,P3,team-text-input,triaged-text-input

### 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

I have a SelectableText widget where I need to select text programatically using `userUpdateTextEditingValue`. The issue arises when I need to deselect the text by passing `TextEditingValue.empty` that in turn triggers `_scheduleShowCaretOnScreen(withAnimation: true);` causing a scroll jump. 

### Proposal

I would suggest that we check the TextEditingValue passed in and in case it is empty, the `_scheduleShowCaretOnScreen` will not get executed as there is really no need for it and this way, the unwanted scroll jumps are prevented.

Something along those lines (note ***):
```
void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause? cause) {
    // Compare the current TextEditingValue with the pre-format new
    // TextEditingValue value, in case the formatter would reject the change.
    final bool shouldShowCaret = (widget.readOnly
      ? _value.selection != value.selection
      : _value != value) && ***!value.selection.isCollapsed***;
    if (shouldShowCaret) {
      _scheduleShowCaretOnScreen(withAnimation: true);
    }

    // Even if the value doesn't change, it may be necessary to focus and build
    // the selection overlay. For example, this happens when right clicking an
    // unfocused field that previously had a selection in the same spot.
    if (value == textEditingValue) {
      if (!widget.focusNode.hasFocus) {
        _flagInternalFocus();
        widget.focusNode.requestFocus();
        _selectionOverlay = _createSelectionOverlay();
      }
      return;
    }

    _formatAndSetValue(value, cause, userInteraction: true);
  }
```
Repository: go
Issue: proposal: x/crypto/ssh: add callbacks to dynamically change server and client configuration
Labels: Proposal,Proposal-Crypto

I propose to add the following callbacks.

```
// ServerConfig holds server specific configuration data.
type ServerConfig struct {
        ...
        // ConfigForClientCallback, if not nil, is called after receiving the
	// version from the client. It may return a non-nil ServerConfig in order to
	// change the ServerConfig that will be used to handle this connection. If
	// the returned ServerConfig is nil, the original ServerConfig will be used.
	// The ServerConfig returned by this callback may not be subsequently
	// modified. If an error is returned the handshake will fail.
	ConfigForClientCallback func(conn ConnMetadata) (*ServerConfig, error)
}
```

```
// A ClientConfig structure is used to configure a Client. It must not be
// modified after having been passed to an SSH function.
type ClientConfig struct {
        ...
        // ConfigForServerCallback, if not nil, is called after receiving the
	// version from the server. It may return a non-nil ClientConfig in order to
	// change the ClientConfig that will be used to handle this connection. If
	// the returned ClientConfig is nil, the original ClientConfig will be used.
	// The ClientConfig returned by this callback may not be subsequently
	// modified. If an error is returned the handshake will fail.
	ConfigForServerCallback func(conn ConnMetadata) (*ClientConfig, error)
```

These additions enable many advanced use cases, for example we can enable/disable algorithms, authentication methods, banners etc. depending on the client or server version.

cc @golang/security
Repository: stable-diffusion-webui
Issue: [Bug]: sd_xl_base_1.0.safetensors load errored
Labels: asking-for-help-with-local-system-issues,sdxl

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

[Bug]: sd_xl_base_1.0.safetensors load errored

### Steps to reproduce the problem

1. input prompt
2. generate button

### What should have happened?

error

### Version or Commit where the problem happens

1.5.1

### What Python version are you running on ?

None

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

_No response_

### What device are you running WebUI on?

_No response_

### Cross attention optimization

Automatic

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

_No response_

### Command Line Arguments

```Shell
--api
```


### List of extensions

none

### Console logs

```Shell
Traceback (most recent call last): File "/stable-diffusion-webui/modules/shared.py";, line 593, in set self.data_labels[key].onchange() File "/stable-diffusion-webui/modules/call_queue.py";, line 15, in f res = func(*args, **kwargs) File "/stable-diffusion-webui/webui.py";, line 225, in <lambda> shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()), call=False) File "/stable-diffusion-webui/modules/sd_models.py"">sd_models.py"">sd_models.py";, line 547, in reload_model_weights load_model(checkpoint_info, already_loaded_state_dict=state_dict) File "/stable-diffusion-webui/modules/sd_models.py", line 486, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/stable-diffusion-webui/modules/sd_models.py", line 286, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py";, line 2041, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for LatentDiffusion: size mismatch for model.diffusion_model.input_blocks.4.1.proj_in.weight: copying a param with shape torch.Size([640, 640]) from checkpoint, the shape in current model is torch.Size([640, 640, 1, 1]). size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([640, 2048]) from checkpoint, the shape in current model is torch.Size([640, 768]). size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([640, 2048]) from checkpoint, the shape in current model is torch.Size([640, 768]).
```


### Additional information

_No response_
Repository: TypeScript
Issue: Combining jsdoc `@this` and `@param` yields invalid `.d.ts` file
Labels: Needs Investigation,Rescheduled

# Bug Report

When combining the JSDoc tags `@this` and `@param`, TypeScript yields invalid type definitions.

### 🔎 Search Terms

jsdoc this constructor 

### 🕗 Version & Regression Information

- Behaviour was wrong in 4.5.
- Behaviour changed in 4.6, but is also wrong. This behaviour still exists in 5.2.0-dev.20230729.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?filetype=js#code/PQKhCgAIUgBAXAngBwKYBNUDNIAVUBOAzgPYB2UMsyBJaBSkA3kfAQJZkDmAvpGQEMAtqkrBw4UBGhx4AC3ZFm+YuR6U4yAQWHNWHbn0Eix4VAA9kJBpExYBAVwA28SFgdkAxvHbk3ZAApjVABKZihIeUUAOmDIAF5+YVF1IA)

### 💻 Code

```ts
/**
 * @typedef Person
 * @property {string} name
 */

/**
 * @this {Person}
 * @param {string} name
 */
export default function fn(name) {
  this.name = name
}
```

### 🙁 Actual behavior

```ts
/**
 * @typedef Person
 * @property {string} name
 */
/**
 * @this {Person}
 * @param {string} name
 */
export default function fn(this: Person, name: string): void;
export default class fn {
    /**
     * @typedef Person
     * @property {string} name
     */
    /**
     * @this {Person}
     * @param {string} name
     */
    constructor(this: Person, name: string);
    //          ^^^^^^^^^^^^ This is not valid TypeScript
    name: string;
}
export type Person = {
    name: string;
};
```

TypeScript 4.5 and before (also wrong):

```ts
/**
 * @typedef Person
 * @property {string} name
 */
/**
 * @this {Person}
 * @param {string} name
 */
export default function fn(name: string): void;
//                        ^^ Missing this
export default class fn {
    /**
     * @typedef Person
     * @property {string} name
     */
    /**
     * @this {Person}
     * @param {string} name
     */
    constructor(name: string);
    name: string;
}
export type Person = {
    name: string;
};
```

### 🙂 Expected behavior

I would expect the class to not be generated. The generated class definition is the part that is invalid, and also if this function was written in TypeScript, the class would not be generated.

```ts
/**
 * @typedef Person
 * @property {string} name
 */
/**
 * @this {Person}
 * @param {string} name
 */
export default function fn(this: Person, name: string): void;
export type Person = {
    name: string;
};
```
Repository: stable-diffusion-webui
Issue: SD installation “Error code: 128”
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?

#

### Steps to reproduce the problem

win11,python3.10.6,,Error when running webui-user.bat


### What should have happened?

#

### Version or Commit where the problem happens

no

### What Python version are you running on ?

None

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

_No response_

### What device are you running WebUI on?

_No response_

### Cross attention optimization

Automatic

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

_No response_

### Command Line Arguments

```Shell
venv "D:\SD\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Traceback (most recent call last):
  File "D:\SD\stable-diffusion-webui\launch.py", line 39, in <module>
    main()
  File "D:\SD\stable-diffusion-webui\launch.py", line 30, in main
    prepare_environment()
  File "D:\SD\stable-diffusion-webui\modules\launch_utils.py", line 345, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SD\stable-diffusion-webui\modules\launch_utils.py", line 156, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
  File "D:\SD\stable-diffusion-webui\modules\launch_utils.py", line 113, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SD\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
```


### List of extensions

no

### Console logs

```Shell
no
```


### Additional information

no
Repository: godot
Issue: C# [Tool] nodes can't reference a [GlobalClass] custom resource
Labels: topic:dotnet

### Godot version

v4.1.1.stable.mono.official [bd6af8e0e]

### System information

Windows 10

### Issue description

![Bug-UseGlobalClassResourceInTool](https://github.com/godotengine/godot/assets/1223554/bb26df66-b58d-489b-8f00-73578e4ea228)

I have a custom node marked as [Tool] inheriting from Node and a custom resource marked as [GlobalClass] inheriting from resource.
It is not possible to have an [Export] field in the node which references the resource. The cast from Resource always fails.
Removing the [Tool] attribute makes it work properly.

I have attached a minimal C# example.
Can't reproduce the project in GDScript. It works.

### Steps to reproduce

Open the attached sample scene.
Select on the only node in the scene.
View its custom properties in the inspector.
Right click on the <empty> value of the first and only script filed.
Select "New MyBuggyResource" in an attempt to create a new instance.

This fails as long as the node script is marked with the [Tool] attribute, even though the scripts contain no executable code.


### Minimal reproduction project

[BugGlobalClassResource.zip](https://github.com/godotengine/godot/files/12207488/BugGlobalClassResource.zip)