sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [in_app_purchase] Cannot get trial period of subscription
Labels: c: new feature,p: in_app_purchase,package,c: proposal,team-ecosystem,P2,triaged-ecosystem

### Steps to reproduce

I got subscriptions info details after request `queryProductDetails` method, but I cannot find the trial period for the subscriptions. My subscriptions have trials it, but I cannot fetch that trials.
I use   `in_app_purchase: 3.1.8`


### Expected results

I want to get a trial period for the subscription

### Actual results

Object `ProductDetailsResponse` doesn't contain trial period

### Code sample

```
    final productIDs = [
      PREMIUM_SUBSCRIPTION_MONTHLY,
      PREMIUM_SUBSCRIPTION_YEARLY,
      PREMIUM_LIFETIME
    ];

    final _inAppPurchase = InAppPurchase.instance;
   _inAppPurchase.queryProductDetails(productIDs.toSet()).then((value) {
     print(value);
   });
```

### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]
<img width="449" alt="Screenshot 2024-02-15 at 11 29 28" src="https://github.com/flutter/flutter/assets/26696190/09685a2f-5526-41dc-a6c1-f1f7a23986ee">

</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: vscode
Issue: Incorrect project tab names
Labels: upstream,macos,electron,workbench-os-integration

Type: <b>Bug</b>

1. open several vscode with different projects (3-5)
2. merge all windows to have possibility view it in tabs
3. select middle tab 
4. then select "window->new tab"

Expected result:
New tab, which appears near the tab selected in step (3) marked as new tab and other tab names has relevant naming

Actual result:
The naming of tabs are incorrect and system will recognize that the tab was added in the end of tabs



VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:29:15.765Z)
OS version: Darwin x64 22.6.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|4, 3, 2|
|Memory (System)|16.00GB (2.70GB free)|
|Process Argv|--crash-reporter-id c263b599-21a2-4dd5-bb82-d029c928e195|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (58)</summary>

Extension|Author (truncated)|Version
---|---|---
Bookmarks|ale|13.4.2
vscode-sqlite|ale|0.14.1
vscode-django|bat|1.15.0
vscode-raml|blz|3.0.1
doxdocgen|csc|1.4.0
vscode-notes|dio|1.2.1
githistory|don|0.6.20
python-environment-manager|don|1.2.4
python-extension-pack|don|1.7.0
xml|Dot|2.5.1
gitlens|eam|14.8.0
copy-relative-path-and-line-numbers|ezf|0.3.1
vscode-diff|fab|1.4.2
copilot|Git|1.160.0
copilot-chat|Git|0.12.2
vscode-pull-request-github|Git|0.80.1
go|gol|0.41.0
gc-excelviewer|Gra|4.2.58
CppSnippets|har|0.0.15
jbockle-format-files|jbo|3.4.0
better-cpp-syntax|jef|1.17.2
vsc-python-indent|Kev|1.18.0
lldb-vscode|lan|0.2.3
rainbow-csv|mec|3.11.0
git-graph|mhu|1.30.0
theme-monokai-pro-vscode|mon|1.2.2
compare-folders|mos|0.24.2
vscode-docker|ms-|1.29.0
debugpy|ms-|2024.0.0
isort|ms-|2023.10.1
python|ms-|2024.0.1
vscode-pylance|ms-|2024.2.2
jupyter|ms-|2024.1.1
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.17
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
cmake-tools|ms-|1.17.15
cpptools|ms-|1.18.5
cpptools-extension-pack|ms-|1.3.0
makefile-tools|ms-|0.8.22
sqltools|mtx|0.28.1
autodocstring|njp|0.6.1
indent-rainbow|ode|8.3.1
sqlite-viewer|qwt|0.3.13
vscode-thunder-client|ran|2.17.8
vscode-yaml|red|1.14.0
synthwave-vscode|Rob|0.1.15
code-spell-checker|str|3.0.1
vscode-make|tec|1.0.2
cmake|twx|0.0.17
vscode-lldb|vad|1.10.0
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.2.30
gitblame|wad|10.9.0
vscode-todo-highlight|way|1.0.5
jinja|who|0.0.8
markdown-all-in-one|yzh|3.6.2

(5 theme extensions excluded)

</details>
<!-- generated by issue reporter -->
Repository: PowerToys
Issue: Saving size, location of the windows.. layout snapshot.
Labels: Idea-Enhancement,FancyZones-Layouts,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

will be beneficial save windows layout functionality. ex. I have 3 monitors and I am openeing many modules/windows/explorer/browser etc and putting the specicific monitor with its size. I am using Fancy Zone then when I hibernate, sleep  all of them switch to one monitor etc..

### Scenario when this would be used?

