sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Wonder why _MultiProcessingDataLoaderIter.__next__ too slow？
Labels: module: dataloader,triaged,module: data

### 🚀 The feature, motivation and pitch

I'm coding on protein generative task. when data is 6w + function description, the time cost is 
![img_v3_00dc_27188a47-8aa8-46d4-8228-f536ae3afe7g](https://github.com/user-attachments/assets/35f33d7c-c68c-42a7-8ab1-9db630c93ce1)

when data only 3w without funciton text description, the time cost is 
![img_v3_02dc_71fda11b-f3f1-4822-96f1-270f81eb82ag](https://github.com/user-attachments/assets/ebfbcbe7-518c-406b-a58f-c7eb107a80bc)

it's pretty wield that why it comes too slowly?
Thanks for your details reply and sorry to bother your time.

### Alternatives

_No response_

### Additional context

_No response_

cc @andrewkho @gokulavasan @SsnL @VitalyFedyunin @dzhulgakov
Repository: tensorflow
Issue: Proposal: Conditionally substitute boringSSL with system OpenSSL
Labels: stat:awaiting tensorflower,type:feature,type:build/install

Hello All,

As we know boringSSL doesn't support IBM Power architecture anymore, we are finding it difficult to build Tensorflow on Power with proper and updated boringSSL. Even if we just patch boringSSL to have Power support (by using older boringSSL or applying patch from previous commits that had Power support), it is difficult to maintain if boringSSL version gets updated with no equivalent changes for Power. 

Our Proposal: Use system installed OpenSSL instead of boringSSL based on a flag **only if** set. For e.g. USE_SYSTEM_OPENSSL

TF brings in boringSSL dependency directly and indirectly (through curl and grpc) during bazel build process. So, we have tried some changes which does following -
1. Use boringSSL and curl from the system (using TF_SYSTEM_LIBS)
2. Patched grpc to fallback to system openSSL include and library paths during its build. 
Note: grpc already provides similar mechanism when grpcio's wheel is being built through [setup.py](https://github.com/grpc/grpc/blob/master/setup.py#L301). But this mechanism doesn't work when we build grpc through bazel.

These changes have enabled us to build TF on Power, and our testing also didn't give any issues so far (some of the bazel tests and tensorflow/models). 

We want your opinion on this approach. Also, kindly let us know what all tests we should do to have better coverage of this replacement.

Thanks in advance.
Repository: vscode
Issue: Explorer: Smart paste when code in clipboard
Labels: feature-request,file-explorer

If GH Copilot is installed, explorer paste could check on paste what is in clipboard, and if it is Editor content, Explorer could generate a fileName and put the content in that file

XCode does something like this https://x.com/v_pradeilles/status/1818610834232508534
Repository: pytorch
Issue: DISABLED test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16 (__main__.TestDeviceUtilsCPU)
Labels: module: sparse,triaged,module: flaky-tests,skipped,module: unknown

Platforms: asan, linux, mac, macos, win, windows

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16&suite=TestDeviceUtilsCPU&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/28262642026).

Over the past 3 hours, it has been determined flaky in 32 workflow(s) with 96 failures and 32 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.



<details><summary>Sample error message</summary>

```
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/test/test_utils.py", line 1164, in test_device_mode_ops
    for sample in samples:
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 388, in __next__
    input_idx, input_val = next(self.child_iter)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 36, in generator_context
    response = gen.send(None)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_methods_invocations.py", line 1230, in sample_inputs_sparse_mm_reduce
    .to_sparse_csr()
RuntimeError: Please register PrivateUse1HooksInterface by `RegisterPrivateUse1HooksInterface` first.

To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_WITH_ASAN=1 PYTORCH_TEST_WITH_UBSAN=1 python test/test_utils.py -k TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```

</details>


Test file path: `test_utils.py`

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @clee2000
Repository: pytorch
Issue: unbacked symint comparison fails: `Eq(Max(1, u3), u1)`
Labels: triaged,oncall: pt2,module: dynamic shapes

Minified from internal, after patching in https://github.com/pytorch/pytorch/pull/132524:
```
    @torch._dynamo.config.patch(
        capture_dynamic_output_shape_ops=True, capture_scalar_outputs=True
    )
    def test_unbacked_view_and_copy_(self):
        def f(sizes_tensor):
            sizes = sizes_tensor.tolist()
            for s in sizes:
                torch._check(s > 0)
                torch._check_is_size(s)
            data = torch.ones(3, sizes[0], sizes[1])
            out = torch.zeros(3, sizes[2], sizes[3])
            out.narrow(1, 0, sizes[0]).narrow(2, 0, sizes[1]).copy_(data)
            return out

        sizes_tensor = torch.tensor([4, 4, 4, 4])
        out = f(sizes_tensor)
        out_test = torch.compile(f, backend="aot_eager", fullgraph=True)(sizes_tensor)
        self.assertEqual(out, out_test)
```

Which gives:
```
    return self._evaluate_expr(orig_expr, hint, fx_node, expect_rational, size_oblivious, forcing_spec=forcing_spec)
  File "/home/hirsheybar/local/b/pytorch/torch/fx/experimental/symbolic_shapes.py", line 5297, in _evaluate_expr
    raise self._make_data_dependent_error(
torch._dynamo.exc.BackendCompilerFailed: backend='aot_eager' raised:
GuardOnDataDependentSymNode: Could not guard on data-dependent expression Eq(Max(1, u3), u1) (unhinted: Eq(Max(1, u3), u1)).  (Size-like symbols: u1, u3)
```

A few things I noticed:

(1) the failure is coming from this code, when we functionalize the `copy_()` into an `aten.copy`, which checks for `has_internal_overlap()`: https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/TensorShape.cpp#L3988

(2) doing so requires checking the above expression: `Eq(Max(1, u3), u1)`.

(3) one thing to call out is that `Max(1, u3)` should be statically known to simplify to `u3`, since we have marked `u3` as size-like

(4) we probably want to generate a runtime assert for `u3 == u1`?

cc @ezyang @chauhang @penguinwu
Repository: godot
Issue: Freelook 3d camera hides mouse forever when in 2 views mode with output tab open
Labels: bug,topic:editor,confirmed,usability,topic:3d

### Tested versions

4.2.3

### System information

linux ubuntu24 apu intel

### Issue description

when activating freelook camera with shift F in 2view mode with output tab open, the mouse isn't able to move the freelook camera and remains hidden until the editor is restarted

### Steps to reproduce

open 3d project with a screen of res = 1366x768 and split up the 3d editor vertically, so they stack up. then open output tab and press shift F

### Minimal reproduction project (MRP)

any standart project
Repository: ollama
Issue: Support for AWS Neuron Inferentia GPU
Labels: feature request

This would add the ability to run ollama on inf2 instance types in AWS.
Repository: material-ui
Issue: [core] Fix React 17 cron test and setup reporting
Labels: core,ready to take

The React 17 cron test is failing (for example: https://app.circleci.com/pipelines/github/mui/material-ui/135112/workflows/8d17d057-14b2-4881-90a4-245f820a58af), we need to fix it.

We should also set up some kind of reporting so we get a notification when it fails.

**Search keywords**: react 17, cron, test
Repository: rust
Issue: E0308 hint suggests adding a return type to a closure
Labels: A-diagnostics,T-compiler

### Code

```Rust
fn main() {
    b"abc".iter().for_each(|x| dbg!(x))
}
```


### Current output

```Shell
error[E0308]: mismatched types
 --> src/main.rs:2:32
  |
2 |     b"abc".iter().for_each(|x| dbg!(x))
  |                               -^^^^^^^ expected `()`, found `&u8`
  |                               |
  |                               help: try adding a return type: `-> &u8`
  |
```


### Desired output

```Shell
error[E0308]: mismatched types
 --> src/main.rs:2:32
  |
2 |     b"abc".iter().for_each(|x| dbg!(x))
  |                               -^^^^^^^ expected `()`, found `&u8`
  |                               |
  |                               help: try ignoring this value: `_ = dbg!(x)`
```


### Rationale and extra context

closures have their return type inferred if not specified, so adding a return type to a closure will never fix a type error.

### Other cases

_No response_

### Rust Version

```Shell
1.80.0
```


### Anything else?

_No response_
Repository: node
Issue: ToNamespacedPath doesn't work with device names
Labels: windows,path

### Version

v20.16.0

### Platform

```text
Microsoft Windows NT 10.0.22635.0 x64
```


### Subsystem

_No response_

### What steps will reproduce the bug?

```js
import path from 'node:path'
console.log(path.toNamespacedPath("COM3"))
```

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

Every time.

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

This should print:
```
\\.\COM3
```
which is the fully qualified path in the device namespace


### What do you see instead?

This prints the illegal path:
```
\\?\C:\Users\dan\COM3
```

### Additional information

Reference for legal path name: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-device-namespaces
Additionally `console.log(url.pathToFileURL("COM3").href)` prints an invalid URL, but I'm not sure if there is a corresponding *valid* `file:` URL.
Repository: rust
Issue: Rustdoc doesn't list all cfg's required for an item to be included
Labels: T-rustdoc,A-docs,C-bug

In the tokio `RuntimeMetrics` docs the majority of metrics require `--cfg=tokio_unstable`. Howver, some also require a target architecture with 64 bit atomics. For metrics which require both of these features rustdoc only shows one of them. Linked is an example: https://docs.rs/tokio/latest/tokio/runtime/struct.RuntimeMetrics.html#method.spawned_tasks_count 

Here it says "Available on target_has_atomic="64" only." But it should say something like "Only available with target_has_atomic="64" and tokio_unstable."
Repository: vscode
Issue: jupyter ctrl-z behavior is insane
Labels: bug,info-needed,under-discussion,notebook-undo-redo

please reopen 150145 and mark p1

the current jupyter behavior is:

1. i'm happily typing in a cell.
2. click ctrl-z to undo something in that cell
3. unknown to me, the editor has shifted focus to the whole document instead of the cell
4. ctrl-z appears to undo the most-recent "create cell" which isn't even in the viewport
5. i refocus on the cell i'm working on, and keep typing
6. much later, i notice the far-away deleted cell, and it is seems impossible to undo the undo?

this certainly violates the principle of least surprise.

how about not taking actions that aren't in the viewport?  confirming before deleting a cell full of stuff?  making it possible to recover?  disabling the "document-like" behavior at the top level altogether?
Repository: godot
Issue: Godot 4.3 rc-2 and 4.2.2 freezes if a new godot windows opens on another monitor.
Labels: bug,platform:windows,topic:rendering,topic:porting,needs testing

### Tested versions

Reproducible in Godot 4.3 rc-2 and 4.2.2

### System information

Windows 10 - Godot 4.3 rc-2, 4.2.2- ONLY in Compability

### Issue description

Even in a blank project. When a new window opens on another monitor - godot freezes. Any window. New node window, project settings, etc.
Only in Compatibility. This does not occure in Forward+ and Mobile.

### Steps to reproduce

Blank project. Crate new node. Move node window to another monitor. Close it. Open new window. It opens on the second window. Everything freezes.

### Minimal reproduction project (MRP)

![image](https://github.com/user-attachments/assets/9a280911-5d59-474c-8b36-ef039171520f)
Repository: go
Issue: proposal: utf8: RuneStartLen to get the length of the rune from the first byte
Labels: Proposal

### Proposal Details

I find myself in need of such a method to determine how many bytes in a UTF-8 string when iterating over bytes. Following [RFC 3629](https://datatracker.ietf.org/doc/html/rfc3629#page-5), we can implement something like `utf8.RuneStartLen(b byte) int`.

[Zig](https://github.com/ziglang/zig/blob/master/lib/std/unicode.zig#L26) and [Rust](https://doc.rust-lang.org/core/str/fn.utf8_char_width.html) have these implemented to provide this functionality. Go could have something like this to do the same.

```go
// RuneStartLen reports the number of bytes an encoded rune will have. It
// returns a value between 1-4, or -1 if the byte is not a valid UTF-8 first
// byte.
func RuneStartLen(b byte) int {
	if b <= 0b0111_1111 { // 0x00-0x7F
		return 1
	} else if b >= 0b1111_0000 { // 0xF0-0xF7
		return 4
	} else if b >= 0b1110_0000 { // 0xE0-0xEF
		return 3
	} else if b >= 0b1100_0000 { // 0xC0-0xDF
		return 2
	}
	return -1
}

```
Repository: flutter
Issue: Gather timeline traces for non-startup benchmarks.
Labels: P2,team-engine,triaged-engine

Startup benchmarks gather timeline traces but not the rest which only contain summaries. Benchmark regressions need to be manually reproduced to gather a trace.

The ask is to enable trace collection and upload the trace logs during CI runs.
Repository: vscode
Issue: SCM Graph - View all changes easier with new Source Control Graph view
Labels: scm,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

The old UX (`"scm.showHistoryGraph": false,`) has an "All Changes" node with a "View all Changes" button.
![image](https://github.com/user-attachments/assets/e091ba12-1227-41ac-aeb5-0f04ebe5e99b)

Using the new history graph (`"scm.showHistoryGraph": true,`, new default since v1.92.0; `"scm.experimental.showHistoryGraph": true,` since v1.91.0), it seems I need to select all commits to view all changes.
![image](https://github.com/user-attachments/assets/dcbc432e-c5db-44c0-8769-bc1a8d66b864)
Repository: kubernetes
Issue: SVM RV Semantics: client-go should panic if RV ever goes backwards
Labels: sig/api-machinery,triage/accepted

We expect RV to be a monotonically increasing integer.

This would be similar to the cache mutation detector but enabled by default (with the ability to be disabled via an env var).

https://github.com/kubernetes/kubernetes/blob/dbc2b0a5c7acc349ea71a14e49913661eaf708d2/staging/src/k8s.io/client-go/tools/cache/mutation_detector.go#L36

/assign nilekhc
/triage accepted
/sig api-machinery
Repository: TypeScript
Issue: No "recommended" completion entry when outer context is incomplete ternary conditional operator
Labels: Bug,Domain: Completion Lists

Normally I get a nice type suggested that matches the expected parameter:



![Image](https://github.com/user-attachments/assets/cf45fd2f-a71b-4c55-a655-70f40e7a7f6a)

Once I do a boolean expression though, I loose that type:



![Image](https://github.com/user-attachments/assets/82ee9f65-dd2c-4fa0-a5f0-a878113922c8)


Code pointer: https://github.com/microsoft/vscode/blob/6966917b18b8022e14661cd8430e96ec5f27c843/src/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindow.ts#L89
Repository: kubernetes
Issue: SVM RV Semantics: add conformance test to assert that RV is always incrementing
Labels: sig/api-machinery,triage/accepted

We rely on this property in SVM.

/assign nilekhc
/triage accepted
/sig api-machinery
Repository: rust
Issue: compiletest --nocapture still delays prints
Labels: T-bootstrap,E-medium,C-bug,A-compiletest,A-run-make,E-needs-investigation

add the following snippet to the top of any run-make test's main function:

```
   #![allow(unreachable_code)]
    println!("infinite loop");
    loop {}
```

then run `COMPILETEST_FORCE_STAGE0=1 ./x test --stage 0 tests/run-make/TEST_NAME/ -- --nocapture`

this should print "infinite loop" and then hang, but it does not print anything.

running the same piece of code on the playground works properly.

flushing stdout doesn't help either.
Repository: go
Issue: proposal: x/time/rate: WaitAndReport to also return wait time
Labels: Proposal

### Proposal Details

### Proposal Details

Currently, `golang.org/x/time/rate.Limiter` provides handy `Wait` and `WaitN` methods. But when using them, it is not really possible to know later on if they have waited at all (so if rate limiting was applied) or not. Just observing from outside there might be regular overhead executing the method which added delay. But knowing if rate limiting was applied or not is useful so that one can log that, compute stats, know how often rate limiting is necessary and if maybe rate limits have to be increased.

I am interested in the use case where I use `Limiter` to limit my own calls towards a 3rd party API endpoint. I want to collect stats for our services how often and how much rate limiting we had to do on our side. If that rate limiting is too high, we can consider buying a higher class service from a 3rd party API provider. We collect stats how long each API call took, but without knowing how long were we waiting on our side for rate limiting, it is not enough to know why some calls took longer than other. We can measure from outside how long did call to `Wait` and `WaitN` took, but that then also measures overhead of calling them.

So I propose that `Wait` and `WaitN` methods of Limiter return wait time, literally, the value of `delay` variable the method `wait` computes. `wait` is already internal implementation so if we want to keep backwards compatibility of `Wait` and `WaitN` methods we can introduce some new methods like `WaitAndReport` which would call same internal `wait`, just return the `delay` value.
Repository: godot
Issue: changing tabs bug
Labels: bug,topic:editor,needs testing

### Tested versions

4.2 stable 

### System information

ubuntu 22.04.4 LTS

### Issue description

pretty straight forward: when right clicking on a scene and changing tabs the menu that appears stays on top. and it's clickable

### Steps to reproduce

create any node and open the little options menu then change tabs. you can change tabs by alt + Tab or just clicking on an icon on the side bar.

### Minimal reproduction project (MRP)

...
Repository: flutter
Issue: [web] Remove `X-UA-Compatible` meta-tag.
Labels: tool,platform-web,P2,c: tech-debt,team-web,triaged-web

Flutter web generates the `index.html` of new web projects which always includes the following `meta` tag:

* https://github.com/flutter/flutter/blob/c1872f97520066e3ec8848fcdba24f6984b4a447/packages/flutter_tools/templates/app_shared/web/index.html.tmpl#L20

That header used to be set to force the newest rendering engine possible on Edge (pre-Chromium)... 

Is it doing anything nowadays? Is it there to prevent [Internet Explorer mode](https://support.microsoft.com/en-us/microsoft-edge/internet-explorer-mode-in-microsoft-edge-6604162f-e38a-48b2-acd2-682dbac6f0de)? Is it **needed**?

### [No](https://github.com/flutter/flutter/issues/152761#issuecomment-2291888256), so we should probably remove it from our `index.html` files.
Repository: TypeScript
Issue: Type inference on tuple intersection types broken
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

infer tuple intersection

### 🕗 Version & Regression Information

- Version 5.5.4

### ⏯ Playground Link

https://www.typescriptlang.org/play/?#code/C4TwDgpgBAKghgJwOYWFAvFA2gOwK4C2ARhAgDRQDOwCAljkhUQPbMA2EcOAulAGRQA3lDjBgALio16SANxQAvrICwAKDWhIUAIIYoAJU4ATZjjYgAPPGSoAfPID0DqAHdalABYAzPGyjAPegBrGTUNcGgACWMARj1rFDQIAA9gCBwjSmx6L1IoSIoAOmKcvPhaNl4AfnyoSRwIADdSR2cTCEocAHI0F2YEIPCtaLgjACZ4xESoFLSMrKxShHyi4q4QLG5q2vqmlqgnV36gyjDVTWhytjjMBNQZ1PTM7Jxc5YKoYsKl2DgK7audSgDWaCFaUHanR6RwGQ0ufzYE1uU3usyeC3Wq2+rzKCIBCKBIP2h0h3V6xzOFwMewQlAgIyMN1+NiSj3m2C+P30VwoXMi230kUJNPBpOhfVh5wi1NBdIZSOZ0zR7KwX3Wm15OOWgoFQt2oNFzA6ZJhg3UUq0hllECuTLurLmz1VJS1Bh5UD5AsB+uJbSNUPJkqpVtIdKuCvtD0dC05ru5CIo6y9BJ9YIOfuN4opqiAA

### 💻 Code

```ts
type Target = [number, string, boolean] & { att: string; };

type A = Readonly<Target>; // wishful thinking

type Head1 = Target extends [infer H, ...infer Tail] ? H : never; // doesn't work
type Head2 = Target extends [infer H, ...any[]] ? H : never; // works

type Tail1 = Target extends [infer H, ...infer Tail] ? Tail : never; // doesn't work
type Tail2 = Target extends [any, ...infer Tail] ? Tail : never; // doesn't work

type ReverseHead1 = Target extends [...infer RTail, infer RH] ? RH : never; // doesn't work
type ReverseHead2 = Target extends [...any[], infer RH] ? RH : never; // doesn't work

type ReverseTail1 = Target extends [...infer RTail, infer RH] ? RTail : never; // doesn't work
type ReverseTail2 = Target extends [...infer RTail, any] ? RTail : never; // doesn't work
```


### 🙁 Actual behavior

Doesn't work

### 🙂 Expected behavior

Works

### Additional information about the issue

I would expect `Readonly<[number, string, boolean] & { att: string }>` to be `readonly [number, string, boolean] & { readonly att: string }`, but that's wishful thinking. I'm sure you guys got a myriad of reasons and design limitations that don't allow it; weak types, homomorphic, variance, instantiation and whatnot.

In any case, I thought, whatever, I'll do it myself with some infers... but it looks like I won't be able to do the general case because infers break on tuple types that are intersected.

So, just letting you know in case you care... here are some unexpected behaviors ✌️
Repository: excalidraw
Issue: text-related `history` issues
Labels: bug,history

There are several history issues related to text elements / wysiwyg (though some potentially unrelated).

### undo stack not populated (consistently)

1. reload
2. single click (with selection tool) on canvas
3. pick text tool using keyboard (`T`)
4. single click to create text tool
5. -> history not populated

If you skip step (2), history is generally populated correctly. "Generally" because sometimes it doesn't happen.

## undoing leaves empty-text element

When history is populated when creating a text element, then undoing it leaves you with empty `element.text` element. It shouldn't keep empty-text elements as we auto-delete them if you go the wysiwyg path.

1. create text element so that it populates history
2. confirm
3. undo (twice depending if the history now also contains deselection)
4. results in empty text element

![image](https://github.com/user-attachments/assets/61e16733-3302-4895-b64c-54ba388a496b)