sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Odd behaviour when SelectionArea wraps a TabBarView
Labels: framework,platform-web,a: desktop,has reproducible steps,P2,f: selection,team-framework,triaged-framework,found in release: 3.22,found in release: 3.23

### Steps to reproduce

1. Drag the mouse to attempt to select both texts. "First tab" text first, and "Sidesheet" text second.
a. Notice the tab-view slowly start to transition to the next tab, then bounce back.
b. Also notice the "Sidesheet" text won't get selected.
2. Next, click the green column. This seems to reset the focus scope? 
3. Now click somewhere on the yellow sidesheet.
a. Notice the same tab-transitioning behaviour.

Hopefully the video makes sense if this doesn't ^



### Expected results

I'm not entirely sure if this behaviour is intentional, but I would not expect the tab view to begin its transition.

### Actual results

Tab view transition begins.

### Code sample

[Dart pad minimal reproducible example](https://dartpad.dev/?id=831ae54ab3083c47950404514782dcc8)

### Screenshots or Video

<details open>
<summary>Video demonstration</summary>


https://github.com/flutter/flutter/assets/43067479/8298df8c-44ae-4352-8494-168dfd76c258


</details>


### Logs

_No response_

### Flutter Doctor output

N/A
Repository: ollama
Issue: (windows) ollama model download will not keep on downloading when reopen ollama
Labels: feature request

## ollama model download will not keep on downloading when reopen ollama or close ollama accidentally.


```
C:\Users\lin\AppData\Local\Ollama>ollama run gemma:7b
pulling manifest
pulling ef311de6af9d...  70% ▕███████████████████████████████████████                 ▏ 3.5 GB/5.0 GB  3.5 MB/s    7m9s
Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connectex: No connection could be made because the target machine actively refused it.
```


By the way,
can you help me figure out the problem


i have created "modelfile"
```
FROM D:\Users\lin\.cache\lm-studio\models\MaziyarPanahi\Meta-Llama-3-70B-Instruct-GGUF\Meta-Llama-3-70B-Instruct.Q3_K_M.gguf
FROM D:\Users\lin\.cache\lm-studio\models\mradermacher\CodeLlama3-8B-Python-GGUF\CodeLlama3-8B-Python.f16.gguf
FROM D:\Users\lin\.cache\lm-studio\models\nctu6\Llama3-TAIDE-LX-8B-Chat-Alpha1-GGUF\Llama3-TAIDE-LX-8B-Chat-Alpha1-Q3_K_S.gguf
```
`ollama run example`
transferring model data
```
using existing layer sha256:ffc76ff74022adb94c91442a6eea9a19d3f3568afdc79f03b82b848ff32d81a8
using existing layer sha256:2fef7d258c60b8ef793960004a61f9f0b87723e7ecbc610221efc0cdbe0bc46a
using existing layer sha256:e03488e99c59505264d1f0ff0fc33559e0ea5cd2c05744afbcf9bb485ad82e86
creating new layer sha256:7ca37b96018a295573217abe25dbc2f74318ae156f00cd457c322d0c37f94cc5
writing manifest
success
```
run
`ollama create example -f Modelfile`

the guide is not clear to understand
"https://github.com/ollama/ollama/blob/main/docs/import.md"

i have download some files, like Meta-Llama-3-70B-Instruct.Q3_K_M.gguf
and how to set the road or configure of using it in common share file?
not creating file

create in here?
"C:\Users\lin\AppData\Local\Ollama"
how to set model from  "C:\Users\lin.ollama\models" to 
"C:\Users\lin.cache\lm-studio\models"

What OS are you running the ollama server on?  windows 11 23H2
What version of Ollama are you using? ollama version is 0.1.39
Repository: flutter
Issue: [Impeller] BlendMode::kScreen should be a pipeline blend.
Labels: c: performance,P2,e: impeller,team-engine,triaged-engine

Currently the screen blend mode is implemented as an "advanced blend" aka as a shader. However, the screen equation https://www.w3.org/TR/compositing-1/#blendingscreen can actually be expressed as a "pipeline" aka hardware supported blend mode.

Switching this will 1) make the screen blend mode faster 2) reduce the amount of specialized blending code we have to maintain.

