sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Have Awake change setting on detection of a device.
Labels: Idea-Enhancement,Product-Awake

### Description of the new feature / enhancement

When a device like Bluetooth headphones connect Awake changes it's keep awake interval.

### Scenario when this would be used?

Some users may want different keep awake intervals when specific features are being used.

### Supporting information

toolbar icon access:
Keep awake on device connecton -> pick device -> pick a keep awake interval options
Repository: ollama
Issue: Mistake tools calls +-every user prompt.
Labels: bug

### What is the issue?

Model: `llama3.1:8b`

TOOLS:
```json
[
  {
    "type": "function",
    "function": {
      "name": "base64DecodeTool",
      "description": "Tool to decode base64 string.",
      "parameters": {
        "type": "object",
        "properties": {
          "str": {
            "type": "string",
            "description": "string to be decoded"
          }
        },
        "required": [
          "str"
        ]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "getAnimalNameRatingTool",
      "description": "Tool to get cat/dog name rating.",
      "parameters": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name of the animal"
          }
        },
        "required": [
          "name"
        ]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "toggleLightTool",
      "description": "Tool to on/off light",
      "parameters": {
        "type": "object",
        "properties": {
          "state": {
            "type": "boolean",
            "description": "state of light"
          }
        },
        "required": [
          "state"
        ]
      }
    }
  }
]
```

Dialogs examples:
```json
[
  { "role": "user", "content": "Hey" },
  { "role": "assistant", "tool_calls": "..." },
  { "role": "tool", "content": "Rating of name \"cat\" is: 10" },
  { "role": "assistant", "content": "You asked about cat, and I got it's rating as 10! Would you like to know something else?" }
]
```

```json
[
  { "role": "user", "content": "Hey" },
  { "role": "assistant", "tool_calls": "..." },
  { "role": "tool", "content": "Light now is off" },
  { "role": "assistant", "content": "Hello" }
]
```

### OS

Docker

### GPU

Nvidia

### CPU

AMD

### Ollama version

0.3.3
Repository: ollama
Issue: /save does not preserve existing parameters
Labels: bug

### What is the issue?

I am working on a modelfile and did the following...

```
ollama run --verbose llama3.1:8b
/set parameter num_ctx 131072
/set parameter num_predict -2

/save llama3.1:8b-128k
/bye
```
I then kill and restart ollama and run the new modelfile

```
ollama run --verbose llama3.1:8b-128k
```

Performing a /show modefile shows that my parameters were saved but then I realize I want mlock
```
/set parameter use_mlock true
/save llama3.1:8b-128k
/bye
```

Now if I kill ollama and restart it with 
ollama run --verbose llama3.1:8b-128k

Doing a show modelfile shows that the only parameter is use_mlock.

The expected behavior is that it would preserve pre-existing parameters between saves. That does not appear to be occuring.

### OS

macOS

### GPU

Other

### CPU

Intel

### Ollama version

0.3.3
Repository: go
Issue: x/pkgsite: hyperlink does not inherit version for standard library packages.
Labels: help wanted,NeedsFix,pkgsite

### What is the URL of the page with the issue?

https://pkg.go.dev/iter@go1.23rc2#hdr-Standard_Library_Usage

### What is your user agent?

Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

### Screenshot

