sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: When locating a java binary, the tool only verifies that the binary is runnable if it came from Android Studio installation
Labels: tool,P2,team-tool,triaged-tool

I discovered this while investigating a crasher within the `flutter` tool, https://github.com/flutter/flutter/issues/139180. I'm filing this as a separate issue, because the scope of this issue is wider than fixing the crash. A fix for this would not be suitable for cherry-picking onto stable.

At startup, the tool searches for a Java installation[^1]. Unless the located installation is from [an Android Studio installation](https://github.com/flutter/flutter/blob/e1967ecabf014bf93d1731fde6a6547b06ca9c33/packages/flutter_tools/lib/src/android/android_studio.dart#L163), the tool does not verify that the binary 1) exists and 2) is runnable. Said another way, the tool—during its search—does not discard invalid Java installations that come from `flutter config --jdk-dir`, `JAVA_HOME`, or the path.

Shouldn't we always verify that the java binary exists and is runnable before deeming it suitable for use throughout the rest of the tool? This isn't a serious issue at present, because folks that get vague Java-related issues at runtime (e.g. Gradle errors from `flutter build apk`) can check `flutter doctor`, where they will see that the Java version could not be verified. Still, this is confusing behavior at the very least.

[^1]: We find java by calling the static `Java.find`, see: https://github.com/flutter/flutter/blob/48187028c11ca8ca10e0179705d25553e1fe2c14/packages/flutter_tools/lib/src/context_runner.dart#L271
Repository: godot
Issue: inverse_lerpf Behavior Not Documented When Bounds Are Equal
Labels: enhancement,topic:core,documentation

### Tested versions

4.2-stable

### System information

Godot v4.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.4629) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

When using inverse_lerp, the underlying math functions do not handle cases where the lower and upper bound (`from` and `to`) are equal to each other.  Depending on the value of the provided `weight`, you can get -inf, nan, or inf as a result.  I know this is mathematically correct, but the documentation never mentions it and for someone unfamiliar with the math it can be unexpected.  I propose it is either changed to do something intuitive, like returning the `from` parameter, or it could also be updated in the documentation to warn users of this behavior.

### Steps to reproduce

Create any node, use inverse_lerp on any combination of numbers as long as `from` and `to` are equal.

### Minimal reproduction project (MRP)