* Change the value of Entity::kLastPipelineBlendMode from modulate to screen.
* Add blend constants to switch in https://github.com/flutter/engine/blob/main/impeller/entity/contents/content_context.cc#L44
* Delete kScreen handling from advanced blend shaders: impeller/entity/shaders/blending/blend_select.frag
* Figure out what the inverted kScreen value is. We might need a kInvertedScreen (for certain filter types).
* Update porter_duff_blend.frag to support screen constants.

I think that about covers it :)

FYI @jtmcdole
Repository: react
Issue: [React 19] Will React support write web components as Lit does someday?
Labels: React 19

I mean, this question is important to know if we must wait for a new release or work with it someday, so many UI frameworks are integrated with React and this should help a lot, there should  be a small wrapper around the native API that should improve the productivity
Repository: rust
Issue: Missed optimization when checking slice index greater than accessed slice index
Labels: A-LLVM,I-slow,C-optimization

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->
For the following code:

```rust
pub fn larger_margin(v: &[u8], index: usize) -> bool {
    if index + 1 < v.len() {
        (v[index + 0] & 0xFF) == 0xED
    } else {
        false
    }
}
```

Rustc outputs this:

```assembly
larger_margin:
        lea     rax, [rdx + 1]
        cmp     rax, rsi
        jae     .LBB0_1
        cmp     rdx, rsi
        jae     .LBB0_5
        cmp     byte ptr [rdi + rdx], -19
        sete    al
        ret
.LBB0_1:
        xor     eax, eax
        ret
.LBB0_5:
        push    rax
        lea     rax, [rip + .L__unnamed_1]
        mov     rdi, rdx
        mov     rdx, rax
        call    qword ptr [rip + core::panicking::panic_bounds_check::h9bb22f08a42e1ac8@GOTPCREL]
```

I would expect the following, because I would have expected the compiler to elide the bounds check.
```assembly
larger_margin:
        lea     rax, [rdx + 1]
        cmp     rax, rsi
        jae     .LBB1_1
        cmp     byte ptr [rdi + rdx], -19
        sete    al
        ret
.LBB1_1:
        xor     eax, eax
        ret
```

The compiler does elide the bounds check in the following:

```rust
pub fn larger_margin(v: &[u8], index: usize) -> bool {
    if index < v.len() {
        (v[index + 0] & 0xFF) == 0xED
    } else {
        false
    }
}
```

Rustc appears to miss this optimization in all versions.

Godbolt: https://godbolt.org/z/zqYn7z7h8

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

The above is built with:
`rustc 1.80.0-nightly (6f3df08aa 2024-05-30)
binary: rustc
commit-hash: 6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4
commit-date: 2024-05-30
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.6`
Repository: TypeScript
Issue: implicit 'any' in method with parameter of inferred generic type
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

implicit 'any' method parameter inferred generic type

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about type inference


### ⏯ Playground Link

https://www.typescriptlang.org/play/?suppressImplicitAnyIndexErrors=true&ts=5.5.0-dev.20240531#code/C4TwDgpgBAwg9gOwM7AE4FcDGw6oDwAqAfFALxQDeAUFFAhAO5QAUAdOwIaoDmSAXHQgA3CKgDaAXQCUAggG4qAXwVUAlgmCiAZh0zQA4hHqpVmAApcOAWySES1WgCMuA5sFlSyJIXFUATBUUqKlBIKAAZVRRCKAgAD00EPyQoVAgOP0QAGxBKRUkScgcoMQBpKHUoAGsIEDgtKAIJATF4ZDQsHHwCMokiABooQ2NTC1RrWx7SvolAlT8ITCyuaC10BGxVRCgtODgY+MTk1PTMhBy8guYwSxsBSOixdlYmohkoH38VJY4kFIAxPaUGhQTQoZieChBII-P5QABCXDywQA9CioABJBBaURGPQ7DiqLJIKi7ODMMRUNEAPQA-CCxIC4IMKM5UG5IcFaIpFBJ+gzEagWWyOcCQTyJFRpKj0VicWkNtAGLgqiSyRSGUzhVxRcVaMBWGDgBCFNzeVKpMF1JpUDp8QA5dBWRyiMYTOzApwuFjuOhOl2oTykby+AJKYKhaAPYAAJgOCSMxzSGWyuShBTInpK5UqNTqDSaLTaKAw2FwhF6Aygjudrtuk0rsyU80WyzSO3Wm22ZLjBFiCaSKWTZwu6b613r9yisbwT3Yr3enzDVNl2NxiqgytQqtJexjGrRUDpmr22vZwE54t5-NoYkFZ91XKgEotQA

