sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Call `torch.pow(int_tensor, torch.tensor(-1))` does not raise error like NumPy.
Labels: triaged,module: numpy

### 🐛 Describe the bug

PyTorch does not agree with NumPy when calling `torch.pow(tensor, exp)`, where `tensor` and `exp` are of integer type, and `exp` has a negative value.

**NumPy:**

```python
>>> a = np.arange(10)
>>> np.power(a, np.array(-1))
ValueError: Integers to negative integer powers are not allowed.
```

**PyTorch:**

```python
>>> a = torch.arange(10)
>>> torch.pow(a, torch.tensor(-1))
tensor([0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
```

### Versions

PyTorch: 4305c64fea154ee1ab566e19bd7568753fc30916

cc @mruberry @rgommers @miladm @lezcano
Repository: go
Issue: proposal: x/net/internal/socks: make it public
Labels: Proposal

### Proposal Details

[x/net/proxy.SOCKS5](https://pkg.go.dev/golang.org/x/net/proxy#SOCKS5) returns an [x/net/internal/socks.Dialer](https://pkg.go.dev/golang.org/x/net/internal/socks#Dialer), when Dialing to create a new connection, a *socks.Conn is returned, and the BoundAddr() method can be accessed by creating an interface, however, because the `socks.Addr` struct is not available, its fields cannot be accessed without using reflection, or parsing strings.

I'm unsure what the benefit of making the socks package internal is, but if making it non-internal is an issue, perhaps there is another way of exposing BoundAddr().
Repository: ollama
Issue: Multilanguage support
Labels: documentation,question,ollama.com

There is no info about supported languages in README. Does any of the models support other language than English? I'm looking for open source model supporting Spanish.
Repository: pytorch
Issue: Please provide `total_repeat_length` field to PyTorch `repeat` / `repeat_interleave` API
Labels: feature,triaged,needs research,module: tensor creation

### 🚀 The feature, motivation and pitch

Please provide `total_repeat_length` field to the pytorch `repeat` / `repeat_interleave` API. This feature is available on [`jnp.repeat`](https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.repeat.html) and has valuable use cases for sparse LLMs applications.

cc @gchanan @mruberry
Repository: flutter
Issue: Make visual debugger for partial repaint
Labels: P3,team-engine,triaged-engine

We have gotten bugs with the partial repaint like https://github.com/flutter/flutter/issues/144985.  It's hard to debug because the only visual feedback we get from the system is flickering.  Many systems will provide visual debuggers which will show which parts of the screen are getting repainted.  It would be nice to have that for flutter as well.
Repository: next.js
Issue: Error digest from Server Action (not initial RSC render) is not logged server-side
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/serene-stonebraker-nhhpqf?file=%2Fapp%2Fpage.tsx%3A40%2C1

### To Reproduce

(Please read additional context before closing as a duplicate of #60684)

1. Make a client side button which calls a server action.
2. Server action throws an error.
3. Client catches an error which has a digest, but digest is not logged on server.

OR

1. Make a page that throws during render.
2. The page will throw an Error that has a digest on the client.
3. However, if accessed via next/link, this digest is not logged on server. If accessed as a fresh page load, it is.

I believe the first error case is more helpful, but I suspect these both go through a similar code path and would be fixed by the same change.

### Current vs. Expected behavior

Client side receives a digest, but this is not logged anywhere on the server.
This means that you can't search the logs for this digest to find out what caused it.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 20.11.0
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.1
Relevant Packages:
  next: 14.1.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


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

App Router

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

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

### Additional context

This is a follow on but separate to #60684.
That issue was closed by #61592 which is an improvement on the digest logging, but unfortunately does not solve the original issue.

The PR will `console.error` the digest of an error on initial RSC renders, but not Server Actions or subsequent page navigations.

Thanks for your support here 🙂
Repository: vscode
Issue: Cannot use arrow keys to go to toggle icon in notebook find widget
Labels: bug,notebook-find

1. Open a notebook and CTRL+F
2. Use tab on the find action buttons- notice that this allows you to navigate to all of the different buttons.
3. Use right/left arrow on the find action buttons- notice that this only loops between the first three.

I think the problem is here:
https://github.com/microsoft/vscode/blob/a984153d6a98fba04f0a39a5ab9918c7b6e47511/src/vs/base/browser/ui/findinput/findInput.ts#L170-L194

The arrow key navigation is fixed at the findInput level, and we aren't adding to it, even when adding the funnel icon.

In this screencap, I accidentally press the down key-- that's not part of the demo 😅 
https://github.com/microsoft/vscode/assets/31675041/9949cd63-a57c-42e3-9fd8-0d03de6f44cb
Repository: flutter
Issue: I want an amazing experience for using IDEs when editing `flutter/engine`
Labels: P2,team-engine,triaged-engine,e: engine-tool

Today my workflow is best described by [this Simpsons scene](https://www.youtube.com/watch?v=NPwyyjtxlzU):

![image](https://github.com/flutter/flutter/assets/168174/73c9de6b-864b-4ef1-b1c9-fe34281b9fc9)

I have a file, not version controlled, at `~/Developer/engine.code-workspace`. It approximately looks like this:

```jsonc
{
  "folders": [
    { "path": "./engine/src/flutter", "name": "engine" },
    { "path": "./flutter", "name": "framework" }
  ],
  "settings": {
    "clangd.path": "${workspaceFolder}/../buildtools/mac-arm64/clang/bin/clangd",
    "clangd.arguments": [
      "--compile-commands-dir=${workspaceFolder}/../out/android_debug_unopt_arm64"
    ],
    "clang-format.executable": "${workspaceRoot}/../buildtools/mac-arm64/clang/bin/clang-format",
  },
}
```

I would be OK with losing the "folders"-aspect of this workspace, but I'd really like to not have to manually edit and keep this file up to date as I change builds I'm working with. From a chat we had, here were a smattering of ideas that could help this problem:

> I think we should pick a canonical location for that file in the engine repo and et should write to it. That being said, we have an issue of which our dir we point our IDE at
>
> so we would generate one file per build config?
> I think the principal is the same
> and then if you want to work on host or Android, you load that specific workspace
>
> I think separate workspaces per out directory is the only way things are consistent
>
> ...
>
> I did write myself a tool to open VS though 😅, we might want a et open --profile or et vscode open --profile something
Repository: PowerToys
Issue: Windows store version of powertools fails to install Command Not Found
Labels: Issue-Bug,Needs-Triage,Product-CommandNotFound

### Microsoft PowerToys version

0.79.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Command not found

### Steps to reproduce

Install powertoys from  microsoft store
Go to Command Not found
It says both dependencies need to be installed
First bug. Clicked Install on Powershell 7.4 and nothing happened. Retried and it launched an external window and started installing.
Seemed to finish okay. 
Second bug: clicked install on winget client powershell module and Powershell windows locked up / stopped responding
After some time I killed powershell, and then a command window popped up to do something.
Third bug: Relaunched powershell and Command Not Found still says the dependencies aren't installed.
Open a windows terminal and ran `winget install --id Microsoft.Powershell --source winget` and it was installed
Found an existing package already installed. Trying to upgrade the installed package...
So tried hitting install on the Powershell Command Not Found item
Fourth bug: the install step thinks powershell is installed in a different directory (I assume this only plagues MS Store installed version).
```
System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'pwsh.exe' with working directory 'C:\Program Files\PowerToys'. The system cannot find the file specified.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.PowerToys.Settings.UI.ViewModels.CmdNotFoundViewModel.RunPowerShellScript(String powershellExecutable, String powershellArguments, Boolean hidePowerShellWindow)PowerShell 7.4 or greater not detected. Installation instructions can be found on https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows 
```

### ✔️ Expected Behavior

Command Not Found and its dependencies should install successfully when Powertoys is installed via MS Store

### ❌ Actual Behavior

Command Not Found and its dependencies don't install successfully when Powertoys is installed via MS Store

### Other Software

_No response_
Repository: flutter
Issue: Make it easier to debug a `flutter/engine` C++ test 
Labels: P2,team-engine,triaged-engine,e: engine-tool

This is a follow up to https://github.com/flutter/flutter/issues/145186

### Status quo
Currently the best way to debug a Flutter engine C++ googletest is using a custom VS Code `launch.json` file:

```json
{
  "version": "0.2.0",
  "configurations": [
     {
      "name": "embedder_unittests",
      "type": "cppvsdbg",
      "request": "launch",
      "preLaunchTask": "Build host_debug_unopt",
      "program": "../out/host_debug_unopt/embedder_unittests.exe",
      "cwd": "${workspaceRoot}",
      "args": [
        "--gtest_filter=EmbedderTest.TestIWantToDebugHere"
      ],
      "logging": {
        "moduleLoad": false,
        "trace": true
      }
    },
    ...
  ]
}
```

I need a separate configuration for each gtest executable (`embedder_unittests.exe`, `flutter_windows_unittests.exe`).

To switch which test I debug, I need to:

1. Switch the active VS Code launch configuration:

   ![image](https://github.com/flutter/flutter/assets/737941/fd9d7d18-fdf2-447b-bad4-1e8e2f87e7e3)

2. Edit the `launch.json` file to edit the `--gtest_filter`.

### Potential solution

Ideally we would have a better VS Code integration. Each `GTEST` macro would:

1. Have a codelens action to `Run` or `Debug` the test:

   ![image](https://github.com/flutter/flutter/assets/737941/eba3b995-593e-45fb-9b0f-d45b4763568b)

2. Show up in the VS Code's testing panel:
 
   ![image](https://github.com/flutter/flutter/assets/737941/e8af8b49-ac64-4141-ba4c-7a7e82448dca)
Repository: storybook
Issue: [Bug]: "Show code" doesn't show code on MDX Story
Labels: bug,block: source,sev:S2

### Describe the bug

I've upgraded to v8 (Web Component flavour) and have noticed the code block/snippet doesn't show anymore after clicking the "Show code" button on an MDX docs page.

If I enable `autodocs`, it _does_ show the code block for nested or other stories that don't have an MDX file.

### To Reproduce

https://github.com/marksy/storybook-8-web-components

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.4
    CPU: (12) arm64 Apple M2 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.1 - ~/.nvm/versions/node/v18.18.1/bin/node
    Yarn: 3.6.3 - ~/.nvm/versions/node/v18.18.1/bin/yarn <----- active
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.1/bin/npm
  Browsers:
    Chrome: 122.0.6261.129
    Edge: 122.0.2365.80
    Safari: 17.4
```


### Additional context

I've only tested this on the Web Component flavour of Storybook
Repository: vscode
Issue: VScode insider using keyboard move Jupyter notebook collapse cell up and down bug
Labels: bug,notebook-commands

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No


Version: 1.88.0-insider
Commit: 7107b38665e428a974c06b2c6e8f67a9a078aefd
Date: 2024-03-13T06:02:12.129Z (1 day ago)
Electron: 28.2.6
ElectronBuildId: 27476517
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0



Steps to Reproduce:

1.  use option + up and down to move collapse cells
2.  the text description will incorrect display as other cell
Repository: go
Issue: strconv: optimize ParseFloat with new refloat algorithm
Labels: Performance,NeedsFix

Floating point conversions are used in many places such as `encoding/json`. While the current [Eisel-Lemire](https://nigeltao.github.io/blog/2020/eisel-lemire.html) is efficient, you can actually use smaller lookup table and reduce execution time at the same time.
I implemented this algorithm in Go from start and now it's available through  BSD-3-Clause license: https://github.com/sugawarayuuta/refloat

- Benchmarks
```
$ go test -bench "\d$" -benchmem -benchtime 1m
goos: linux
goarch: amd64
pkg: github.com/sugawarayuuta/refloat
cpu: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz
BenchmarkParseFloat64/strconv/bits-4            648877453              112.3 ns/op             0 B/op          0 allocs/op
BenchmarkParseFloat64/strconv/norm-4            729803588               95.37 ns/op            0 B/op          0 allocs/op
BenchmarkParseFloat64/refloat/bits-4            773428314               93.41 ns/op            0 B/op          0 allocs/op
BenchmarkParseFloat64/refloat/norm-4            1000000000              67.75 ns/op            0 B/op          0 allocs/op
BenchmarkParseFloat32/strconv/bits-4            894441672               82.30 ns/op            0 B/op          0 allocs/op
BenchmarkParseFloat32/strconv/norm-4            1000000000              67.97 ns/op            0 B/op          0 allocs/op
BenchmarkParseFloat32/refloat/bits-4            870175646               83.18 ns/op            3 B/op          0 allocs/op
BenchmarkParseFloat32/refloat/norm-4            1000000000              50.24 ns/op            0 B/op          0 allocs/op
PASS
ok      github.com/sugawarayuuta/refloat        612.972s
```
- Observation

We can see that it performs mostly better on normally distributed (`norm`) floats and bit-wise uniform floats (`bits`).
Benchmarks are done on multiple machines - they did produce results very similarly.
Especially normally distributed `float64` has a significant change (~41%) which will fit in many real use-cases.

- Tests 

passes [parse-number-fxx-test-data](https://github.com/nigeltao/parse-number-fxx-test-data), the standard libraries' tests and I'm doing active fuzz testing in addition comparing outputs to the current `strconv`. so far the only detected problem seems to be [the issue 42436](https://github.com/golang/go/issues/42436) which is a problem with `strconv` only.

- Notes

I actually used [an external tool](https://www.sollya.org/) to generate polynomial approximations (Which is not distributed through the same license as the project itself). Do tell me if it can be a problem...
Repository: pytorch
Issue:  raise RendezvousConnectionError( torch.distributed.elastic.rendezvous.api.RendezvousConnectionError: The connection to the C10d store has failed. See inner exception for details.
Labels: needs reproduction,oncall: distributed

### 🐛 Describe the bug

Here is the script of slurm and i dont know c10d error is occuring .. i am also not able to use etcd backend #!/bin/bash

#SBATCH --job-name=torchnode
#SBATCH --error=%J.err
#SBATCH --output=%J.out
#SBATCH --partition=gpu
#SBATCH --nodes=2
#SBATCH --ntasks=4
#SBATCH --gres=gpu:2
##SBATCH --gpus-per-task=1
#SBATCH --cpus-per-task=2

# Getting the head node IP address
nodes_array=($(scontrol show hostnames $SLURM_JOB_NODELIST))
head_node=${nodes_array[0]}
head_node_ip=$(srun --nodes=1 --ntasks=1 -w "$head_node" hostname --ip-address)

echo "Node IP: $head_node_ip"
export LOGLEVEL=INFO

# Activating the conda environment
eval "$(conda shell.bash hook)"
conda activate myenv1

# Running the PyTorch script in a distributed manner
srun torchrun \
--nnodes=2 \
--nproc_per_node=2 \
--rdzv_id=389 \
--rdzv_backend=c10d \
--rdzv_endpoint=$head_node_ip:50125 \
zz12.py 8 10






cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang
Repository: vscode
Issue: Bring back caching of `NotebookEditorInput` if required in NotebookEditorInput class
Labels: debt,notebook,notebook-diff

The caching of NotebookEditorInput has been removed.
This was added previously, probably for diff viewer.

Probably need to review why it was added and bring this back
Removed here https://github.com/microsoft/vscode/pull/207745

Found that keeping multiple references of NotebookEditorInput was causing a few issues
The current approach is no better, but we fix the bugs

1.  If caching is indeed required, then we need to dispose them properly
2. If caching is not required, we still need to dispose the NotebookEditorInput once we're done with this.

The latter can be a debt item for a few of us, once the first is done.

@rebornix /cc
Repository: PowerToys
Issue: Paste As Plain Text: Option to trim plain text
Labels: Idea-Enhancement,Needs-Triage,Product-Advanced Paste

### Description of the new feature / enhancement

I love the paste as plain text tool, and would love an option to use a second hotkey to also trim the text. (remove spaces or line breaks at the start and end of the clipboard text)

I wouldn't want this to happen every time, sometimes a line break at the end is intended. An alternate shortcut for this would be amazing.

### Scenario when this would be used?

When copying data from documents, paragraphs, or spreadsheets into other programs.

Sometimes the source program is smart enough to trim the trailing space when adding text to the clipboard or pasting it, other programs are not, or don't do this by design (copying a single cell from excel).

### Supporting information

https://learn.microsoft.com/en-us/dotnet/api/system.string.trim?view=net-8.0
Repository: godot
Issue: TileMap getters for cell `TileData` ignore runtime changes stored in `runtime_tile_data_cache`
Labels: bug,topic:2d

### Tested versions

4.2.1.stable

### System information

Windows 10

### Issue description

If you overwrite a tilemaps's navigation data, for example using the _tile_data_runtime_update() function, you can remove navigation from a tilemap tile. This works fine when using the Tilemap navigation. However, when you attempt to use the NavigationRegion2D (linked to the tilemap) and programmatically bake the navigation polygon using bake_navigation_polygon(), these changes are not accounted for.

### Steps to reproduce

1. Create a simple 2d scene with a TileMap and a NavigationRegion2D set to retrieve navigation information from that TileMap.
2. Attach a script to the TileMap and write the following (as an example):

```
func _use_tile_data_runtime_update(layer, coords):
	if layer == 0 and coords.x == 1:
		return true
	return false

func _tile_data_runtime_update(layer, coords, tile_data):
	tile_data.set_navigation_polygon(0, null)
	return true
```

3. Attach a script to your Root node and write the following:

```
func _ready():
	$TileMap.notify_runtime_tile_data_update(0)
	$NavigationRegion2D.call_deferred("bake_navigation_polygon")
```

4. From the Debug Menu, enable "Visible Navigation"
5. Run the project. You will see both the tilemap's nav mesh (with column 1 excluded, as expected) and the NavigationRegion2D's nav mesh (without column 1 excluded).




### Minimal reproduction project (MRP)

[Test Navigation.zip](https://github.com/godotengine/godot/files/14610520/Test.Navigation.zip)
Repository: angular
Issue: Add a unique identifier to a component's style
Labels: area: compiler,core: stylesheets,needs: clarification

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

compiler

### Description

Now the component's style will generate a style tag that will be inserted into the html header. When I render the component into the iframe, I find that I can't easily filter out the component's style

### Proposed solution

```ts
@Component({
  selector: 'wk-trade-good-evaluate-pdf',
  templateUrl: './good-evaluate-pdf.component.html',
  styleUrls: [{path:'./good-evaluate-pdf.component.less',title:'custom-title'}],
})
export class Component {}
```
```html
<!DOCTYPE html>
<html >
  <head>
      <style title="custom-title"></style>
  </head>
</html>
```

```ts
 const componentStyles=Array.from(document.styleSheets).filter((sheet) => {sheet.title==='custom-title'});
```


### Alternatives considered

none