sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Libtorch torch::load(tensor, "tensor.pt"); error
Labels: oncall: jit,module: cpp,module: serialization,triaged

### 🐛 Describe the bug

I clone the pytorch version 1.13.1 and install into my conda environment, and would like to save and read tensor/model data. Saving there is no problem. But there is error of caffe2 report when I do the `torch::load`. 

The error happens in this function. `caffe2::serialize::PyTorchStreamReader::getRecord() `
This function is in `caffe2/serialize/inline_container.cc`. The error line is from line 137 to line 151

It seems it cannot read the file's version_ptr.
I run python setup.py build to build the pytorch, and run the `./build/bin/test_api` to test `test/cpp/api/serialize.cpp`, which test the load and save function. This reports no error. But after I run `python setup.py install`, there are errors above from caffe2. Also I find after I run the `python setup.py install`, there are several headers are only serialize folder in the `~/anaconda3/envs/.../torch/include/caffe2`, while in 1.9.1 there are quite a lot, like `caffe2/core`, etc.

I test libtorch 1.9.1. No error report, but 1.12.1, I think it is still the problem of no version output. It reads 
`version_ = caffe2::stoull(version);`
error

```
#include <gtest/gtest.h>
TEST{
    #include <torch/torch.h>
    using namespace torch;
    auto tensor = torch::ones({3, 4});
    torch::save(tensor, torch::str("tensor.pt"));
    std::string filename = "tensor.pt";
    torch::Tensor tensorload;
    torch::load(tensorload, filename );

}
```

### Versions

Version 1.13.1 1.12.1

Test environment:
Ubuntu 22.04
GCC 9.5
CUDA 11.3/11.6 CUDNN=8.9

```[tasklist]
### Caffe2/Torch
- [ ] return the correct file version
```


cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @jbschlosser @mruberry @mikaylagawarecki
Repository: vscode
Issue: Colored indent guides
Labels: feature-request,bracket-pair-colorization

<!-- ⚠️⚠️ 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. -->

