sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: `tf.raw_ops.AvgPool`: negative kernel size is not checked at shape inference step
Labels: awaiting review,type:bug,comp:ops,TF 2.15

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf 2.17

### Custom code

Yes

### OS platform and distribution

Linux Ubuntu 22.04 LTS

### Mobile device

_No response_

### Python version

3.11.7

### Bazel version

6.5.0

### GCC/compiler version

clang 16

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Currently shape inference step of `tf.raw_ops.AvgPool` allows negative kernel size.
Note that debug build rejects it [here](https://github.com/tensorflow/tensorflow/blob/7ba14e559de0112cbf59dc6db6f8c6a18283642a/tensorflow/core/framework/common_shape_fns.cc#L1393-L1394):
```C++
  TF_RETURN_IF_ERROR(GetWindowedOutputSizeFromDims(
      c, in_rows_dim, kernel_rows, stride_rows, padding, &output_rows));
```
, where `kernel_rows` is converted to `DimensionOrConstant` and ends up with assertion failure [here](https://github.com/tensorflow/tensorflow/blob/7ba14e559de0112cbf59dc6db6f8c6a18283642a/tensorflow/core/framework/shape_inference.h#L890-L895):
```C++
inline DimensionOrConstant::DimensionOrConstant(int64_t val) : val(val) {
  DCHECK(val >= 0 || val == InferenceContext::kUnknownDim)
      << "Dimension must be non-negative or equal to "
         "InferenceContext::kUnknownDim but got "
      << val;
}
```


### Standalone code to reproduce the issue

```Python
import tensorflow as tf

tf.compat.v1.disable_eager_execution()

x = tf.raw_ops.AvgPool(
    value=tf.random.normal([1,1,1,1]),
    ksize=[1,-2,1,1],
    strides=[1,1,1,1],
    padding="SAME",
    data_format='NHWC',
    name=None
)

print(x)
```


### Relevant log output

Release Build:
```shell
Tensor("AvgPool:0", shape=(1, 1, 1, 1), dtype=float32)
```

Debug Build:
```shell
2024-02-23 22:18:43.783609: F ./tensorflow/core/framework/shape_inference.h:891] Check failed: val >= 0 || val == InferenceContext::kUnknownDim Dimension must be non-negative or equal to InferenceContext::kUnknownDim but got -2
Aborted (core dumped)
```
Repository: rust
Issue: display enum variant
Labels: A-diagnostics,T-compiler

### Code

```Rust
let ty: Ty<'_> = cx.typeck_results().expr_ty(expr_foo);
dbg!(ty.kind());
let ty: Ty<'_> = cx.typeck_results().expr_ty(expr_bar);
dbg!(ty.kind());
```


### Current output

```Shell
ty.kind() = ()
ty.kind() = std::ops::Range<usize>
```


### Desired output

```Shell
ty.kind() = TyKind::Tuple(…)
ty.kind() = TyKind::Adt(…)
```


### Rationale and extra context

I just want to know the TyKind variant but I get the type information which I do not care about, the only way for me to find out is test out all the variants with match or if let till I find out what I am looking for, when enum have many variants it's a pain.

I am looking for a way to display the variant of an enum not sure if something like this exists:
```
// some new function
use std::any::show_variant;

// might or might not have debug or display implemented to show random other stuff
    enum Alphabet {
A,
B,
C,
D
// ... all other letters
}

let some_variant = Alphabet::A;

dbg!(show_variant(some_variant)); // Alphabet::A

// there is also this but doesn't work either
use std::any::type_name_of_val;
dbg!(type_name_of_val(ty.kind())) // rustc_type_ir::ty_kind::TyKind<rustc_middle::ty::context::TyCtxt>
```

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.78.0-nightly (8ace7ea1f 2024-02-07)
binary: rustc
commit-hash: 8ace7ea1f7cbba7b4f031e66c54ca237a0d65de6
commit-date: 2024-02-07
host: aarch64-apple-darwin
release: 1.78.0-nightly
LLVM version: 17.0.6
```


### Anything else?

_No response_
Repository: terminal
Issue: SGR5/6 blink behaviour switch ("PC style" vs "DEC style").
Labels: Area-Rendering,Product-Terminal,Issue-Task,Area-SettingsUI

# Description of the new feature/enhancement

Currently, Terminal seems to handle blink mode (`\e[5` and `\e[6`) in the "DEC" fashion (ie switching the characters to a **faint** mode during their offcycle. I, who grew up with DOS ANSI.SYS and still telnet into ANSI-BBSes woudl very much like to be able to switch to the "PC mode" of completely blanking out the characters during their offcycle.

# Proposed technical implementation details (optional)

Add a setting in **Profiles -> <profile> -> Advanced** to switch between:
- DEC Mode: _Characters are rendered in a fainter color when blinking off_
- PC Mode: _Characters are invisible when blinking off_

And, this is just my personal taste, but I do think the "PC Mode" behaviour should be default :D
Repository: deno
Issue: automatic body compression for text/event-stream
Labels: suggestion,ext/http

I figured out that I can compress an event stream myself using [`CompressionStream`](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream) but I wonder if event streams can be candidates for [automatic body compression](https://docs.deno.com/runtime/manual/runtime/http_server_apis#automatic-body-compression)?

> Currently Deno supports gzip and brotli compression. A body is automatically compressed if the following conditions are true:
>
> - The request has an [Accept-Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding) header which indicates the requester supports `br` for Brotli or `gzip`. Deno will respect the preference of the [quality value](https://developer.mozilla.org/en-US/docs/Glossary/Quality_values) in the header.
> - The response includes a [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) which is considered compressible. (The list is derived from [jshttp/mime-db](https://github.com/jshttp/mime-db/blob/master/db.json) with the actual list [in the code](https://github.com/denoland/deno/blob/v1.21.0/ext/http/compressible.rs).)
> - The response body is greater than 64 bytes.

1. `gzip` and `deflate` could be supported for `text/event-stream`
2. plain text seems to me to generally be considered compressible
   - it is not currently listed in [jshttp/mime-db](https://github.com/jshttp/mime-db/blob/master/db.json)
   - there was once a pull request to mark it explicitly as not compressible, it references buffering & flushing concerns with [compression - npm](https://www.npmjs.com/package/compression)… I don't know if those same concerns apply to `CompressionStream` (https://github.com/jshttp/mime-db/pull/138)
4. a stream's response body's size is unknown, but it is unlikely to be less than or equal to 64 bytes

I think it is fine to require stream authors to compress their streams themselves if automatic body compression isn't appropriate here. If that's the case, then I wonder if any documentation/references additions to the manual about automatic body compression would be helpful to call-out that streams are not eligible for automatic compression but can easily be compressed:

```ts
const encoding = acceptsEncodings(request, "gzip", "deflate");
const body = encoding
  ? stream.pipeThrough(new CompressionStream(encoding))
  : stream;
const headers = new Headers({ "content-type": "text/event-stream" });
if (encoding) headers.append("content-encoding", encoding);
const response = new Response(body, { headers });
```
Repository: material-ui
Issue: [material-ui][Collapse] Deprecate `sx` prop
Labels: component: Collapse,deprecation,package: material-ui

Transitions shouldn't support the `sx` prop:

- https://github.com/mui/material-ui/pull/32025#pullrequestreview-924655864
- https://github.com/mui/material-ui/pull/32025#issuecomment-1106271947

The Collapse transition is the only one with it in its types. We should deprecate it and mark it as to be removed. We should also add instructions on migrating on the [migrating from deprecated APIs guide](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/). We could also try adding a codemod, but I'm unsure how it should work.

**Search keywords**:
Repository: deno
Issue: [node-compat] `HttpsClientRequest.write()` for a DELETE request
Labels: bug,node compat,node API,node:http

When I was working around HTTP stuff with Deno, I found out that `HttpsClientRequest.write()` for a DELETE request is not compatible with the one of `ClientRequest` in Node.js. Here is the minimum code to reproduce the issue:

```shell
$ node
Welcome to Node.js v20.5.0.
Type ".help" for more information.
> require('https').request('https://reqres.in/api/users/2', { method: 'DELETE' }).write('42')
true
```

```shell
$ deno
Deno 1.40.5
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> (await import('node:https')).request('https://reqres.in/api/users/2', { method: 'DELETE' }).write('42')
Uncaught TypeError: Cannot read properties of undefined (reading 'write')
    at HttpsClientRequest._writeRaw (ext:deno_node/_http_outgoing.ts:422:24)
    at HttpsClientRequest._send (ext:deno_node/_http_outgoing.ts:408:17)
    at HttpsClientRequest.write_ (ext:deno_node/_http_outgoing.ts:316:16)
    at HttpsClientRequest.write (ext:deno_node/_http_outgoing.ts:293:17)
    at <anonymous>:3:4
```

By the way, I'm unsure whether this difference is intended because RFC 9110 says something like that a DELETE request should NOT have a body.

> A client SHOULD NOT generate content in a DELETE request unless it is made directly to an origin server that has previously indicated
> https://www.rfc-editor.org/rfc/rfc9110.html#name-delete
Repository: next.js
Issue: Updating searchParams while using parallel routes doesn't update it for the initial page
Labels: bug,Parallel & Intercepting Routes

### Link to the code that reproduces this issue

https://github.com/spojskic/nextjs-parallel-routes-issue

### To Reproduce

1. Install dependencies `npm i` or `pnpm i`
2. Run the dev server `npm run dev` or `pnpm run dev`
3. Confirm that pagination is working
4. Click on `Edit` button on any user in table to open second page side by side
5. Test pagination again (not working)

### Current vs. Expected behavior

Following the steps from previous section, I expected for pagination to work, but it didn't. After updating the URL with new search params with parallel route nothing happens but it should fetch new data based on `current_page` search param.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020
Binaries:
  Node: 20.10.0
  npm: 10.4.0
  Yarn: N/A
  pnpm: 8.15.3
Relevant Packages:
  next: 14.1.0
  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)

App Router, Routing (next/router, next/navigation, next/link)

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

next dev (local), next build (local), next start (local)

### Additional context

_No response_
Repository: next.js
Issue: Search params object empty on production (vercel) but not locally
Labels: bug

### Link to the code that reproduces this issue

https://github.com/pitops/nextjs-search-params-issue

### To Reproduce

you have a category/[slug]/page.tsx with the following

```
interface CategoryPageProps {
    params: {
        slug: string
    }
    searchParams: {
        slug: string
    }
}
const CategoryPage: React.FC<CategoryPageProps> = async ({
                                                             params,
                                                             searchParams
                                                         }) => {
    console.log('params', params)
    console.log('searchParams', searchParams)

    return <div>test</div>
}

export default CategoryPage
```

I try the following URL: http://localhost:3000/category/test?slug=1

locally -> searchParams { slug: 1 }
vercel -> searchParams {}



### Current vs. Expected behavior

search params object should be filled in production as well

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101
Binaries:
  Node: 19.6.0
  npm: 9.5.0
  Yarn: 1.18.0
  pnpm: N/A
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 13.5.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
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)

Vercel (Deployed)

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: normally loads model, but specific model's image generating does not work. also freezes like linux. (in windows 10)
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

cpu : i7-12700

ram : 32G

graphic : radeon 6800XT

used model: raemuXL_v20

This problem did not occur on my computer, but on another user's computer. In korean SD community known as arcalive, the user posted this problem. and anybody doesn't know about this. but once I experienced this in linux, So I asked him to tell me everything he knew about this. and all of my speculation was wrong... I asked him about disk format method like NTFS or FAT32, he is using NTFS. so not disk problem. also asked last task manager had showing. like ram, cpu, vram, disk usage. but showing normal status. and he said less then 6GB model is working just fine, but using over 6GB, it happens. maybe he didn't know about compatible OS for radeon GPU.

### Steps to reproduce the problem

none. I've tried, but GPU was different so couldn't reproduce it.

### What should have happened?

image generation

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

none. it's fresh install. all setting was default.

### Console logs

```Shell
none
```


### Additional information

none
Repository: PowerToys
Issue: Mask the disabled tools
Labels: Area-User Interface,Needs-Triage,Area-Enterprise

### Description of the new feature / enhancement

When we deactivate an option in powertoys, by GPO, because the tool does not correspond to our security framework. Would it be possible to hide this option to avoid questions?



### Scenario when this would be used?

Have the choice when deactivating an option to hide this option in the gpo

### Supporting information

_No response_
Repository: godot
Issue: GraphElement don't display in the minimap of the graphedit.
Labels: bug,topic:gui

### Tested versions

Godot 4.2.1 Mono stable.

GraphElement don't display in the GraphEdit minimap.

There is a need for a way to display a indicator in the minimap.
Thanks.

### System information

Godot v4.2.1.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4060 Ti (NVIDIA; 31.0.15.5123) - AMD Ryzen 7 2700 Eight-Core Processor (16 Threads)

### Issue description

The presence of a GraphElement in the GraphEdit, make the minimap react to the interaction with the GraphElement  like with the GraphNode.
But, where the GraphNode display an indicator in the minimap, the GraphEdit don't.

### Steps to reproduce

Create a scene.
Add a GraphEdit.
Make it FullRect.
Add a GraphElement the GraphEdit.
Add a ColorRect to the GraphElement to make it visible.
Move it around.
The minimap react but display nothing.


### Minimal reproduction project (MRP)

[GraphElementMinimap.zip](https://github.com/godotengine/godot/files/14387310/GraphElementMinimap.zip)
Repository: go
Issue: proposal: net/netip: add conversions between IP ranges and prefixes
Labels: Proposal

### Proposal Details

I suggest the following additional method/functions for the `net/netip` package:

`func (p Prefix) Range() (first, last Addr)`
Range returns the inclusive range of IP addresses that p covers. 

`func PrefixFromRange(first, last Addr) (prefix Prefix, ok bool)`
PrefixFromRange returns the IP Prefix from first to last and ok=true, if it can be presented exactly as such. 

`func Prefixes(first, last Addr) []Prefix`
Prefixes returns the set of Prefix entries that covers the IP range from first to last. 

`func AppendPrefixes(dst []Prefix, first, last Addr) []Prefix`
AppendPrefixes is an append version of Prefixes. 

Reason:
An effective calculation of the last IP address of a `netip.Prefix` is only possible with the private `uint128` representation in the netip package. The same applies to the inverse conversion of an IP-range into a set of prefixes.

I explicitly do not propose another type IPRange as used in `netipx`, but only the minimum necessary to build third party packages with IP-ranges based on `net/netip`. 

If these functions were in the stdlib, many packages could drop the dependency on `github.com/go4org/netipx` or `github.com/gaissmai/extnetip`.

see also: #61642 #53236
Repository: flutter
Issue: Use the DEPS file for web_ui dependencies
Labels: platform-web,P2,team-web,triaged-web

As discussed in https://github.com/flutter/flutter/issues/134729#issuecomment-1719459797, the engine repo should ideally have only one mechanism to manage dependencies. At the moment, there are two. The `DEPS` file and `gclient sync -D` handle both source and binary dependencies for mobile and desktop engines, and at least one `pubspec.yaml` file for e.g. [web_ui](https://github.com/flutter/engine/blob/main/lib/web_ui/pubspec.yaml) along with `pub get` fetch some artifacts for web engine development.

Many of the dependencies listed in the `web_ui` pubspec are also fetched in the `DEPS` file so that we currently end up with two versions in the tree and/or user's pub cache. It may be difficult to shift all of the `web_ui` dependencies to the `DEPS` file due to a large number of transitive dependencies, but we should investigate this in order to reduce complexity in the repo.
Repository: excalidraw
Issue: Embed Loom videos
Labels: Embeddable

When trying to embed a video from https://www.loom.com/ I get
![image](https://github.com/excalidraw/excalidraw/assets/25665380/db58b5bc-3e5c-4a60-97df-bf7202b0b8bd)
Would be nice to add this url to whitelist
Repository: transformers
Issue: DeepSpeed Support Stage 3 
Labels: Feature request

### System Info

Does the trainer support stage 3? 

According to https://huggingface.co/transformers/v4.3.0/main_classes/trainer.html - it does not. 

Thanks,
Brett 

### Who can help?

na

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

use trainer with stage 3

### Expected behavior

Parameter partitioning
Repository: vscode
Issue: Git - Open File should be in core, not the git extension
Labels: debt,git,diff-editor

The command "Open File" is not implemented in the core, but in the git extension 🤯 (even when comparing two files on disk)

![gGWBmGOUt7](https://github.com/microsoft/vscode/assets/2931520/260a0454-8198-4199-8ab6-492ef5d9f3bc)

I don't see any reason why it couldn't be in the core.
This would prevent bugs such as #196084.

https://github.com/microsoft/vscode/blob/cdb1a962ccd40d6d03132e7974a835c98f6e82e6/extensions/git/src/commands.ts#L1163
Repository: godot
Issue: Lookup symbol shortcut CTRL + left click will not open the docs in the editor.
Labels: bug,topic:editor,needs testing

### Tested versions

Issue happening on Godot Engine v4.2.1.stable.official.b09f793f5

### System information

Ubuntu 20.04.6 LTS - 64-bit

### Issue description

Can't go to the doc of a node, origin of a functions with the CTRL + left.
Using Alt with the shortcut **WILL** make it work.

### Steps to reproduce

1. Create a new script attached to a node.
2. Try to go to the doc of the type specified after the `extends` keyword.
3. Only right click -> lookup symbol will work.

### Minimal reproduction project (MRP)

N/A
Repository: vscode
Issue: A way to open a file in hex editor from Terminal
Labels: feature-request,workbench-cli,code-cli

Is there a way to open a file in VSCode directly in hex editor?

`me@macos $ code --hex ./a_random_file.ext`
Repository: vscode
Issue: [1.86] Jupyter Nodebook Trace shows HTML in Firefox 123
Labels: bug,notebook-output

<!-- ⚠️⚠️ 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: 

code-server: v4.21.1
Code: 1.86.1
Commit: 76e6f757580b6c776526ba208fe39d7c86fb3e11
Date: 2024-02-08T20:12:12.739Z (2 wks ago)
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

- OS Version: 

Edition	Windows 10 Home
Version	22H2
Installed on	‎2020-‎10-‎19
OS build	19045.3208
Experience	Windows Feature Experience Pack 1000.19041.1000.0

 - VSCode OS

VSCode Server running in docker on raspberry pi.
Accessed using SSH forwarded port.

> cat /etc/issue
Ubuntu 22.04.2 LTS

- Python Version

python3 --version
Python 3.10.12

- Jupyter Extension

Jupyter
v2023.9.100
ms-toolsai

- Python Extension
Python
v2024.0.1
ms-python

- Firefox 123.0. 

Steps to Reproduce:

1. Start Jupyter Notebook in VSCode
2. Generate a stack trace

![notebook-trace](https://github.com/microsoft/vscode/assets/120285014/d2ec31d4-cac9-40a9-b0d2-a5fcaf64dd03)

There is **NO** such issue when running this setup in Chrome (Version 120.0.6099.111)

![image](https://github.com/microsoft/vscode/assets/120285014/74a0f0b7-43ce-4d9f-85c4-50a78729652d)