everybody  use it. If it is so complex you can limited saved size/loaction of windows etc.

### Supporting information

_No response_
Repository: go
Issue: proposal: crypto/rsa: allow hash.Hash for OAEP and MGF1 to be specified independently for encryption
Labels: Proposal,Proposal-Crypto

### Proposal Details

It is currently impossible to independently choose the hash functions used by `rsa.EncryptOAEP` for OAEP and MGF1. The issue was already raised in #19974; however, it has only been fixed in the decryption functions.

This functionality is needed to wrap keys for the Android Keystore secure import. The Android developer documentation specifies that `encryptedTransportKey is a 256-bit AES key, [...] encrypted in RSA-OAEP mode (SHA-256 digest, SHA-1 MGF1 digest)` (https://developer.android.com/reference/android/security/keystore/WrappedKeyEntry). This specification requires being able to encrypt using RSA-OAEP with different algorithms for OAEP and MGF1.
Repository: go
Issue: proposal: x/crypto/argon2: Check if the parameters and the key length are valid
Labels: Proposal,Proposal-Crypto

### Proposal Details

According to [RFC 9106](https://datatracker.ietf.org/doc/html/rfc9106#section-3.1), the valid values for the parameters and the key length are:

- $1 \leq t \leq 2^{32} - 1$ (number of passes, `time`)
- $8p \leq m \leq 2^{32} - 1$ (memory size, `memory`)
- $1 \leq p \leq 2^{24} - 1$ (degree of parallelism, `threads`)
- $4 \leq T \leq 2^{32} - 1$ (tag length, `keyLen`)

No need to check maximum values of `time`, `memory` and `keyLen`, since these are `math.MaxUint32`. Also, since `threads` is `uint8`, there is no need to check the maximum value.

The minimum values of `time` and `threads` are [already checked](https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.19.0:argon2/argon2.go;l=101-106). However, the minimum values of `memory` and `keyLen` seem not to be checked. So, I would suggest checking for these minimum values and either panic or return an error if they are invalid.

#### Examples

```go
import "golang.org/x/crypto/argon2"

// `memory` is invalid
idKey := argon2.IDKey([]byte("passphrase"), salt, 3, 24, 4, 4)

// `keyLen` is invalid
key := argon2.Key([]byte("passphrase"), salt, 3, 32, 4, 3)
```
Repository: next.js
Issue: Disabling dynamic params doesn't work with cookies function
Labels: bug

### Link to the code that reproduces this issue

https://github.com/kpovel/next-dynamic-params-bug

### To Reproduce

1. Start production build 
2. Open http://localhost:3000/e page that uses dynamic routes

`src/app/[lang]/page.tsx`
```tsx
import { cookies } from "next/headers";

export const dynamicParams = false;
export function generateStaticParams() {
  return [{ lang: "en" }, { lang: "uk" }];
}

export default function Page({ params }: { params: { lang: string } }) {
  // In production build, if a language is not supported, the code would be executed inside the if statement
  if (params.lang !== "en" && params.lang !== "uk") {
    throw Error("unsupported language error");
  }
  cookies().get("foo");

  return <h2>Current lang is {params.lang}</h2>;
}
```

### Current vs. Expected behavior

The body of the if statement should never be run as I disable dynamic params, and it should render a `not-found` page if a parameter isn't allowed. This works perfectly fine in development mode. However, in production, a `not-found` page isn't rendering and it tries to render this page using dynamic routes. 

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:27 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8103
Binaries:
  Node: 21.6.1
  npm: 10.2.4
  Yarn: N/A
  pnpm: 8.15.2
Relevant Packages:
  next: 14.1.1-canary.54 // Latest available version is detected (14.1.1-canary.54).
  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)

App Router

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

next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: vscode
Issue: Notebook Kernel API tests failed
Labels: bug,integration-test-failure,notebook-execution

Build: https://dev.azure.com/monacotools/a6d41577-0fa3-498e-af22-257312ff0545/_build/results?buildId=257379
Changes: https://github.com/Microsoft/vscode/compare/6722b81...633992c
Repository: PowerToys
Issue: Question: built-in modules
Labels: Issue-Docs,Needs-Triage,Needs-Team-Response

### Provide a description of requested docs changes

I want to create a powertoys module but not a powertoys run plugin. A module like alwaysontop or file explorer preview for example. Is it possible?
Repository: opencv
Issue: Generalized Histogram Thresholding
Labels: feature,category: contrib

### Describe the feature and motivation

A few years ago, Jon Barron introduced a new thresholding algorithm called Generalized Histogram Thresholding. The source code in Python is [available here](https://github.com/jonbarron/hist_thresh) under Apache 2 license. I was wondering if this has ever be implemented in C++ as part of OpenCV or whether it's implementation is in the plans for OpenCV 5. 

The algorithm has superior performance against other methods and has received good attention by the Computer Vision community so I believe it would be a nice addition to the OpenCV library. It should be relatively easy to implement.

Thanks,
Marco.

### Additional context

_No response_
Repository: kubernetes
Issue: Kubernetes Audit - Log Level "Request"
Labels: kind/support,sig/auth,sig/security,triage/accepted

### What happened?

In the Audit Policy file I've definded one rule with level "**Request**". In the audit-log I see RequestReceived **and** ResponseComplete Statges

### What did you expect to happen?

Derived from the documentation (https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/#audit-policy) the audit log should not contain ResponseComplete Stage. 

With the Policy below I receive two entries in the audit log as listed below

### How can we reproduce it (as minimally and precisely as possible)?

```
apiVersion: audit.k8s.io/v1
kind: Policy
rules:
- level: Request
  resources:
  - group: "" 
    resources: ["secrets"]
```

### Anything else we need to know?

This is the (reduced recorded) output when i create a secret

`{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Request","auditID":"e9177848-c55c-4849-84d0-ccd43fde9abf","stage":"RequestReceived","requestURI":"/api/v1/namespaces/dafault/secrets" ...}`

`{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Request","auditID":"e9177848-c55c-4849-84d0-ccd43fde9abf","stage":"**ResponseComplete**","requestURI":"/api/v1/namespaces/27-audit/secrets" ...}` 

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.29.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.0

</details>


### Cloud provider

on-prem

### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ uname -a
Linux k8sm201 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: vscode
Issue: `resolveCodeLens` invokes `validateRange` on disposed model
Labels: code-lens

Got an error in dev console

```
ERR Model is disposed!: Error: Model is disposed!
    at F.ib (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:741:263)
    at F.validateRange (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:744:2567)
    at Object.resolveCodeLens (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1640:12619)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
```

I can try tackling this during debt week

cc @jrieken
Repository: go
Issue: x/vuln: govulncheck integration with go (mod) and GOPROXY
Labels: NeedsInvestigation,vulncheck or vulndb

Please consider merging `govulncheck` cmd/api into `go audit` (`go mod audit`?) to avoid separate cmd and allow audit requests to be passed via GOPROXY. This would allow one to use internal proxies like [athens](https://github.com/gomods/athens) for handling dependency audits not just module caching/fetching.

Such solution is now possible in JS world with [npm audit](https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities) + [Verdaccio](https://github.com/verdaccio/verdaccio?tab=readme-ov-file#security) + `npm_config_registry` env variable.
Repository: react-native
Issue: Text cut off on Android 13+
Labels: Issue: Author Provided Repro,Platform: Android

### Description

Text is cutting off vertically on Android 13+.
Tested both on old and new arch.

There's a couple of issues with similar topics (none mentioning new arch, nor with an easy repro):
- https://github.com/facebook/react-native/issues/15114
- https://github.com/facebook/react-native/issues/37764
- https://github.com/facebook/react-native/issues/41559
- https://github.com/facebook/react-native/issues/36992
- https://github.com/facebook/react-native/issues/36336
- https://github.com/facebook/react-native/issues/36350

### Steps to reproduce

1. Use `༼ つ ◕_◕ ༽つ test` text anywhere

### React Native Version

0.73.4

### Affected Platforms

Runtime - Android

### Areas

Fabric - The New Renderer

### Output of `npx react-native info`

```text
System:
    OS: macOS 14.3
    CPU: (8) arm64 Apple M1 Pro
    Memory: 121.52 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    Android SDK:
      API Levels: 23, 28, 30, 31, 33, 34
      Build Tools: 23.0.1, 23.0.2, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.3, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0
      System Images: android-31 | ARM 64 v8a, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play ARM 64 v8a, android-33-ext5 | Google Play ARM 64 v8a
      Android NDK: 23.0.7344513-beta4
  IDEs:
    Android Studio: 2022.2 AI-222.4459.24.2221.9862592
    Xcode: 15.2/15C500b - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.8 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: RocketChat/react-native#1b987e4ae3d5e912fda77da5215912ec15f14327 => 0.68.7
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
```
```


### Stacktrace or Logs

```text
n/a
```


### Reproducer

https://snack.expo.dev/@diegolmello/gimme-text-cutoff

### Screenshots and Videos

SDK 33
![image](https://github.com/facebook/react-native/assets/804994/925c7e0e-078d-43a5-847d-51bd6e149b3e)

SDK 31
![image](https://github.com/facebook/react-native/assets/804994/929c5597-373c-46fa-a94a-87d9b6f11154)
Repository: godot
Issue: Wayland: `DRI_PRIME` warnings raised by DetectPrimeEGL
Labels: bug,platform:linuxbsd,topic:porting

### Tested versions

- Reproducible in 4.3.dev (907db8eebcecb97d527edcaff77a1c87a6c068f5), only after the merge of the Wayland backend adding DetectPrimeEGL

### System information

Fedora Linux 39 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

### Issue description

When running the Godot project manager with the Wayland driver and the GL compatibility backend, the following warnings are printed:
```
Invalid value (0) for DRI_PRIME. Should be > 0
Inconsistent value (2) for DRI_PRIME. Should be < 2 (GPU devices count). Using: 1
Inconsistent value (3) for DRI_PRIME. Should be < 2 (GPU devices count). Using: 1
```

See https://github.com/godotengine/godot/pull/86180#issuecomment-1916479457 and following comments for context.

The current DetectPrimeEGL logic tries all integer values from `DRI_PRIME=0` to `DRI_PRIME=3` to see whether more than 2 GPUs may be available, and attempt to pick the best one.

Mesa doesn't seem to like running `DRI_PRIME=2` or `DRI_PRIME=3` when the GPU devices count is only 2. Maybe it provides a way to query what that GPU devices count is so we don't attempt the ids that aren't supported? It's pretty much Mesa's own `ERR_FAIL_INDEX` we need to work around on  the calling side ;)

Likewise, it seems to complain about `DRI_PRIME=0`. It's a bit weird as *we* even have a message recommending using it to force using the default device, but apparently that's not correct usage? So with 2 GPUs it's only `DRI_PRIME=1` to pick the second one, and no env variable to pick the first? Seems pretty weird.

All in all a pretty low priority issue, but silencing those warnings would be nice.

@hpvb has done some work on a better GPU detection for EGL which may solve this issue.

The GLX `detect_prime` doesn't raise warnings as currently it only tests no env var and `DRI_PRIME=1`. But if we decide to sync it with the current EGL one to support more than 2 GPUs, we'd have a similar issue.

### Steps to reproduce

`godot --display-driver wayland --rendering-driver opengl3`

### Minimal reproduction project (MRP)

n/a
Repository: go
Issue: x/tools/gopls: code action "Extract interface for type"
Labels: FeatureRequest,gopls,Tools,Refactoring

### gopls version

Irrelevant

### go env

```shell
Irrelevant
```


### What did you do?

Given the following code:

```
type Server struct {
    api *api.Client
}

func (s *Server) CreateUser(ctx context.Context, userID string) {
    err := s.api.CreateUser(ctx, userID)
    // ...
}

func (s *Server) DeleteUser(ctx context.Context, userID string) {
    err := s.api.DeleteUser(ctx, userID)
    // ...
}
```

### What did you see happen?

It would be nice if gopls offered an action to extract an interface out of the used methods on the api field. So for the example given above, it would offer an edit to do something like this:

```
type Client interface {
    CreateUser(context.Context, string) error
    DeleteUser(context.Context, string) error
}

type Server struct {
    api Client
}
```

Where the method set of the generated interface is the methods that are called on the field that the action was initiated on, and if there are uses that are not method calls on that field then it would either error or just not offer the action.

### What did you expect to see?

Nothing

### Editor and settings

_No response_

### Logs

_No response_
Repository: vscode
Issue: Add `.astro` extension to the known extensions
Labels: feature-request

<!-- ⚠️⚠️ 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. -->

I want to request if you'd be open to the idea of adding `.astro` to the list of [known file extensions](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers)

I know there was a previous (maybe different) request in the past: https://github.com/microsoft/vscode/issues/149110

One of the reasons why I'd like to have native support as a known extension is because I would like to enable the Biome VS Code extension when an Astro file is open.
Repository: PowerToys
Issue: Keyboard does not follow mouse (without borders) to other pc when moving from remote desktop, unless clicking or typing in local pc
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.78.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

On the right side i have a pc with two screens. The screen most on the right contains a remote desktop session to a VM (in Azure).
On the left of my two PC screens i have a laptop.
Only when I've been working (or have clicked) inside the remote desktop, and then move directly to the laptop, without clicking or typing in the local PC, then the keyboard focus is still in the remote desktop session.
The mouse does not have problems. Only the keyboard focus stays inside the remote desktop.
I have to click at least once outside the Remote desktop inside the local PC, before moving to the laptop, to be able to use the keyboard inside the laptop.

### ✔️ Expected Behavior

Keyboard focus to follow the mouse at all times

### ❌ Actual Behavior

Keyboard focus did not follow, when moving from remote desktop, to other machine

### Other Software

Remote desktop connection