sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: iOS 17 has deprecated NSLocale countryCode, use regionCode if on iOS 17
Labels: platform-ios,engine,a: internationalization,customer: google,P2,team-ios,triaged-ios

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

In https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/platform_view_ios.mm#L244
the function is converting a locale id into a set of language/script/country strings, but the countryCode accessor is deprecated and returns null.
https://developer.apple.com/documentation/foundation/nslocale/1643060-countrycode?language=objc
What used to be the country code is now accessible through variantCode.
 
Repro steps:
1 Ensure you have an english language listed in your language settings on your iOS device
2. call the following function
WidgetsBinding.instance.platformDispatcher
      .computePlatformResolvedLocale(<Locale>[Locale('en', 'US')]);


### Expected results

The function returns Locale('en', 'US') (language="en", countryCode="US")

### Actual results

The function returns Locale('en'). The country code has been lost.

### Code sample

<details><summary>Suggested fix for https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/platform_view_ios.mm#L244 </summary>

```objC
    NSString* countryCode = [locale countryCode];
    // countryCode has been deprecated since ios 17 and returns null.
    // Use the variantCode instead.
    if (countryCode == nullptr) {
      NSString* variantCode = [locale variantCode];
      out->emplace_back(variantCode == nullptr ? "" : variantCode.UTF8String);
    } else {
      out->emplace_back(countryCode.UTF8String);
    }
```

</details>


### Screenshots or Video

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


### Logs

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


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: flutter
Issue: Flutter native plugin `MethodChannel` can't handle long string text
Labels: platform-android,engine,a: existing-apps,has reproducible steps,P2,found in release: 3.10,found in release: 3.12,team-android,triaged-android

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce
kotlin side:
```kotlin
        MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "my_kotlin_functions").setMethodCallHandler { call, result ->
            if (call.method.contentEquals("get_an_base64_image_string")) {
                result.success("20MB big base64 string")
            }
        }
```

flutter side:
```dart
      static const MethodChannel kotlin_functions =
          MethodChannel('my_kotlin_functions');
      var json_string = await kotlin_functions
          .invokeMethod('get_an_base64_image_string', <String, dynamic>{});
```

### Expected results

Get that long string.

### Actual results

Get error string.

### Code sample

See steps to reproduce.

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

[✓] Flutter (Channel stable, 3.10.2, on Pop!_OS 22.04 LTS 6.2.6-76060206-generic,
    locale en_US.UTF-8)
    • Flutter version 3.10.2 on channel stable at
      /home/yingshaoxo/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (2 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /home/yingshaoxo/Android/Sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /home/yingshaoxo/Documents/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2022.2)
    • Android Studio at /home/yingshaoxo/Documents/android-studio
    • Flutter plugin version 74.0.2
    • Dart plugin version 222.4582
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.66.0

[✓] Connected device (3 available)
    • M2102K1G (mobile) • e741907e • android-arm64  • Android 13 (API 33)
    • Linux (desktop)   • linux    • linux-x64      • Pop!_OS 22.04 LTS
      6.2.6-76060206-generic
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 112.0.5615.165

[✓] Network resources
    • All expected network resources are available.

• No issues found!
Repository: PowerToys
Issue: Additional languages - Serbian (Latin-RS) and (Cyrillic-RS)
Labels: Idea-Enhancement

### Description of the new feature / enhancement

It's simple. Add all supported languages to PowerToys


also, add Serbian (Latin-RS) and (Cyrillic-RS)

### Scenario when this would be used?

when Launching PowerToys Settings in Appearance & Behavior add Display Languages and drop-down menu with all languages said above

### Supporting information

_No response_
Repository: godot
Issue: 4.0.3 Remote Debugging cannot be accessed by a LAN device
Labels: topic:editor,needs testing,topic:network

### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

windows10 - v4.0.3.stable.official [5222a99f5] - compatibility

### Issue description

In version 4.0.3.When using remote debugging, the LAN device cannot access the service
But in 3.5.2,is can.

