sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Number of scales in DISFlow
Labels: feature,category: video

### Describe the feature and motivation

Dear OpenCV developers,

Thank you very much for the addition of the epsilon parameter in DISFlow inside OpenCV. Here I am again with an other issue.
The number of scales is computed automatically in DISFlow. It is a great idea for most of cases, but it can lead to huge errors on some cases.
As the principle behind the pyramidal method is to have displacement values that are under 1Px, it would be great to let the user optionally set  a coarsest scale as it is possible to set a finest scale, if the user knows the approximate amplitude of displacement he should have (not to difficult to do in mechanics).

Generally in mechanics we never go over 4, as the speckle we apply on the specimen tends to disappear when we increase this number, and lead to errors that can't be corrected in the finer scales. It would be perfect if we could have it.
Here an example of the ideal of set-up

```python
DIS = cv2.DISOpticalFlow_create()
DIS.setFinestScale(0)
DIS.setCoarsestScale(3)
DIS.setPatchSize(4)
DIS.setPatchStride(2)
DIS.setVariationalRefinementAlpha(2)
DIS.setVariationalRefinementGamma(0)
DIS.setVariationalRefinementDelta(1)
DIS.setVariationalRefinementEpsilon(0.02)
DIS.setVariationalRefinementIterations(30)
```
The last thing that is lacking is setCoarsestScale

This implementation is more effective that most of our methods in mechanics, so it would be great if we can succeed in fine tuning it for our needs.

Regards

### Additional context

_No response_
Repository: godot
Issue: LODs are not working when using mesh from GridMap
Labels: discussion,topic:3d

### Tested versions

Reproducible in 4.0 and higher.
Not tested below 4.0 version.

### System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)

### Issue description

Levels of details and visiblity range (HLOD) stops working when mesh is used from the GridMap/MeshLibrary.

### Steps to reproduce

1. Create empty scene with Node3D as root.
2. Add MeshInstance3D and give it any mesh.
3. Under GeometryInstance3D change LOD Bias and Visibility Range End value. LODs and HLODs are working here when zooming out.
4. Export scene as MeshLibrary
5. Create new scene, add GridMap and assign previously created MeshLibrary for GridMap.
6. Place object from GridMap to the scene. LODs and HLODs are not working anymore when zooming out.

### Minimal reproduction project (MRP)

N/A
Repository: transformers
Issue: prophetnet_multi
Labels: New model

### Model description

Multilingual text generation model based on prophetnet.

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

_No response_
Repository: vscode
Issue: Setting editor.find.seedSearchStringFromSelection to Selection still seed the Find Widget from not selected words
Labels: bug,editor-find

<!-- ⚠️⚠️ 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.86.1
- OS Version: Linux x64 5.15.0-94-generic snap

```
Version: 1.86.1
Commit: 31c37ee8f63491495ac49e43b8544550fbae4533
Date: 2024-02-07T09:07:19.849Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 5.15.0-94-generic snap
```

Steps to Reproduce:

1. Set `editor.find.seedSearchStringFromSelection` to `selection`
2. Open a text file and selecting a text (`cursorColumnSelectLeft`/`cursorColumnSelectRight`, usually shift+left/shift+right arrow key)
3. Find Next Selection (editor.action.nextSelectionMatchFindAction key) -> Will feed the Find Widget with the selected word
4. Move the cursor to any other different word in the text without selecting it -> The word is highlightened
5. Find Next Selection (editor.action.nextSelectionMatchFindAction key) -> Will feed the Find Widget with the other highlightened word

At this point the other different word is searched instead of the one that was searched in step 3

Reproducible also if `editor.find.seedSearchStringFromSelection` is set to `never` in step 1

See also https://github.com/microsoft/vscode/issues/20768#issuecomment-1146015487
Repository: go
Issue: proposal: encoding/json: iter.Seq marshal support
Labels: Proposal

### Proposal Details

I propose that `json.Marshal` should treat `iter.Seq[T]` like `[]T`, encoding it as an array. Then we can e.g. write this:

```go
json.Marshal(xiter.Map(time.Duration.String, []time.Duration{5*time.Second, 3*time.Hour}))
// -> ["5s","3h0m0s"]
```

and avoid allocating a slice.
Repository: vscode
Issue: File drop should insert file paths, take 3
Labels: bug,windows,uri,confirmed

Type: <b>Bug</b>