Colored bracket pairs are marvelous, but there are languages use indent level to express code blocks (yes I use Python). It will be very nice if the indent guide lines would be colored just like brackets.
Maybe like:
![image](https://github.com/microsoft/vscode/assets/23637371/ea5ba9b1-4f26-4b1b-8f40-e046c16b8799)
Repository: flutter
Issue: [google_maps_flutter] Padding has no effect in web
Labels: c: new feature,p: maps,platform-web,package,has reproducible steps,P2,c: parity,team-web,triaged-web,found in release: 3.16,found in release: 3.19

### Steps to reproduce

Now that google_maps_flutter officially supports web, it's time to create this ticket.

It's not hard to reproduce, just add the google map widget with padding and some markers and notice the padding makes zero difference on web, but a big difference on Android and iOS:

```
GoogleMap(
        key: googleMapKey,
        minMaxZoomPreference: const MinMaxZoomPreference(null, 16.5),
        padding: EdgeInsets.only(
          bottom: mapBottom,
          left: 0,
          top: mapPaddingTop,
        ),
        markers:
            ref.watch(mapVmProvider.select((value) => value.markers)).markers,
        myLocationEnabled: true,
        onCameraMove: onCameraMove,
        initialCameraPosition:
            ref.read(mapVmProvider.select((value) => value.cameraPosition)),
        onMapCreated: (controller) => onMapCreated(controller, mapStyle),
      )
```
      
      

### Expected results

The active area of the map where markers get placed should be only inside the padding.

### Actual results

The active area of the map where the markers get placed starts at absolute zero padding, no matter what EdgeInsets value you pass the map for `padding` field. 

### Code sample

```
GoogleMap(
        key: googleMapKey,
        minMaxZoomPreference: const MinMaxZoomPreference(null, 16.5),
        padding: EdgeInsets.only(
          bottom: mapBottom,
          left: 0,
          top: mapPaddingTop,
        ),
        markers:
            ref.watch(mapVmProvider.select((value) => value.markers)).markers,
        myLocationEnabled: true,
        onCameraMove: onCameraMove,
        initialCameraPosition:
            ref.read(mapVmProvider.select((value) => value.cameraPosition)),
        onMapCreated: (controller) => onMapCreated(controller, mapStyle),
      )
```

### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: flutter
Issue: TextField add a onCtrlV callback
Labels: a: text input,c: new feature,framework,c: proposal,a: desktop,P3,team-framework,triaged-framework

Hello!

The Flutter textfield are powerful, but still not able to fullfill all usage scenarios.

For instance, on desktop, if users wanna paste rich content such as image in textfiled. There are plenty pacakages such as super_clipboard, pasteboard etc provides ability reads images bytes from clipboard.

Is there a way to make textField have a callback on paste to deal with images?

(PS: contentInsertConfiguration not work at this usage)
Repository: TypeScript
Issue: Discriminated unions is not work when field key is number
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms

* discriminated unions, "discriminated-unions"
* "numbers as keys in object", "number key"
* "type guard"

### 🕗 Version & Regression Information

- This is a crash


### ⏯ Playground Link

https://www.typescriptlang.org/play?#code/C4TwDgpgBAglC8UB2BXAtgIwgJwNoF0oAfKAZ2GwEskBzAgKHtEigCEEoBvKABgC5k6LNgA0UAIYCAjFAC+xLrwHkqtMZKgByKZrmMAJhADGAG3HZoRgPZJyEgTHqHT5yzbsYBrRpQBmUAApmCCt-cVweQnhorVRMHE0ASi56KDSoa1srEwgAOhMrGgDxRNT0gHpy9Or0gD0AfnpZej9A4NCoDFxNcU0omM044SSU6szSbLyCooxS6sqamoamlv8g8BD-Ls0ePoQBoYTkzjK08cn8woDZ06gFxbrG5tb1yA6uyP3EQaEj0fTzjlLjM5hUqg80stmkA

### 💻 Code

```ts
type A = number[] | string[]

type B = { 0: number, a: 1 } | { 0: string, a: '1' }

declare const a: A
declare const b: B

if (typeof a[0] === 'number') {
    console.log(a)
    //          ^? A
}
if (typeof b['a'] === 'number') {
    console.log(b)
    //          ^? { 0: number, a: 1 }
}
if (typeof b['0'] === 'number') {
    console.log(b)
    //          ^? B
}
if (typeof b[0] === 'number') {
    console.log(b)
    //          ^? B
}
```


### 🙁 Actual behavior

Unable to type guard `b` as an option of the union type `B`.

### 🙂 Expected behavior

Type `b` as `{ 0: number, a: 1 }` when type guarding it with `typeof b['0'] === 'number'`.

### Additional information about the issue

- microsoft/TypeScript#55632
- microsoft/TypeScript#55766
- microsoft/TypeScript#55961
Repository: ant-design
Issue: Enhance each of the type unionized in `ItemType`
Labels: TypeScript,💡 Feature Request,Inactive

### What problem does this feature solve?

At the moment, we have this part:

https://github.com/ant-design/ant-design/blob/ebd4c15cdf5a6a60b0a2516b653698c285d81a24/components/menu/hooks/useItems.tsx#L13-L42

As we see, we do this thing:

```ts
export type ItemType<T extends MenuItemType = MenuItemType> =
  | T
  | SubMenuType<T>
  | MenuItemGroupType<T>
  | MenuDividerType
  | null;
```

This ends up as only 3 fields since they're the only common fields: `style`, `className`, and `key`. This makes it hard as we need to go with hacky ways (e.g. with `as any` or type "patching") so that we can "select" the type that we really need.

### What does the proposed API look like?

Add another shared `type` field in each of them, each of them is of different string constants. For example:

1. MenuItemType: `type: "menu-item"`
2. SubMenuType: `type: "sub-menu"`
3. MenuItemGroupType: `type: "menu-item-group"`
4. MenuDividerType: `type: "menu-divider"`

By them having new type that is shared, then we can do something like:

```ts
if (item.type === "menu-item") {
  // item is inferred as `MenuItemType` here
}
```

So we can have better type-safety. If this issue is better put in https://github.com/react-component/menu, please let me know. Thanks!

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: File Explorer Name Pinned Locations
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Tool to reinstate the old favourites feature in Explorer or allow tagging of pinned folders with an expanded description. 

### Scenario when this would be used?

We use a standard naming convention for project folders resulting in large numbers of sub folders with the same name, creating a shortcut through pinning is no good. A simple way to either reinstate the old favourites feature or allow tagging of folders in Explorer would solve the issue.

### Supporting information

_No response_
Repository: ant-design
Issue: slider组件设置 marks与 step={null} 时可以选到min与max，与文档说明不符合
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/dai-biao-qian-de-hua-kuai-antd-5-13-3-forked-5n27pg?file=%2Fdemo.tsx%3A20%2C23)