[NaNLerp.zip](https://github.com/godotengine/godot/files/13575247/NaNLerp.zip)
Repository: material-ui
Issue: [material-ui][AvatarGroup] Even with null results the avatar is still counted
Labels: component: avatar,package: material-ui,enhancement

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

- Use the `AvatarGroup` component and loop an array of avatars inside.
- Don't directly do the condition inside the `AvatarGroup`, instead, render a child component and pass the current avatar data.
- On the Child component, create a condition to either render the avatar or return null instead, so that the avatar won't be rendered.

Here is the Live Demo: [SANDBOX-MATERIALUI-AVATAR-GROUP](https://codesandbox.io/p/sandbox/mui-avatar-group-issue-forked-8zms9x?file=%2Fdemo.tsx%3A57%2C44)


### Current behavior 😯

In some cases, I need to do the condition inside the child component to either render the avatar or not after fetching some data by using a hook which needs to be on the top level.

However, returning null to not render the avatar is still being `counted` by the `avatargroup` causing it to still render the `+` icon.

### Expected behavior 🤔

Do not count the null avatars that are being returned so that the `+` icon will not be rendered.

### Context 🔦

This makes the component look a bit buggy a it renders the `+` icon even without avatars. I'm not sure if this is a limitation in which we should not do it this way or if there is another approach we should be doing instead. Thank you!

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: Parameter "material" is null error spam when deleting objects that have 2 material overrides
Labels: bug,topic:rendering,confirmed

### Tested versions

- Reproducible in 4.1 and 4.2, Forward +

### System information

Windows 10, Vulkan forward +

### Issue description

Tons of spam in the error log about material being null:
![image](https://github.com/godotengine/godot/assets/7751182/1df9cefd-01e6-4430-a750-151ebe7168fe)
```
E 0:06:51:0938   RendererRD::MaterialStorage::material_casts_shadows: Parameter "material" is null.
  <C++ Source>   servers\rendering\renderer_rd\storage_rd\material_storage.cpp:2213 @ RendererRD::MaterialStorage::material_casts_shadows()
E 0:06:56:0296   RendererRD::MaterialStorage::material_is_animated: Parameter "material" is null.
  <C++ Source>   servers\rendering\renderer_rd\storage_rd\material_storage.cpp:2200 @ RendererRD::MaterialStorage::material_is_animated()
E 0:06:56:0296   RendererRD::MaterialStorage::material_get_instance_shader_parameters: Parameter "material" is null.
  <C++ Source>   servers\rendering\renderer_rd\storage_rd\material_storage.cpp:2226 @ RendererRD::MaterialStorage::material_get_instance_shader_parameters()
E 0:06:56:0297   RendererRD::MaterialStorage::material_update_dependency: Parameter "material" is null.
  <C++ Source>   servers\rendering\renderer_rd\storage_rd\material_storage.cpp:2238 @ RendererRD::MaterialStorage::material_update_dependency()
```
etc.


### Steps to reproduce

1. Create a scene
2. Add a mesh instance to the scene (Mesh 1).
3. Set a material (We'll call it Material A) on Mesh 1 in the Geometry, Material Override slot.
4. Add another mesh (Mesh 2).
5. Set Material A on Mesh 2's Material Override slot.
6. Set a different material (Material B) on the "Surface Material Override" slot of Mesh 2.
7. Load, instantiate, and add this scene as a child of another scene.
8. queue_free() the scene.
9. Note error spam.


This took ages to figure out exactly what caused this, haha.

### Minimal reproduction project (MRP)

[test_null_material_spam.zip](https://github.com/godotengine/godot/files/13575320/test_null_material_spam.zip)
Repository: next.js
Issue: "With statement are not allowed in strict mode"
Labels: bug,TypeScript,Markdown (MDX)

### Link to the code that reproduces this issue

https://github.com/headline-design/min-repro

### To Reproduce

Start application in development

### Current vs. Expected behavior

This is a new issue that did not exist in Next 13.4. I believe the error has something to do with ESM bundling but I may be wrong. The error effects all users that rely on Turndown for ProseMirror/TipTap serialization. I believe the error can be resolved with a next/config flag but I may be wrong. Here is a link to the discussion on Turndown - https://github.com/mixmark-io/turndown/issues/378. 

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
Binaries:
  Node: 18.17.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4-canary.43
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


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

App Router, ESLint (eslint-config-next), MDX (@next/mdx), TypeScript (plugin, built-in types)

### Additional context

Reproduction with create-next-app latest Canary but issue on any build w/ Next + 13.4.
Repository: next.js
Issue: NextJS metadata don't work properly on parallel routes
Labels: bug,Navigation,linear: next

### Link to the code that reproduces this issue

https://github.com/azvyae/next-14-repro-bug

### To Reproduce

1. `npm run build`
2. `npm start`
3. Navigate to `/parallel` route
4. Compare it to `/non-parallel` route

### Current vs. Expected behavior

**Problems**

Metadata (especially) title not working properly when defined inside page.tsx/layout.tsx inside the parallel route folder (the folder with "@" in it), those problems are:

- It won't respects the title template defined inside the root layout metadata

- Even though the UI rendered for each of them, the title is won't changed

- Currently, the metadata used would be the latest folder ordered by alphabet of the `/@folder/page.tsx` file if there are parallel routes implemented.

**Expected/Solution**

- It should respect the title template defined in the root layout/parent layout

- Because it would be confusing if we render two route at once (because its capability to render this way by parallel routes), would be possible if we render based on shown inside the layout logic? Like `role_admin` should render `@admin` otherwise `@guest`, because this only make the route rendered once, it should show one metadata only.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Tue Nov 28 19:11:52 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: 8.11.0
Relevant Packages:
  next: 14.0.4-canary.43
  eslint-config-next: 14.0.4-canary.43
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Metadata (metadata, generateMetadata, next/head), Routing (next/router, next/navigation, next/link)

### Additional context

_No response_

<sub>[NEXT-1811](https://linear.app/vercel/issue/NEXT-1811/nextjs-metadata-dont-work-properly-on-parallel-routes)</sub>
Repository: next.js
Issue: GET https://www.hubnx.com/_next/static/chunks/845-5edf676d5963dfbe.js net::ERR_ABORTED 404 (Not Found)
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://www.hubnx.com/

### To Reproduce

It only fails on production, https://www.hubnx.com/
I have load balancer before several servers running next app
My CI/CD would create new server instances with most updated code and terminate the old ones
I'm using page router

This is my next config
```
const nextConfig = {
  experimental: {
    // appDir: true,
    swcPlugins: [
      [
        'next-superjson-plugin',
        {
          excluded: [],
        },
      ],
    ],
  },
  reactStrictMode: true,
  compiler: {
    removeConsole: process.env.NODE_ENV === 'production',
  },
  generateBuildId: async () => {
    return process.env.CODEBUILD_BUILD_ID ?? '1';
  },
};
```

### Current vs. Expected behavior

The static files should be found, I've searched and tried fixes, but failed, please help

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Tue Nov 28 19:11:52 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: 8.11.0
Relevant Packages:
  next: 14.0.4-canary.43
  eslint-config-next: 14.0.4-canary.43
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Routing (next/router, next/navigation, next/link)

### Additional context

_No response_
Repository: pytorch
Issue: [AOT Autograd] operator decomposition does not respect training=False flag for torch.nn.functional.dropout
Labels: triaged,oncall: pt2,module: aotdispatch,module: pt2-dispatcher

### 🐛 Describe the bug

When specifying `training=False`, `torch.nn.functional.dropout` is essentially a no-operation. However, after AOTAutograd, `torch.nn.functional.dropout` always clones the input.

Here is the code:

```python
import torch
def f(x):
    y = torch.nn.functional.dropout(x, p=0.5, training=False)
    return y

x = torch.randn(5)
y = f(x)
assert y is x

f_eager = torch.compile(f, backend="eager")
y_eager = f_eager(x)

assert y_eager is x

f_aot_eager = torch.compile(f, backend="aot_eager")
y_aot_eager = f_aot_eager(x)

assert y_aot_eager is not x
```

As we can see, the eager mode, compile with eager mode, both treat `torch.nn.functional.dropout` as a no-operation, and returns the **same** tensor input as output. However, after compile with aot autograd, the output is another tensor.

Inspecting the logging output, I find that aot autograd uses `torch.ops.aten.clone.default`. The code responsible for this behavior is:

https://github.com/pytorch/pytorch/blob/fcf6a76108be8e7b6db528b631a7b8ebdc7470ac/torch/_decomp/decompositions.py#L1089

Is it desired behavior or it is a bug that should be fixed?

### Versions

Nightly build version `2.2.0.dev20231127`.

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang @wconstab
Repository: PowerToys
Issue: Keyboard Manager and Sticky Keys
Labels: Product-Keyboard Shortcut Manager,Needs-Triage

### Description of the new feature / enhancement

I have mapped CapsLock to Ctrl. I also have Sticky Keys enabled in Windows. When I press CapsLock, it does not trigger Sticky Keys.

### Scenario when this would be used?

It would be useful to allow modifiers to be remapped while maintaining Sticky Keys functionality.

### Supporting information

_No response_
Repository: godot
Issue: Inner Class Resources don't load their Exported Properties
Labels: bug,topic:core

### Tested versions

v4.2.stable.official [46dc27791]

### System information

Windows 10

### Issue description

When attempting to save a inner Class that is a Resource with exported properties.  They aren't loaded back in, even though they exist in the actual .tres file.

### Steps to reproduce

1. Create a Inner Resource Class in a Script
2. Add a Exported variable to that Resource
3. Save that Resource with the Exported Variable Set
4. Attempt to load that Resource.

---Using Demo
1. Run test.tscn.
2. Hit Escape to Save
3. Re-run test.tscn

### Minimal reproduction project (MRP)

[Inner Resource Loading.zip](https://github.com/godotengine/godot/files/13577805/Inner.Resource.Loading.zip)
Repository: flutter
Issue: analytics message has weird spacing
Labels: tool,a: quality,P3,team-tool,triaged-tool

On first run, `dart` says:

```
The Dart CLI developer tool uses Google Analytics to report usage and diagnostic data
along with package dependencies, and crash reporting to send basic crash reports.
This data is used to help improve the Dart platform, Flutter framework, and related tools.

Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:

dart --disable-analytics.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).
```

This is very odd. It reads as three paragraphs except that the text in each paragraph is non-sequitur. While we're at it, the line-wrapping is also weirdly inconsistent. Also there's a stray period on the line that says to use `--disable-analytics`.

Here's a cleaner version:

```
The Dart CLI developer tool uses Google Analytics to report usage and
diagnostic data along with package dependencies, and crash reporting
to send basic crash reports. This data is used to help improve the
Dart platform, Flutter framework, and related tools.

Telemetry is not sent on the very first run.

To disable reporting of telemetry, run this terminal command:
  dart --disable-analytics
If you opt out of telemetry, an opt-out event will be sent, and then
no further information will be sent.

This data is collected in accordance with the Google Privacy Policy:
  https://policies.google.com/privacy
```
Repository: next.js
Issue: Nested Script (beforeInteractive) in Custom Document Does Not Load
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/document-script-bug-km2wtv

### To Reproduce

1. Initialize a Next.js project with page router
2. Create custom _document
3. Add a Next Script with `strategy="beforeInteractive"` in Head, within a React.Fragment 

### Current vs. Expected behavior

Expected: Script appears in HTML and loads.

Current: Script does not appear in HTML and does not load.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.3
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Script optimization (next/script)

### Additional context

I discovered this bug when using v12.3.4.
Repository: opencv
Issue: prefix in pc file not correct
Labels: category: build/install

### System Information

OpenCV version: 4.8.1
Operating System / Platform: Ubuntu 18.04.6 LTS
Compiler & compiler version: gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)

### Detailed description

I fond that the prefix in opencv4.pc file of  deb packet is not correct.

### Steps to reproduce

follow these commands:
1. cmake without setting CMAKE_INSTALL_PREFIX, and set CPACK_BINARY_DEB=ON
2. make
3. make install
4. make package

then, you will find the make install path is `/usr/local`, the prefix in opencv4.pc file is `/usr/local`, and this is correct.
but the deb packet install path is `/usr`, and the prefix in opencv4.pc of deb packet is still `/usr/local`
which I think is not correct.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: material-ui
Issue: When i apply filter for date , it move to up and cut header label .Grid header filter type Column in any field.
Labels: component: Grid,status: waiting for author

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example:

Steps:

1.i m using Grid header filter type column 
2. i m using this const orderSuggestionHistoryModel = new UiModel({
    title: "Order Suggestion History",
    defaultSort: 'TimeStamp DESC',
    titleDescription: 'Understand the history of the suggestive orders',
    idProperty: 'id',
    readOnly: true,
    addCreatedModifiedColumns: true,
    module: 'OrderSuggestionHistory',
    defaultFilters: [{ field: 'TimeStamp', operator: 'onOrAfter', value: filterDate }],
    isElasticScreen: true,
    columns: [
        { field: "TimeStamp", type: 'dateTime', width: 300, label: "Status Date", pinned: true, keepLocal: true },
        { field: "LocationName", type: 'string', width: 310, label: "Outlet Name", filterField: 'LocationName.keyword', isKeywordField: true },
3. i want to change Status Date height and width 

![image](https://github.com/mui/material-ui/assets/143501962/dd98a625-621a-4ade-a8dd-a3aa31b02ced)





### Current behavior 😯

![image](https://github.com/mui/material-ui/assets/143501962/3bfe3711-a38b-4cd9-a7a2-59ff4b2e02a2)


### Expected behavior 🤔

_No response_

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: transformers
Issue: Make `output_dir` optional in TrainingArguments
Labels: Good Second Issue,Feature request

### Feature request

Currently, there is only 1 required param in creating a TrainingArguments object - `output_dir`. HFTrainer manually creates an object with a default value "tmp_trainer" if no Args object is passed to it.

Instead, we should make even this one param optional in the TrainingArguments class (and use a default inside the class implementation).

### Motivation

This is useful when creating and passing TrainingArguments in other runners - for eg, trl/SFTTrainer. I would like sensible defaults for all params, so that I only specify the particular arguments I am interested in.

### Your contribution

I can open a PR, if this is of interest.
Repository: godot
Issue: Multiple ReflectionProbe with UPDATE_ALWAYS crashes godot
Labels: bug,topic:rendering,confirmed,crash,topic:3d

### Tested versions

- Reproducible in 4.2 stable
- Reproducible in 4.1.3 stable
- Reproducible in 4.0.3 stable

### System information

Godot v4.2.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.3713) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 Threads)

### Issue description

If multiple reflection probes see each other, one of those probes may be added to the linked list
While the Main Thread is locked within `_render_reflection_probe_step`:
![image](https://github.com/godotengine/godot/assets/39946030/a76a2882-4123-4505-bcd9-118c1a959ec4)
The WorkerThreadPool will render the probe, and enqueue more probes into the list, which seems to create a cycle about 6-8 probes long.
![image](https://github.com/godotengine/godot/assets/39946030/14aa83ca-0a6a-433c-a428-b1f2ac3feedf)


### Steps to reproduce

1. Open the attached project.
2. Notice that `refl_probe_update_once.tscn` loads fine.
3. Open `refl_probe_crasher_simple.tscn` which is the same scene but all probes are set to `UPDATE_ALWAYS`
4. Godot will hang after rendering one frame.

### Minimal reproduction project (MRP)

[reflection_probe_update_always_crash.zip](https://github.com/godotengine/godot/files/13579274/reflection_probe_update_always_crash.zip)
Repository: PowerToys
Issue: Mousewithoutboarders produced an unexpected very large log file
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response,Product-Mouse Without Borders

### Microsoft PowerToys version

0.75.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

![image](https://github.com/microsoft/PowerToys/assets/74442033/552e38ce-efcf-46de-854c-b6ceb7b92f23)
actually,the file which is found by Wiztree cannot be normally found by explorer,
![44e54f7eb332f42c1402d5f352f29956](https://github.com/microsoft/PowerToys/assets/74442033/c134e9f2-27c1-4cae-9a2f-972b42f0de49)
i used cmd to find it
![image](https://github.com/microsoft/PowerToys/assets/74442033/9e2ef305-89e3-4e41-abb4-b30f5f922a7b)
and remove than successfully so i am unable to provide logs
![image](https://github.com/microsoft/PowerToys/assets/74442033/7dff6466-d53d-405f-9f2f-df88f9026506)
i don't know how to re produce this bug,because i have reinstalled powertoys
![a7f83403eb0073dccb7ebd23d4eb88cc](https://github.com/microsoft/PowerToys/assets/74442033/f6a032ca-364e-4f76-a77a-3bb617a56c8b)
and it cannot be uninstalled completely

### ✔️ Expected Behavior

do not generate so much logs

### ❌ Actual Behavior

generate a big log file

### Other Software

_No response_