This is my third attempt of getting the file drop issue to be fixed (cf. #199013, #200150).

![filedrop](https://github.com/microsoft/vscode/assets/156297080/dc738183-1340-4394-a40a-6359b6f4a3c6)

I'm posting this as a bug now because (a) it is incorrect behavior (pasting file URLs to terminals is not helpful and may be a result of Code's JS core) and (b) the amount of community feedback should not determine whether or not this issue should be fix.

Thank you.

-- I just noticed that dragging files into an integrated terminal no longer pastes file URLs. Would be great if this worked for external terminals as well.

VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Repository: next.js
Issue: [#00196439] Discrepancy in resolved URL and metadata between local dev/production and Vercel deployments.
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/amazeing-GmbH/vercel-repro-00196439

### To Reproduce

1. Deploy the project to Vercel

   When deployed to a Vercel environment, this minimal reproducer lacks the information from the middleware rewrite, resulting in a wrong `resolvedUrl` in the `context` object when running `getServerSideProps`.

2. Deploy the project locally

   When building locally (dev or production build) information are passed correctly throughout the stack and `resolvedUrl` will provide the rewritten path.

### Current vs. Expected behavior

Calling the attached Vercel environment https://vercel-repro-00196439.vercel.app/ a rewrite happens under the hood via middleware to `/[param]/folder`. The `resolvedUrl` from the `context` object in the `getServerSideProps` wrapper returns `/` (which is incorrect) due to not having the necessary rewrite information available in the request metadata.

From the page:

<img width="858" alt="image" src="https://github.com/vercel/next.js/assets/4417135/f28867e9-ebe0-43bc-aa1b-b8c26146a479">


Running the project locally, regardless of dev/production build, the information is correctly passed, visible in the page:

<img width="832" alt="image" src="https://github.com/vercel/next.js/assets/4417135/186c5c68-b7e9-4ed7-b176-337747b0bdf2">

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
Binaries:
  Node: 18.18.2
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 13.5.3
  eslint-config-next: N/A
  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)

Middleware / Edge (API routes, runtime)

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

Please check the Vercel internal case "00196439" for further information. We were asked to open a ticket here, since this seems to be a Next.js issue, rather than a Vercel platform issue.
Repository: PowerToys
Issue: [Run] [VSCode] Recent workspaces does not show network paths
Labels: Issue-Bug,Help Wanted,Product-PowerToys Run,Cost-Small,Run-Plugin

### Microsoft PowerToys version

0.78.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Note: no relevant logs from PowerToys Run were generated.
1. Have a network share. Mine is `//truenas`.  
2. Open a folder in the network share with VS Code.  
3. Observe that it does not show up in PowerToys Run.  
4. Mount the network share to a path. Mine is `W:/`.  
5. Open a folder, this time from the mounted path.  
6. Observe that it shows up in PowerToys Run.  

To get a list of opened paths, the plugin reads the `state.vscdb` sqlite file and looks for `history.recentlyOpenedPathsList`.  
For reference, this is the `history.recentlyOpenedPathsList` in my `state.vscdb` file:
```json
{
    "entries": [
        {
            "folderUri":"file:///w%3A/Projects/Vencord"
        },
        {
            "folderUri":"file://truenas/storage/Projects/website-frontend"
        }
    ]
}
```
And the PowerToys Run window:
![image](https://github.com/microsoft/PowerToys/assets/18369995/7a063bc5-9c48-4a80-ab46-6fa58e64fba8)

~~I think this stems from the way the VSCode plugin parses the URI path here, as regular system paths contain 3 slashes, but network paths only contain 2.~~
https://github.com/microsoft/PowerToys/blob/fef50971af193a8c04c697022b6c7c880edcdc46/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/WorkspacesHelper/VSCodeWorkspacesApi.cs#L43-L47
~~though I don't know enough about URI parsing to be sure.~~
EDIT: though there is a local check here, so it shouldn't get removed for non-local folders. Maybe it gets marked as local as I access it from a network location, but I *also* have it mounted to `W:/`?

I can't get PowerToys to compile, so I can't really test if this is the cause.

### ✔️ Expected Behavior

PowerToys Run VSCode Workspaces plugin shows recently opened folders if they are located on a network path.

### ❌ Actual Behavior

Folders from network paths do not show up at all.

### Other Software

**Visual Studio Code - Insiders**:
Version: 1.87.0-insider (system setup)
Commit: a0b90ac5e04ea9a0733b68062253a469994e170e
Date: 2024-02-22T05:48:26.543Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22621
Repository: flutter
Issue: ScrollbarThemeData not being applied on iOS
Labels: platform-ios,f: material design,f: scrolling,has reproducible steps,P3,team-design,triaged-design,found in release: 3.19,found in release: 3.20

### Steps to reproduce

When executing the following code in an iOS environment, ScrollbarThemeData is not applied.

``` dart
SizedBox(
    height: 500,
    child: Theme(
        data: ThemeData(
            scrollbarTheme: ScrollbarThemeData(
            thickness: MaterialStateProperty.all(12.0),
            thumbColor: MaterialStateProperty.all(Colors.blue),
            radius: const Radius.circular(8),
            ),
        ),
        child: Scrollbar(
            thumbVisibility: true,
            child: ListView.builder(
                itemCount: 100,
                itemBuilder: (BuildContext context, int index) {
                    return ListTile(title: Text('Item $index'));
                },
            ),
        ),
    ),
),
```

### Expected results

The contents of ScrollbarThemeData to be reflected on iOS.


### Actual results

On iOS environments, ScrollbarThemeData is not being applied.

It has been confirmed that ScrollbarThemeData is applied in web and Android environments.

Right: iOS Center: Android Left: Web

![image](https://github.com/flutter/flutter/assets/72698168/df4dad95-fbfc-4bc5-8a03-ec2e43271b64)


If there are any solutions or workarounds, please let me know.

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### 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: PowerToys
Issue: Sometimes files occupied by WPS can't be detected by file locksmith, even if the administrator has been given permission.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.78.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

File Locksmith

### Steps to reproduce

When you open a word file (docx) using WPS, it shows that the file has been occupied by WPS text when it is deleted, but when you use file locksmith to view the process that occupies the file, there is nothing, even if you give the administrator permission.The previous version seems to have no such problem.
CN:使用WPS打开如word文件（docx）在删除时显示文件已被WPS文字占用，但是使用file locksmith查看占用文件的进程时，什么都没有，即使给了管理员权限也是一样的.之前的版本好像是没有这个问题的

### ✔️ Expected Behavior

The WPS application that currently occupies files is displayed correctly.
正确的显示出当前占用文件的WPS应用程序

### ❌ Actual Behavior

Display "No Results Found"
显示“找不到结果”

### Other Software

_No response_
Repository: material-ui
Issue: [material-ui][Popover] Incorrect position inside CSS inline-size container
Labels: bug 🐛,component: Popover,package: material-ui

### Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/mui-container-query-wtzlg5?file=%2Fsrc%2FDemo.tsx

Steps:
1. Tick the "Disable portal" checkbox
2. Click the "Open popover" button


### Current behavior

The popover is mispositioned when `disablePortal` flag is set

### Expected behavior

The popover should be positioned the same regardless of the `disablePortal` flag

### Context

In our app we have a reusable form field component that uses container queries for different layouts depending on available size. Some form fields use the MUI Popover component, eg. to display a calendar in a date input field.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: macOS 14.3.1
  Binaries:
    Node: 19.6.0 - ~/.nvm/versions/node/v19.6.0/bin/node
    npm: 9.5.0 - ~/.nvm/versions/node/v19.6.0/bin/npm
    pnpm: 8.6.12 - ~/.nvm/versions/node/v19.6.0/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.184
    Edge: Not Found
    Safari: 17.3.1```
</details>


**Search keywords**: mui popover inline size disableportal
Repository: go
Issue: runtime: allow preemption-disable around critical section
Labels: Performance,NeedsDecision,compiler/runtime

### Go version

go version go1.22.0 darwin/arm64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN='/Users/***/gopath/bin'
GOCACHE='/Users/***/Library/Caches/go-build'
GOENV='/Users/***/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/***/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/***/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.22.0/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.22.0/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.0'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/0q/57ygjhqj3k59y4b8txgw839r0000gn/T/go-build2558853606=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

Running my application I have been investigating some long tail latency which is causing backlogs in the processing of incoming message. The application processes between 4,000 to 50,0000 incoming JSON messages a second, delivered over websocket connections. These messages are unmarshalled on between 8 and 16 separate sockets with a goroutine doing the reading on each. All unmarshalled messages are sent over a single channel to another goroutine that does time sensitive calculations on the resultant state of those messages. There are virtually no memory allocations and GC pauses typically happen once every 30 seconds. This goroutine running its calculation in a speedy manner is critical to the success of the application.

### What did you see happen?

Under normal compilation using go 1.22, there is significant long tail (0.9999 percentile) latency of 5-15 ms on the time taken to complete the calculation which typically takes 30-90µs (0.99 percentile). With the `asyncpreemptoff` flag set on GODEBUG, this latency (0.9999 percentile) falls below 1ms.  The following image graphs the changed before and after setting the flag:

<img width="1488" alt="Screenshot 2024-02-22 at 09 25 58" src="https://github.com/golang/go/assets/138108/eb9d2c85-08cb-43f2-a21f-9f7c49b92b66">


### What did you expect to see?

I understand why preemption is useful for long running goroutines that starve other goroutines of access to the CPU, but I would not expect there to be such latency from its use. Being able to disable preemption for specific goroutines might be one solution. If you would like any more specific traces or profiles, happy to provide them. It would be difficult for me to provide a reproducer as the timings of all involved goroutines are very dependent on third party external state.
Repository: kubernetes
Issue: [FG:InPlacePodVerticalScaling] Pod Resize - resize stuck in "InProgress"
Labels: kind/bug,sig/node,triage/accepted

### What happened?

I am trying the the feature gate "InPlacePodVerticalScaling". I tried on multiple environment/versions and the result is always the same. Resize is forever stuck in "InProgress". 

I followed the doc: https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/

### What did you expect to happen?

Resize field in pod status should go to `complete`

### How can we reproduce it (as minimally and precisely as possible)?

Follow this doc: https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/

### Anything else we need to know?

_No response_

### Kubernetes version

I tested with kubernetes version 1.27 and 1.29 with the same result.
containerd version being v1.6.28.

The 2 requirements being (from my understanding):
kubernetes >=v1.27
containerd >=v1.6.9


### Cloud provider

I tried on GKE and locally with Minikube


### OS version

mac sonoma 14.1.2 (m1)
Repository: deno
Issue: Add CSV reporter to `deno bench`
Labels: feat,testing

When benchmarking code, I frequently want to copy it into a spreadsheet to be able to easily generate charts. Currently this is a bit of an annoying manual process with `deno bench`, as the pretty-printed output doesn't copy+paste nicely (at least, not in LibreCalc). The JSON reporter is a nice option, but also requires a bit of processing before I can move it into a spreadsheet.

It'd be nice if I could specify `deno bench --csv` and have it output a comma-separated, no ansi-colours version of the default output. It seems like that would be a case of adding a new `BenchReporter` implementation to [https://github.com/denoland/deno/blob/main/cli/tools/bench/reporters.rs](bench/reporters.rs). 

I'd be happy to work on that, as it doesn't seem too complicated. It's just a question of whether anyone but me would find it useful.
Repository: pytorch
Issue: Reinitialize parameters in TransformerEncoder
Labels: module: nn,triaged

### 🚀 The feature, motivation and pitch

I was exploring the nn.TransformerEncoder, and I noticed that one layer is initialized and the other layers are copies of this initial random state. Although this might be worth exploring, intuitively it'd make sense to initialize randomly each of the layers.
```
self.layers = _get_clones(encoder_layer, num_layers)
for layer in self.layers:
    for sublayer in layer.children():
        if hasattr(sublayer, 'reset_parameters'):
            sublayer.reset_parameters()
```
My intuition is that if a random initialization has projections associated with certain eigenvectors, repeated applications of this layer might tend to project toward vectors with large norms, which could cause numerical issues during the initial training steps.

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: angular
Issue: Add an option to keep double-quotes as " instead escaping them as &quot; 
Labels: area: i18n

### Command

extract-i18n

### Description

According to the xml standard the escaping for double-quotes is only intended for attributes. See [https://www.w3.org/TR/xml ](https://www.w3.org/TR/xml) section 2.4. Therefore the value of the source and target tags need no escaping. The unnecessary escaping causes problem with translation tools. 

Example:
```
<source>The file path must end with &quot;.p12&quot; or &quot;.pfx&quot;</source>  
```
should be
```
<source>The file path must end with ".p12" or ".pfx"</source>  
```


### Describe the solution you'd like

_No response_

### Describe alternatives you've considered

_No response_