Working link to the same package, includes version:
![image](https://github.com/user-attachments/assets/fb370cbd-bae9-47fa-9f99-3443f5917c7f)

Broken link to a different package, does not include version:
![image](https://github.com/user-attachments/assets/0fafbd20-1fa2-4f6b-a8cd-72ddb4c56784)


### What did you do?

1. Open https://pkg.go.dev/iter@go1.23rc2#hdr-Standard_Library_Usage
2. Click on the link in  `For example, [maps.Keys](https://pkg.go.dev/maps#Keys) returns an iterator over the keys of a map`


### What did you see happen?

Observe that the link points to the latest(`go1.22.6`), which does not contain `maps.Keys` function. The anchor link is broken. 
Note: 1.23rc2 does contain that function.

### What did you expect to see?

I expected that if I explicitly chose to browse version 1.23rc2, all links would be pointing to that version.
Repository: godot
Issue: Rendering of File System File Icons And File Names Out of Range
Labels: bug,confirmed,topic:gui

### Tested versions

- Reproducible in: 4.3.rc2.mono

### System information

Godot v4.3.rc2.mono - Windows 10.0.19045 - Vulkan (Mobile) - dedicated Intel(R) Iris(R) Xe Graphics (Intel Corporation; 31.0.101.5592)

### Issue description

![image](https://github.com/user-attachments/assets/4c7e21ac-890d-4043-a002-14e7f164eb07)
As you can see in the picture, the file icon and file name are displayed on the highlighted border. I think this is a rendering error.

### Steps to reproduce

Import some files and you can reproduce it

### Minimal reproduction project (MRP)

N/A
Repository: godot
Issue: "Use Snap" in 3D editor is weird
Labels: bug,topic:editor,usability,topic:3d

### Tested versions

v4.3.rc.custom_build [4359c28fe]

### System information

Godot v4.3.rc (4359c28fe) - Ubuntu 22.04.4 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (nvidia; 535.183.01) - Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 Threads)

### Issue description

It's hard to pin-down. I searched a lot for another issue like it, but found nothing. Hope it's unique.

Roughly:
1. Switch between scenes
2. Select an object
3. Grab one of the basis handles and start dragging it to move the object
4. It will either move smoothly (1 px at a time) or it will seem to dig its heels-in and refuse.
5. If it refuses, then **snap** is on—but this does not always sync with the visual pressed state of the **snap** button on the menu, which can appear off when it's on and vice-versa.
6. Toggling snap mostly fixes it, for a moment, but before long it gets confused again. Goto 1 :)

Thought: My project uses objects are all about 10cm cubed. Could it be the zoom size, or something?

### Steps to reproduce

It's a pure editor thing, afaict. No project required.

### Minimal reproduction project (MRP)

None
Repository: flutter
Issue: Add a way to supply Android manifest fragments from the Flutter SDK
Labels: c: new feature,platform-android,tool,c: proposal,P2,team-android,triaged-android

### Use case

Some features might require the addition of a section to the Android manifest file. This is the case for https://github.com/flutter/flutter/issues/139361.

The `flutter create` templates can be updated to add the required section to newly created projects, but this doesn't solve the problem for existing Flutter apps.

Potentially this could be handled by writing migrations to update the `AndroidManifest.xml` source files in the app's tree, but (a) migrations are always tricky; (b) if for some reason a developer wanted to opt out of a given change, that approach doesn't offer a great answer for them. So this issue proposes a different solution.

### Proposal

Add a way for the Flutter SDK to supply one more Android manifest source file for the Android build process to [merge together](https://developer.android.com/build/manage-manifests#merge-manifests) when it produces the manifest for the built app.

This is something Flutter plugins already routinely do. For Flutter itself, it'd probably involve adding an `AndroidManifest.xml` file somewhere in the framework tree under `packages/flutter_tools/`, like where the Gradle build scripts appear, and then having our Gradle build scripts include that file among the sources when building the app.

For any element we add that a developer wants to opt out of, they can always tell the Android build process to leave it out [by saying `tools:node="remove"`](https://developer.android.com/build/manage-manifests#node_markers) at a corresponding spot in their own `AndroidManifest.xml` source file.

Once we have that mechanism:
* We could use it for the `<queries>` element added in #137207. This would cause #139361 to start working for existing Flutter apps, fixing a platform-fidelity issue.
* We could use it for the INTERNET permission, which today is handled with the `flutter create` template: the template puts `<uses-permission android:name="android.permission.INTERNET"/>` in the files `android/app/src/{debug,profile}/AndroidManifest.xml`. Using the new mechanism, those would become redundant and the template could be simplified by removing them — so in fact both those files can be completely deleted from the template.
* There may be other pieces of `AndroidManifest.xml` that would also be productive to move to this mechanism instead of the `flutter create` templates. In general, this should be used for details that are determined by Flutter and just need to be in the manifest for the Flutter tool and engine to fully do their jobs; the templates should be used where we're just filling in a starting point for the developer to adjust from there.

(Based on the discussion starting at https://github.com/flutter/flutter/issues/139361#issuecomment-1878206806 .)
Repository: angular
Issue: Child routes don't always render on reused parent route
Labels: freq1: low,area: router,P3

### Which @angular/* package(s) are the source of the bug?

router

### Is this a regression?

No

### Description

I have a basic app in the following structure:
```
['/', 'events', '', ':id', 'edit']
['/', 'chats', ':id', 'edit']
```
I have a custom route reuse strategy to reuse `/events` and `/events/:id` as well as `/chats` and `/chats/:id`.

In general, this works. However, navigating to the child route 'edit' (or any other child routes if there were any) will not always work.
It seems to depend on how deep the child route is.
In my example, `/events/:id/edit` will break, but `/chats/:id/edit` will not.
Note how `events` has a path equal to `''`. 

What should happen:
1. Open/refresh the demo.
2. Select Chat 1.
3. Click Edit.
4. The edit box shows up as expected.
5. Once you have done this, the entire app will continue working as expected, clicking through the different sections.

To break editing:
1. Open/refresh the demo (need to open to the `/` or `/events`)
2. Click Chats
3. Click Events
4. Click Event 1
5. Click Edit.
6. The edit box will not show up.
7. It will not be possible to edit an event until you refresh the page.

There are other paths to break it. The key thing to break it is that the `/events` page needs to be reused, before loading one of its child routes.

Works:
Start from Chats -> Events -> Event 1 -> Edit item
Start from Chats -> Events -> Event 1 -> Chats -> Events -> Event 1 -> Edit item

Doesn't work:
Start from Chats -> Events -> Chats -> Events -> Event 1 -> Edit item

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/broken-reuse-child

### Please provide the exception or error you saw

```true
Child route is not rendered into <router-outlet></router-outlet>
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 18.1.1
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 18.1.1
... cli, common, compiler, compiler-cli, core, platform-browser
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1801.1
@angular-devkit/build-angular   18.1.1
@angular-devkit/core            18.1.1
@angular-devkit/schematics      18.1.1
@schematics/angular             18.1.1
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.8
```


### Anything else?

The correct title will still appear in the browser.
There are no console errors.
Repository: rust
Issue: Data race from atomic data moves, or confusion from thread sanitizer?
Labels: A-LLVM,A-concurrency,T-compiler,A-sanitizers,C-bug,E-needs-mcve

I'm sorry I wasn't able to come up with a small testcase. Somehow all my attempts at small tests cases didn't end up triggering the problem, and I don't have the time to try to trim down the full testcase. Hopefully, the analysis will be enough and you won't even need to reproduce.

So here are the steps to reproduce:

- Ensure you have `clang` in your `$PATH`
- Clone https://github.com/glandium/atomic-tsan-rust-testcase
- `cd atomic-tsan-rust-testcase/http3server`
- Run the following command: `env python=python3 NSS_DIR=$PWD/../nss LD_LIBRARY_PATH=$PWD/../dist/Release/lib RUSTFLAGS=-Zsanitizer=thread cargo +nightly run --release -Zbuild-std=std,panic_abort --target=x86_64-unknown-linux-gnu -- ../http3serverDB`

As soon as the server starts, you'll see `WARNING: ThreadSanitizer: data race` and stack traces. There are multiple such warnings showing up for different places, but they all originate from the same pattern for the `Previous write of size n at x`:
```
    #0 __tsan_memcpy /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_memintrinsics.cpp:27 (http3server+0x2017fe) (BuildId: 01efb624d0f67240a6daeb8c6c9ab95c7293d3f7)
    #1 alloc::boxed::Box<T>::new /home/glandium/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:257 (http3server+0x47fd09) (BuildId: 01efb624d0f67240a6daeb8c6c9ab95c7293d3f7)
    #2 alloc::sync::Arc<T>::new /home/glandium/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:387 (http3server+0x47fd09)
    #3 tokio::runtime::io::registration_set::RegistrationSet::allocate /home/glandium/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/io/registration_set.rs:61 (http3server+0x47fd09)
```

What's going on here is that tokio is doing `Arc::new(ScheduledIo::default())`, where `ScheduledIo` contains an `AtomicUsize` and a `Mutex`. But the move of the `ScheduleIO` from the stack into the `Box` that ends up converted to an `Arc` is done with `__tsan_memcpy`. IOW, no `__tsan_atomicsomething` is involved., which looks like is what TSan is not happy about.

Now, the question is whether this is just a false positive with TSan, or whether this is indicative of missing annotations in the original LLVM IR, with possible repercussions on non-TSan builds.
Repository: angular
Issue: Angular devtools: Display injector hierarchy for createEnvironmentInjector injectors
Labels: area: devtools

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

_No response_

### Description

Currently devtools shows injectors created by elements or routes. But if I create a custom environment injector using  `createEnvironmentInjector` it won't be displayed as a child of the environment injector it is based on.

### Proposed solution

Add an option to show injectors created by `createEnvironmentInjector` in the injector tree

### Alternatives considered

None...
Repository: PowerToys
Issue: PowerToys Run should somehow indicate that an application was started
Labels: Needs-Triage

### Description of the new feature / enhancement

I often start steam via the Run dialog. Steam takes some time to load and there is no feedback that it was started.
It would be nice if there was some feedback from the Run dialog that the application was started.
For example:
- Run a small animation on the started item in the drop down list
- Close the Run dialog if the option was successfully selected

### Scenario when this would be used?

Within PowerToys Run dialog when running any application which takes a long time to show its interface.

### Supporting information

_No response_
Repository: opencv
Issue: findCirclesGrid fails to detect calibration board
Labels: bug,category: calib3d

### System Information

OpenCV version: 4.10.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: GCC 11.4.0

### Detailed description

I am using OpenCV's findCirclesGrid function to detect circles on a custom calibration board. However, the function is unable to find the circles. Our calibration board has larger circles than those typically used for standard calibration boards, which seems to be causing the issue.
![GMSL_IDX0_framegrab_1120891958](https://github.com/user-attachments/assets/75818d18-dd9d-4b19-a9f6-9ed1e30d8951)
![GMSL_IDX0_framegrab_1058891997](https://github.com/user-attachments/assets/9e4898b7-2238-4af6-ac64-b1bc54aa5c9e)
![GMSL_IDX0_framegrab_1075625320](https://github.com/user-attachments/assets/ebb388b3-7326-4f58-a6b0-ac8bdbdb1721)




### Steps to reproduce

1. Create a calibration board with larger circles (e.g., with a radius significantly larger than standard).
2. Capture an image of the board.
3. Use cv2.findCirclesGrid() to detect the circles.
4. Observe that the function fails to detect the circles.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] 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: next.js
Issue: tsconfig `references` not supported by Turbopack
Labels: bug,Turbopack,linear: turbopack

### Link to the code that reproduces this issue

https://github.com/sibbng/next-paths-repro

### To Reproduce

1. Run dev script
2. Visit site
3. Check terminal


### Current vs. Expected behavior

When using the `references` option in `tsconfig.json` these references are not resolved, meaning that any option passed in them does not work.

The implementation for webpack uses Typescript directly to load the config.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 8021
  Available CPU cores: 4
Binaries:
  Node: 22.4.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.0-canary.106 // Latest available version is detected (15.0.0-canary.106).
  eslint-config-next: N/A
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Turbopack

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

_No response_
Repository: godot
Issue: Callable::is_null does not check custom callable name.
Labels: discussion,topic:core

### Tested versions

- Reproducible in 4.2.2

### System information

Windows 11

### Issue description

I think there is an undesired behaviour in `Callable::is_null` method I found while designing lambda callables for `godot-kotlin`:  
```cpp
    _FORCE_INLINE_ bool is_null() const {
        return method == StringName() && object == 0;
    }
```

This method checks the `method` property, which is empty `StringName` for `CustomCallable`, which force to create a middleman to not have `object == 0`. (I think that's why C# has a middleman for their delegate callables)  
I think changing the use of `method` property by a call to `Callable::get_method` would get rid of those middleman:  

```cpp
StringName Callable::get_method() const {
    if (is_custom()) {
        return get_custom()->get_method();
    }
    return method;
}
```

### Steps to reproduce

None to provide.

### Minimal reproduction project (MRP)

None to provide.
Repository: transformers
Issue: SAM can't process batches of nonhomogenous-count of bounding-boxes per image
Labels: Feature request,Good Difficult Issue,bug

### System Info

- `transformers` version: 4.43.3
- Platform: Windows-10-10.0.22631-SP0
- Python version: 3.10.14
- Huggingface_hub version: 0.24.3
- Safetensors version: 0.4.3
- Accelerate version: 0.33.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.4.0 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: No
- Using GPU in script?: Yes
- GPU type: NVIDIA GeForce RTX 3090

### Who can help?

@amyeroberts 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

Run the following code:

```
from transformers import SamProcessor, SamModel
from PIL import Image
import requests

# Load processor and model
processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
model = SamModel.from_pretrained("facebook/sam-vit-base")

# Prepare batch of images and bounding boxes
image_url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(image_url, stream=True).raw)
images = [image, image]

bounding_boxes = [
    [[100, 100, 200, 200], [200, 200, 400, 400]],  # bounding boxes for image1
    [[100, 100, 200, 200]],  # bounding boxes for image2
]

# Process the batch
inputs = processor(
    images=images,
    input_boxes=bounding_boxes,
    return_tensors="pt"
)
```

You should get the following error:
`ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.`

Originating from:
`transformers\models\sam\processing_sam.py` (line 142)

### Expected behavior

As an end-user, I expect to get 2 masks/results for the first image and 1 mask/result for the second image.
Repository: ollama
Issue: Error: unexpected EOF:
Labels: bug

### What is the issue?

hi? I'm studying fine tuning.
I learned using the "unsloth/gemma-2-2b-it" model.
I created the dataset myself and it contains less than 100 cases.
I want to use only the fine-tuned model without combining it with the existing model.
I was able to use the fine-tuned model using the code below.

`
pipe_finetuned = pipeline(
    "text-generation",
    model = finetuned_model,
    tokenizer = tokenizer,
    max_new_tokens = 512
)

outputs = pipe_finetuned(
    prompt,
    do_sample = True,
    temperature = 0.35,
    top_k = 5,
    top_p = 0.95,
    add_special_tokens = True
)

print(outputs[0]["generated_text"])
`

Finally, I plan to deploy the fine-tuned model to ollama.
So I created a gguf file using llama.cpp.
After that I created a Modelfile.

`
FROM gemma-2-2B-it-F16.gguf

TEMPLATE """{{ if .System }}
system
{{ .System }}
{{ end }}

user
{{ .Prompt }}


assistant
"""

PARAMETER stop 

PARAMETER stop 

PARAMETER 

`

And I did ollama create, but an EOF error occurred.

`
ollama create gemma2 -f Modelfile
`

How can I fix this error?
help me ....
![file_list](https://github.com/user-attachments/assets/5f3c8811-e994-40de-9c2e-23d77c189bc6)


### OS

Linux

### GPU

Nvidia

### CPU

_No response_

### Ollama version

ollama version is 0.1.47