### Steps to reproduce

打开即可

### What is expected?

Slider 的可选值仅有 marks 标出来的部分。

### What is actually happening?

Slider 的可选值为 marks 标出来的部分   min   max。

| Environment | Info |
| --- | --- |
| antd | 5.13.3 |
| React | 18.0.0 |
| System | macos 13.3 (22E252) |
| Browser | 版本 121.0.6167.85（正式版本） (arm64) |

---
设计只允许选择marks里的值，但slider marks 的值 的区间前后留有一些空间，所以会设置min 和max。

下面是dome 里的解释文案
带标签的滑块
使用 marks 属性标注分段式滑块，使用 value / defaultValue 指定滑块位置。当 included=false 时，表明不同标记间为并列关系。当 step=null 时，Slider 的可选值仅有 marks 标出来的部分。

实际情况是 Slider 的可选值为 marks 标出来的部分   min   max。（因为我们的值不在0-100之间，所以必须要设置min 和max）。我设置的是 min = marks 里最小的值 - 10 , max = marks 里最大的值 10。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Rust bracket detection is not correct
Labels: bug,languages-basic

<!-- ⚠️⚠️ 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

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.85.2
- OS Version: not needed, but Win11

Steps to Reproduce:
1. Turn on bracket pair colourisation
2. Open a Rust file with load of indentation

The bracket detection doesn't include angle brackets or either macro brackets.
Repository: angular
Issue: Parent :leave animation breaks the state of child animation
Labels: area: animations

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

animations

### Is this a regression?

No

### Description

I have a popup-like component, which has `:enter` and `:leave` animations.
Inside of it there's a sidebar which has its own animations based on a state. I animate `width` from `0` to `*` once the loading is done.
```
trigger('sidebarAnimation', [
  state('true', style({ width: 0, transform: 'rotateY(45deg)' })),
  state('false', style({ width: '*', transform: 'rotate(0)' })),
  transition(
    'true => false',
    group([animate('0.4s cubic-bezier(0.61, 0, 0.42, 1)'), query('@*', [animateChild()], { optional: true })])
  )
]),
```
My issue is that if I close the popup before the loading is done, the sidebar will snap into place as soon as parent's `:leave` animation kicks in. What I want to achieve is obviously for the sidebar to not change it's appearance during `:leave` animation on the parent.

First I though it was because I don't set the "void" state for the sidebar animation.
I tried `state('void', style({ width: '*', transform: '*' }))`, but that didn't change anything.
I also tried adding `transition('true => void', ...)` with no luck.
I've also played around with different combinations of the above but couldn't make it work.

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

https://stackblitz.com/edit/stackblitz-starters-bofcsu

### Please provide the exception or error you saw

_No response_

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

```true
Angular CLI: 17.1.1
Node: 20.10.0
Package Manager: yarn 1.22.19
OS: win32 x64

Angular: 17.1.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1701.1
@angular-devkit/build-angular   17.1.1
@angular-devkit/core            17.1.1
@angular-devkit/schematics      17.1.1
@angular/fire                   17.0.1
@schematics/angular             17.1.1
rxjs                            7.8.1
typescript                      5.2.2
webpack                         5.89.0
zone.js                         0.14.3
```


### Anything else?