### 💻 Code

```ts
type Constructor<T> = {
  new (...args: never[]): T;
};

interface GenericParams<T> {
  bar: (t: T) => void;
}

type List<T extends readonly {}[]> = {
  [K in keyof T]: [Constructor<T[K]>, GenericParams<T[K]>];
};

declare function foo<T extends readonly {}[]>(params: List<[...T]>): void;

class Foo {
  test() {}
}
class Bar {}

// Inference fails
foo([
//^?
  [Foo, {bar(t) {

  }}],
  [Bar, {bar(t) {

  }}]
])

// Inference works
foo([
  [Foo, {bar(t) {
    t.test();
  }}]
])

interface NumberParams<T> {
  bar: (t: number) => void;
}

type List2<T extends readonly {}[]> = {
  [K in keyof T]: [Constructor<T[K]>, NumberParams<T[K]>];
};

declare function foo2<T extends readonly {}[]>(params: List2<[...T]>): void;

// Inference works
foo2([
// ^?
  [Foo, {bar(t) {

  }}],
  [Bar, {bar(t) {

  }}]
])
```

### 🙁 Actual behavior

In the `foo` example, the parameter `t` in the associated `bar` methods are inferred as type `any`. It seems that TypeScript should be able to infer the actual types of the parameters.

### 🙂 Expected behavior

`t` is inferred as type `T` in each case, i.e. `t` should be `Foo` in the `Foo` case, and `Bar` in the `Bar` case.

There are two additional cases provided here: one with a single element in the provided array, and one where the parameters are not generic (`number`). In both cases, type inference does assign the correct non-`any` type. It's unclear what exactly the issue is in the first case.

### Additional information about the issue

It's possible this is related to #47599, though I don't have enough knowledge of the internals to say whether or not it's the same class of bug. I haven't found another issue reporting this same behaviour.
Repository: flutter
Issue: [Impeller] Blur image filter differences.
Labels: P2,e: impeller,team-engine,triaged-engine

Impeller blur image filters are slightly different compared to Skias. For most scenes I've seen the differences are imperceptible. Neither the Skia or Impeller blurs are analytically clean for performance reasons so some amount of variance is to be expected. But a user-reported case in https://github.com/flutter/flutter/issues/148493 is instructive. I've further tried to simplify their test case to make a side by side comparison more useful.

Skia seems to be expanding the bounds of the texture but introducing stretching (?) towards the edges. Not sure I agree with this behavior but it is certainly a choice. Within the textured region, I was able to get similar results at a higher sigma. So perhaps our tuning is off.

This behavior was also easier to observe in noisier images which is exactly what this test case does.