This is the setting in 3.5.2,All you need to do is set the IP to the local LAN ip
![image](https://github.com/godotengine/godot/assets/34900141/ff1c6622-64a5-4b22-a0cb-a2fdfe074f9f)

This is the setting in 4.0.3,In 4.0, without the addition of a certificate, even the native cannot access the service by ip,But even then, other devices can't access it
![image](https://github.com/godotengine/godot/assets/34900141/468a0021-354d-4cef-ad93-8fea2b88a980)


I'm not sure if 4.0.3 requires something extra or if this is a bug in 4.0.3. The remote debugging feature is very useful, and in 3.5.2 I can even access it directly from my phone to debug multi-touch operations on my mobile device.




### Steps to reproduce

Run with remote debugging..

### Minimal reproduction project

none
Repository: godot
Issue: [3.x][GLES3] Alpha scissor not working properly with transparent background viewport
Labels: bug,topic:rendering

### Godot version

3.5.stable and 3.6.beta2

### System information

Windows 10 64-bit, GLES3, GTX1060 6GB

### Issue description

Consider we are drawing a unshaded quad with a transparent gradient texture:
![1](https://github.com/godotengine/godot/assets/48320629/58e12390-f103-4292-96b9-8ea17ae54c3f)
If we use alpha scissor with 0.5 threshold for the quad, it looks like this:
![2](https://github.com/godotengine/godot/assets/48320629/6d872ed9-e7b6-438d-94f4-d785c4f40530)
, which is expected.

Now consider this scene setup that uses a viewport for rendering the quad (we can focus on the left quad first):
![3](https://github.com/godotengine/godot/assets/48320629/bf9a95b3-5358-45d2-8557-d9adc781e834)
![4](https://github.com/godotengine/godot/assets/48320629/304d51b1-5061-4751-95db-906a351a831d)
, which is still fine.

However, when we toggle the "transparent_bg" option, suddenly it looks off:
![5](https://github.com/godotengine/godot/assets/48320629/481d5b31-ead0-43b7-8668-32255d86b896)

We can add a 2D purple background to better see the problem:
![6](https://github.com/godotengine/godot/assets/48320629/6d31fec8-d855-4721-af57-a7cc7a82f959)

The alpha scissor looks kinda working, but still has the transparency higher than the threshold resulting on the final rendered image.

I have tried to write a shader that uses "discard" to simulate alpha scissor:
`if (albedo.a * albedo_tex.a < alpha_scissor_threshold) { discard; }`
, which works as intended (see the right quad on the above images).

Therefore, I think there is something wrong when we use alpha scissor rendered in a viewport with transparent background.


### Steps to reproduce

1. Create a viewport with "transparent_bg" option on
3. Create a mesh instance (and a camera) under the viewport
4. Apply a transparent texture to the mesh and enable alpha scissor

### Minimal reproduction project

[AlphaScissorIssue.zip](https://github.com/godotengine/godot/files/11678928/AlphaScissorIssue.zip)
Repository: PowerToys
Issue: Hotkey Explorer
Labels: Needs-Triage

### Description of the new feature / enhancement

Windows 7 had a program it supported called Hotkey Explorer that allowed you to find what application had the listener to a hotkey. This would be very useful as it's a grueling process to find what application took over a hotkey at times because of auto-updates.

### Scenario when this would be used?

Whenever a hotkey isn't available or when a polished app isn't responding to a hotkey like it normally does.

### Supporting information

It would be powerful, like this app. And you guys recently took over one of my applications Hot Key listeners with PowerToys that made me sad "Ctr+Alt+F1". It seems to just reset my mouse position so it took me awhile to find the the new listener that took over.
Repository: godot
Issue: Android editor freezes after script error in project due to not switching to the editor view automatically 
Labels: bug,platform:android,topic:editor,confirmed,high priority,crash

### Godot version

Mobile Editor  3.6.beta.2 android

### System information

I am on a samsung a04s android 11

### Issue description

When you run a piece of code that has a error in it in the mobile version of godot the scene becomes black and it also does not let you leave the scene the only way to go back is by manualy leaveing the app i havd no idea what causes this or how to fix it but it would be nice if you would i have also provided a little demostration down below kind regards

:  random poor  kid

### Steps to reproduce

Go into godot type a error and run it should brick the entire thing 

### Minimal reproduction project

![Screenshot_20230607-172012_Godot Editor 3](https://github.com/godotengine/godot/assets/134847050/ad8b1f3f-6d0e-467c-859c-8e14526787f0)
![Screenshot_20230607-172021_Godot Editor 3](https://github.com/godotengine/godot/assets/134847050/d173e5c2-0ca9-4a6b-aaef-b1cde5d804fe)
Repository: vscode
Issue: [Feature] Showing results which are similar to search word in settings
Labels: feature-request,settings-editor

I am wondering if we already have a way to show results similar to a search word? For example in the example below, I wanted to search for interactiveEditor and misspelled it to interactiveEdizor.

<img width="444" alt="Screenshot 2023-06-07 at 17 37 07" src="https://github.com/microsoft/vscode/assets/61460952/a7b7f843-852d-4ab4-8cfa-f1e5a2523eb4">

We could for example prompt the user with a blue link `Did you mean interactiveEditor?` which when clicking would show the results. This could be useful perhaps more so in the settings than in the usual search view, where users perhaps are not exactly aware of the setting names.
Repository: PowerToys
Issue: leverage duplicate of from Winget fabric bot rule
Labels: Area-GitHub workflow

### Description of the new feature / enhancement

winget has a few neat tricks, one being their duplicate of regex.  this would let us use the proper github-ism for duplicates and the rule then can go in and close it.

I would suggest we wait for fabric bot to shift over to the YML syntax before we leverage this command.

https://github.com/microsoft/winget-cli/blob/master/.github/fabricbot.json#L1527

### Scenario when this would be used?

when we are triaging

### Supporting information

_No response_
Repository: vscode
Issue: Can't resolve conflict of submodule checksum file
Labels: bug,merge-conflict

<!-- ⚠️⚠️ 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

<!-- 🪓 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.78.2
- OS Version: Mac OS Ventura 13.0.1

Steps to Reproduce:

<img width="1510" alt="image" src="https://github.com/microsoft/vscode/assets/12999702/c6f46969-0126-4b27-afca-97d163d2cc93">

When I have a merge conflict of submodule file, there's no way to resolve it!
No one of options: accept current / accept incoming / stage just doesn't work.
Conflict solver shows 0 conflicts.
Commit button is inactive
Repository: tensorflow
Issue: Exception in tf.function due to operation in inactive condition branch
Labels: stat:awaiting tensorflower,type:bug,comp:tf.function,TF 2.12

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

binary

### Tensorflow Version

2.14.0-dev20230606

### Custom Code

Yes

### OS Platform and Distribution

Windows 11 x64

### Mobile device

NA

### Python version

3.10

### Bazel version

NA

### GCC/Compiler version

NA

### CUDA/cuDNN version

NA

### GPU model and memory

NA

### Current Behaviour?

A function decorated with `@tf.function` may fail to execute if it contains a conditional operation where the non-executing branch cannot be executed correctly for the current inputs. Whether the issue arises or not may depend on the input signature given to `tf.function`. See example for clarity.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf

@tf.function(input_signature=[tf.TensorSpec([None], tf.int32)])
def f(x):
    return tf.cond(tf.size(x) == 1,
                   # The reshape in this branch can only execute properly when the condition is true
                   lambda: tf.fill(tf.shape(x), tf.reshape(x, ())),
                   lambda: x)

# Works: this input is valid for both condition branches
tf.print(f(tf.constant([1])))
# [1]

# Fails: this input is only valid for the false branch, which is the active one
tf.print(f(tf.constant([1, 2])))
# tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error: (see below)


# If the shape in the function input signature is left completely undefined it works
# If the tf.function is defined with no input signature it works correctly as well

@tf.function(input_signature=[tf.TensorSpec(None, tf.int32)])
def f(x):
    return tf.cond(tf.size(x) == 1,
                   lambda: tf.fill(tf.shape(x), tf.reshape(x, ())),
                   lambda: x)

tf.print(f(tf.constant([1])))
# [1]

tf.print(f(tf.constant([1, 2])))
# [1 2]
```


### Relevant log output

```shell
Traceback (most recent call last):
  File ...
  File "...\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "...\site-packages\tensorflow\python\eager\execute.py", line 53, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:

Detected at node cond/Reshape defined at (most recent call last):
  ...

Input to reshape is a tensor with 2 values, but the requested shape has 1
         [[{{node cond/Reshape}}]] [Op:__inference_f_23]
```
</details>
Repository: go
Issue: x/tools/gopls: automatic imports sometimes pick non-optimal modules
Labels: gopls,Tools,gopls/imports

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.5 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/andig/Library/Caches/go-build"
GOENV="/Users/andig/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/andig/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/andig/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.20.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.20.5/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
AR="ar"
CC="cc"
CXX="c++"
CGO_ENABLED="1"
GOMOD="/Users/andig/htdocs/evcc/go.mod"
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 -fdebug-prefix-map=/var/folders/sv/rs_453y57xj86xsbz3kw1mbc0000gn/T/go-build1707488893=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.20.5 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.20.5
uname -v: Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103
ProductName:		macOS
ProductVersion:		13.3.1
ProductVersionExtra:	(a)
BuildVersion:		22E772610a
lldb --version: lldb-1403.0.17.64
Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
</pre></details>

### What did you do?

1. Create an application e.g. importing "github.com/coreos/v3/go-oidc/oidc"
2. Write/tidy the go.mod
3. Create new Go file in Vscode and try to use the `oidc.ScopeOpenID` constant

### What did you expect to see?

Package "github.com/coreos/v3/go-oidc/oidc" imported by gopls

### What did you see instead?

Package "github.com/coreos/go-oidc" imported by gopls

I would have expected the already-imported package to be used, instead gopls seems to pick *any* package that it might find suitable.

/cc @adonovan
Repository: flutter
Issue: Github action labeller keeps removing labels
Labels: team,team-infra,P2,triaged-infra

Related to https://github.com/flutter/flutter/issues/126002

The new github action that manages labels in flutter/flutter keeps removing labels applied by team members.
Example - the docs labels were removed from this PR:

https://github.com/flutter/flutter/pull/127904

![Screenshot 2023-06-07 at 10 32 10 AM](https://github.com/flutter/flutter/assets/16964204/52ddd6c9-0257-4323-a924-10f245e5cc64)
Repository: rust
Issue: ./x.py check broken with vendored dependencies
Labels: T-bootstrap,C-bug,A-gcc

I tried to run `./x.py check` after vendoring all dependencies.

I expected to see this happen: It passes.

Instead, this happened: It tries to check rustc_codegen_gcc, despite the dependencies of cg_gcc not being vendored.

```
Checking stage0 gcc (aarch64-unknown-linux-gnu)
    Updating git repository `https://github.com/antoyo/gccjit.rs`
error: failed to get `gccjit` as a dependency of package `rustc_codegen_gcc v0.1.0 (/home/gh-bjorn3/rust/compiler/rustc_codegen_gcc)`

Caused by:
  failed to load source for dependency `gccjit`

Caused by:
  Unable to update https://github.com/antoyo/gccjit.rs#fe242b7e

Caused by:
  failed to fetch into: /home/gh-bjorn3/.cargo/git/db/gccjit.rs-13c2e290f2fb9e4d

Caused by:
  attempting to update a git repository, but --frozen was specified
Build completed unsuccessfully in 0:00:38
```

### Meta

https://github.com/antoyo/gccjit.rs is GPL-3.0 licensed just like libgccjit. I don't know if there would be any issues with adding it to the rustc-src tarball.
Repository: PowerToys
Issue: Community Feedback: Removing PT File Previewer in favor of Peek
Labels: Needs-Community Feedback,Product-File Explorer

### Description of the new feature / enhancement

We are thinking about phasing out the preview pane work in favor of Peek.   Peek is designed in a way that allows us to iterate far faster than the File Explorer preview pane. Debugging / testing the preview pane extensions does add a lot of time.  This adjustment will allow us to slim down PowerToys, iterate faster and simplify the code base

We'd love community feedback here as our plan of record will be to do the following:
1. Add GCode and STL file format to Peek for 3d file support
2. Mark File Explorer preview pane previewers as deprecated
3. Remove the preview pane previewers in the September 2023 release

I want to directly call out Thumbnail generation code **will stay** in PowerToys.  This is only for the Preview pane

### Scenario when this would be used?

Simplifying the PT code base and better user experience via PowerToys Peek 

### Supporting information

_No response_
Repository: pytorch
Issue: Allow overriding __repr__ to call dataclass_repr (infinite recursion right now)
Labels: triaged,better-engineering,module: codegen

### 🐛 Describe the bug

dataclass_repr is great and I want it as the default for most complicated dataclasses I define. However, I cannot actually define `__repr__` to call into `dataclass_repr` because this triggers an infinite loop.

### Versions

master

cc @bhosmer @bdhirsh
Repository: PowerToys
Issue: Shortcut guide is dismissed if Snipping tool shortcut is invoked
Labels: Issue-Bug,Product-Shortcut Guide

### Microsoft PowerToys version

0.70.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

General, Keyboard Manager, Shortcut Guide

### Steps to reproduce

The system does not allow you to use the snipping tool

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: vscode
Issue: Log channel flashes while updating
Labels: bug,log,web

1. On vscode.dev
1. Enable trace logging for `typescript`
2. Open the log channel for typescript
3. perform some operation so that there is a lot of content in the log channel

**Bug**
As new content is added to the log, the entire contents of the channel flash:

https://github.com/microsoft/vscode/assets/12821956/44d984d2-ea93-4088-9c39-84fd5ed35050

This makes it very difficult to use the log

Version: 1.79.0-insider
Commit: b380da4ef1ee00e224a15c1d4d9793e27c2b6302
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Embedder: vscode.dev

<!-- generated by web issue reporter -->
Repository: flutter
Issue: Document autosubmit app on github app store
Labels: team-infra,P3,triaged-infra

https://github.com/apps/auto-submit is the entry. It's currently barren.

We should port the docs in https://github.com/flutter/flutter/wiki/Autosubmit-bot over to the GitHub app store page to encourage wider adoption, and emphasize it can be used for any GitHub repo.