Not sure if this is a regression.
Repository: PowerToys
Issue: Add Norwegian written languages- Norwegian Bokmål and Norwegian Nynorsk
Labels: Idea-Enhancement,Issue-Translation

### Description of the new feature / enhancement

Hi! Not sure if I should've chosen the Translation Issue template, but I would love to see the Norwegian Bokmål and Norwegian Nynorsk languages being available for PowerToys. If that is wanted, I could do the translating if I just get a little help on where to put the translated text.

### Scenario when this would be used?

It would be helpful to Norwegian users, because they would be able to use PowerToys in their native language instead of English if they so prefer.

### Supporting information

_No response_
Repository: PowerToys
Issue: File Explorer Loader Extension Proposal/文件资源管理器加载项提议
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

中文版本：
关于powertoys 的文件资源管理器加载项的预览窗格中的Portable Document Format，应该是要预览整个文档啊，现在的问题是每个文档，不管页数多还少，都只能看几页。提议：将页数多增加一些或者是可以预览整个文档。
English version：
"Regarding the Portable Document Format in the preview pane of the File Explorer add-on of PowerToys, it should preview the entire document. The current issue is that for each document, regardless of the number of pages, only a few pages can be viewed. Suggestion: Increase the number of pages previewed or enable the preview of the entire document."

### Scenario when this would be used?

中文版本：
查找文档内容时，每个文档看一下以便快速找到所要的文档。
English Verrsion：
When searching for document content, take a quick look at each document to quickly find the desired document.

### Supporting information

_No response_
Repository: next.js
Issue: `test mode` does not work with Pages Router
Labels: bug,Pages Router

### Link to the code that reproduces this issue

https://github.com/AkifumiSato/pages-to-app-router-demo

### To Reproduce

1. implement `getServerSideProps` with `fetch`.
2. `next dev --experimental-test-proxy`
3. page access with playwright test.

### Current vs. Expected behavior

The following error occurs.

```
> playwright test
[WebServer]  ⨯ Error: No test info for GET https://dummyjson.com/products/1
    at handleFetch (/Users/xxxx/work/git/sandbox/pages-to-app-router-demo/node_modules/.pnpm/next@14.1.0_@babel+core@7.23.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/experimental/testmode/fetch.js:89:15)
...
```

I would like to see a statement in the documentation that it does not work with Pages Router.
Ideally, msw would work with Pages Router as well.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.6.0: Wed Oct  4 23:56:02 PDT 2023; root:xnu-8020.240.18.704.15~1/RELEASE_ARM64_T6000
Binaries:
  Node: 18.17.0
  npm: 9.8.0
  Yarn: N/A
  pnpm: 8.9.0
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Data fetching (gS(S)P, getInitialProps)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Other (Deployed)

### Additional context

_No response_
Repository: vscode
Issue: Webviews don't preserve focus when the context menu is opened
Labels: bug,webview

While verifying microsoft/vscode-pull-request-github#5483, I noticed the following:

1. Start the process of creating a PR to get to the Create UX. Change the branches if needed so that the Create button is enabled. Enable screenreader mode if not already enabled.
2. Don't click on the Create button. Instead, focus on the PR description textarea, and then tab to the Create button.
3. Tab once again to get to the chevron/menu button, and press space to expand the menu.
4. :bug: I'm unsure how to tab back. If I press the Escape key, focus seems to go back to the start of the viewlet rather than back to the Create button.
Repository: godot
Issue: Physics joints solve for last frame's position when node is controlled inside a script.
Labels: topic:physics,needs testing

### Tested versions

4.2.1 stable, Godot Physics and Jolt Physics

### System information

Windows 11 version 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XTX (Advanced Micro Devices, Inc.; 31.0.22023.1014) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)

### Issue description

When a joint is connected to a script-controlled physics body (CharacterBody, RigidBody in kinematic mode), and a RigidBody node, the joint solver solves for the script-controlled physics body's last position, rather than current position.

The RigidBody solves to be 1 frame behind the CharacterBody

https://github.com/godotengine/godot/assets/38119387/b5e87b8e-a389-48ab-9e51-f6b2b93be854