![Blur](https://github.com/flutter/flutter/assets/44085/196f21b2-345a-4bc0-b415-067623331b88)

<details>
<summary>
<b>Noise texture used</b>
</summary>

![noise](https://github.com/flutter/flutter/assets/44085/0f014227-a985-4cd3-83d9-c886b09d445c)

</details>

<details>
<summary>
<b>Code for the reduced test case</b>
</summary>

```dart
import 'package:flutter/material.dart';
import 'dart:ui';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: ImageFiltered(
           imageFilter: ImageFilter.blur(sigmaX: 6, sigmaY: 6),
           child: Image.asset('assets/noise.png'),
         ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

```
</details>
Repository: flutter
Issue: [path_provider] Provide access to home directory on desktop
Labels: c: new feature,platform-mac,platform-windows,platform-linux,p: path_provider,package,c: proposal,team-ecosystem,P2,triaged-ecosystem

### Use case

How to get the home directory of a user using path_provider?

### Proposal

add getHomeDirectory to the package
Repository: go
Issue: x/tools: spurious test failures due to missing go command on plan9
Labels: NeedsInvestigation,Tools

```
#!watchflakes
default <- pkg == "golang.org/x/tools/cmd/callgraph" && test == "TestCallgraph"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8746494300878979953)):

    === RUN   TestCallgraph
        main_test.go:37: go tool not available: exec: "go": executable file not found in $path
    --- FAIL: TestCallgraph (0.10s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: flutter
Issue: ☂️ Make Device Doctor more robust
Labels: team-infra,P2,triaged-infra

Device doctor ([src](https://github.com/flutter/cocoon/tree/main/cipd_packages/device_doctor)) is a Dart CLI program that is used in Flutter's Devicelab for:

1. diagnosing bot configuration or hardware issues
2. running recovery scripts

For devicelab bot recovery tasks that can be automated, we should automate it in the Device Doctor.

- [ ] Detect "You might need to check your device for an authorization dialog" and dismiss it https://github.com/flutter/flutter/issues/149362
Repository: stable-diffusion-webui
Issue: [Feature Request]: New Line Prompt S/R
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 you use new lines in Prompt S/R, it should ignore commas.

### Proposed workflow

1. Go to Scripts, and Prompt S/R
2. Type in strings separated by new lines
3. You're allowed to use strings with commas in Prompt S/R!


### Additional information

_No response_
Repository: go
Issue: x/perf/cmd/benchstat: wrong number of header columns in CSV output
Labels: NeedsInvestigation,compiler/runtime

### Go version

go version go1.22.3 linux/amd64

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

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/ivan/.cache/go-build'
GOENV='/home/ivan/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/ivan/.local/share/asdf/installs/golang/1.22.2/packages/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/ivan/.local/share/asdf/installs/golang/1.22.2/packages'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/ivan/.local/share/asdf/installs/golang/1.22.3/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/ivan/.local/share/asdf/installs/golang/1.22.3/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/ivan/Code/Personal/etcd/bbolt/go.mod'
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-build144319728=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

Running `benchstat -output=csv` returns an invalid CSV (according to [RFC4180](https://www.ietf.org/rfc/rfc4180.txt)) because the header is missing columns.

I ran:

```
benchstat -confidence=0.75 -format=csv bm1.txt bm2.txt 2>/dev/null
```

Find attached both `bm1.txt` and `bm2.txt`.
* [bm1.txt](https://github.com/user-attachments/files/15519319/bm1.txt)
* [bm2.txt](https://github.com/user-attachments/files/15519320/bm2.txt)

### What did you see happen?

The output is:
```csv
,bm1.txt,,bm2.txt
,sec/op,CI,sec/op,CI,vs base,P
_FreelistRelease10K-8,0.000298085,0%,0.000298883,0%,~,p=0.400 n=3
...
```

Notice that the header has 4 columns, while the table rows have 7.

### What did you expect to see?

The headers in the CSV should have all of the columns, i.e.

```csv
,bm1.txt,,bm2.txt,,,
,sec/op,CI,sec/op,CI,vs base,P
_FreelistRelease10K-8,0.000298085,0%,0.000298883,0%,~,p=0.400 n=3
...
```
Repository: kubernetes
Issue: Provide support on Windows for CPUManagerPolicy
Labels: priority/important-soon,sig/node,kind/feature,sig/windows,needs-triage

### What would you like to be added?

Add support for CPU and memory affinity on windows by enabling the cpu, memory and topology managers for Windows, which are currently not enabled: https://github.com/kubernetes/kubernetes/blob/f386b4cd4a879e8e7c4c255900a755bd0a61f8f0/pkg/kubelet/cm/topologymanager/fake_topology_manager.go#

### Why is this needed?

Low latency workloads cohosted on the same nodes in Windows Server show noisy neighbor behavior preventing them to achieve their performance goals. This feature is needed to add the necessary isolation to accomplish both high performance and cohosting efficiency.
Repository: flutter
Issue: [Impeller] remove SkSL compilation for iOS projects once Skia backend is removed.
Labels: P2,e: impeller,team-engine,triaged-engine,slimpeller

Every little bit counts. Also this will technically unblock using modern GLSL features for folks only targeting iOS...
Repository: flutter
Issue: Move useful Flutter types out of Flutter
Labels: design doc,:scroll:

### Document Link

https://flutter.dev/go/move-flutter-agnostic-types

### What problem are you solving?

Developers want to use "Flutter types" (notably, a subset of classes from dart:ui and foundation.dart) in shareable code (data types, business logic) that can be used outside of a Flutter context.

While Flutter is the most popular context for running Dart code, it's not the only place. Examples:

* Dart server applications (see [pkg:serverpod](https://pub.dev/packages/serverpod))
* Dart web applications that don't use Flutter (see [pkg:jasper](https://pub.dev/packages/jaspr))
* Allowing Dart-compiled JS/WebAssembly to be used with non-Dart frameworks: Angular, React, etc.

See comments in https://github.com/dart-lang/sdk/issues/55816 

We want to make Flutter and Dart more useful in more places. By making it easier to share code outside of core Flutter, we make both offerings better.
Repository: next.js
Issue: Nonce exposed to the DOM
Labels: bug

### Link to the code that reproduces this issue

https://github.com/Ammar1999y/with-strict-csp

### To Reproduce

- Clone example from [next.js examples.](https://github.com/vercel/next.js/tree/canary/examples/with-strict-csp)
- Pass the nonce to script tags.
```
export default function RootLayout({ children }) {
  const nonce = headers().get("x-nonce");
  return (
    <html lang="en">
      <head>
        <Script src="/hi.js" nonce={nonce} />
        <Script id="hi" nonce={nonce}>
          {`console.log("hi")`}
        </Script>
        <script nonce={nonce} src="/hi.js" type="text/javascript" />
      </head>
      <body>{children}</body>
    </html>
  );
}
```
- Got warning in development `Warning: Prop nonce did not match. Server: "" Client: "N2MxOGNmYTMtYTIxMy00YmQzLTk5OTItZWFkNDgxOGI2YmNh"`
- And nonce exposed.
![](https://github.com/vercel/next.js/assets/96714530/0ad329e5-d23a-4dad-a597-35eeec2fb869)

- [Deploy it.](https://with-strict-csp-eta.vercel.app)

### Current vs. Expected behavior

### Expected
- No nonce exposed to the DOM when adding it to script.

### Current
- nonce exposed to the DOM when adding it to script.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 8157
  Available CPU cores: 2
Binaries:
  Node: 20.11.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: 14.1.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: N/A
```


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

Not sure

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

next dev (local), next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: godot
Issue: TileMapLayers that are children of Control nodes have their rendering quadrants affected by physics interpolation even if TileMapLayer has physics interpolation turned off
Labels: bug,topic:physics,needs testing,topic:2d

### Tested versions

- Reproducible in: 4.3.dev6 and 4.3.beta1

### System information

Godot v4.3.beta1.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5244) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 Threads)