Here I have set the CSGBox's position to be `-velocity * delta` (last frame's position), where it matches the RigidBody. I have not adjusted the Camera's position, so you can tell the CSGBox and RigidBody are following 1 frame behind.

https://github.com/godotengine/godot/assets/38119387/6255ef5e-c951-45ea-9bff-bcf297dbcdf4



I believe this is because _physics_process is run after the physics tick, and after joints have solved.

### Steps to reproduce

Connect a RigidBody to a CharacterBody using a physics joint. Move CharacterBody.

### Minimal reproduction project (MRP)

[minimal.zip](https://github.com/godotengine/godot/files/14110845/minimal.zip)
White cube is the CharacterBody. Red sphere is the Rigidbody. Camera is affixed to the CharacterBody.
Repository: godot
Issue: GraphNode not render perfect when zoom != 1
Labels: needs testing,topic:gui

### Tested versions

v4.2.1.stable.mono.official [b09f793f5]

### System information

Godot v4.2.1.stable.mono - Windows 10.0.17763 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.2849) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)

### Issue description

I'm create a stylebox for button normal's style like this:
![image](https://github.com/godotengine/godot/assets/35988767/f8746f92-55d1-40bb-b3d1-e7c2e76c1770)
It look well when zoom == 1.0, but when zoom != 1.0, it render not correct:
![GIF 2024-1-31 19-46-32](https://github.com/godotengine/godot/assets/35988767/bdeb628e-7504-45d4-924a-67097ce81d51)


### Steps to reproduce

1. run the MRP
2. zoom the GraphEdit

### Minimal reproduction project (MRP)

[RenderTest.zip](https://github.com/godotengine/godot/files/14111183/RenderTest.zip)
Repository: react-native
Issue: textContentType='streetAddressLine2' is not working in ios
Labels: Platform: iOS,Issue: Author Provided Repro,Needs: Triage :mag:

### Description

In my react native app I want to show suggestion for address the suggestion works for textContentType='streetAddressLine1' I get the name of the street that is saved in the contacts but for textContentType='streetAddressLine2' it is not working .No suggestion is comming up there

### Steps to reproduce

1. install the react native app with react native version "0.73.3".
2. In the app.tsx file create 2 TextInput with textContentType  'streetAddressLine1'  and 'streetAddressLine2'.
3. Got to the contacts app in your ios simulator select a profile which have the complete address filled ,In my case it is David Taylor profile make sure the complete address is filled .
4. now for 'streetAddressLine1' u will get the suggestion on the keyboard but not for 'streetAddressLine2'  

### React Native Version

0.73.3

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
System:
  OS: macOS 14.2.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 138.41 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.1.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.11.13.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11090377
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/ritikgupta/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.3
    wanted: 0.73.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
```


### Stacktrace or Logs

```text
Stacktrace or logs not available
```


### Reproducer

https://snack.expo.dev/@ritik_1_g/tenacious-red-watermelon

### Screenshots and Videos


https://github.com/facebook/react-native/assets/147544573/8e5e9e6c-f23e-4831-8db6-5c066b3e4b4d
Repository: terminal
Issue: Drop down menus goes out of Terminal window on Terminal Preview
Labels: Help Wanted,Issue-Bug,Area-UserInterface,Product-Terminal,Priority-3

### Windows Terminal version

1.20.10293.0

### Windows build number

23620.1000

### Other Software

_No response_

### Steps to reproduce

Open Terminal Preview app > Go to Settings > Open any drop down menu and scroll down/up

### Expected Behavior

Drop down menu either stays inside the window or automatically closes like on stable channel when you start scrolling

**Terminal Stable Behavior:**

https://github.com/microsoft/terminal/assets/64617514/1d30efae-93a0-43f2-baa0-0996b7c1b32f



### Actual Behavior

Drop down menu goes out of the window when you start scrolling through settings

**Terminal Preview Behavior:**

https://github.com/microsoft/terminal/assets/64617514/ff68dd0e-9cf7-43dc-b62c-77cff035ffa9