### Issue description

When physics interpolation is turned on in a project, calling `set_cell` on a TileMapLayer results in the rendering quadrant containing the cell being interpolated. This occurs even if turning physics interpolation off for the TileMapLayer, or calling `reset_physics_interpolation`. This only becomes apparent if the TileMapLayer is a child of a Control node.

### Steps to reproduce

Turn on physics interpolation in a project, create a control node, create a child TileMapLayer with a TileSet, and call `set_cell` on the TileMapLayer in your code at some point while the game is running.

In the below MRP, simply click anywhere in the window to place a tile. Notice how the tile doesn't immediately appear at the correct location, but instead the rendering quadrant it is contained in slides into place.

It's important to note that this happens even if the control node isn't the immediate parent. This seems to happen if it's an ancestor at all.

### Minimal reproduction project (MRP)

[tilemaplayer-bug.zip](https://github.com/user-attachments/files/15520177/tilemaplayer-bug.zip)
Repository: excalidraw
Issue: [Accessibility] Support for high-contrast themes
Labels: dark-theme

## Issue

Excalidaw does not seem fully compatible with Windows high-contrast themes.
In particular, the palette's color chips are all white, and the transparent background chips are very low-contrast.

![image](https://github.com/excalidraw/excalidraw/assets/3290313/4ab216a9-6bc3-4e4b-b6a7-9729c537ea8d)

## Reproduction steps
1. Open Chrome
2. Go to https://excalidraw.com
3. Select any shape
4. On **Windows** go to **Settings -> Accessibility -> Contrast themes**
5. Select **Night sky** theme