sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: Angular.dev: Describe when you need to use `overrideComponent` vis a vis nested component tests
Labels: P4,area: docs

### Describe the problem that you experienced

In the beta docs, there is a lovely section on shallow testing of components containing other components [here](https://angular.dev/guide/testing/components-scenarios#nested-component-tests)

I was trying to accomplish this very task and followed the docs, but I couldn't understand why my Stub component imports weren't working. I determined that it was because by parent component was standalone and importing the child components directly. I did eventually get this working by using the `overrideComponent` method, however the docs made it seem like that wasn't needed in this case.

There is [a later section](https://angular.dev/guide/testing/components-scenarios#override-component-providers) all about the needed method, so I think that the nested component tests section should mention that this might be necessary and link to the later section for the full details. 

### Enter the URL of the topic with the problem

https://angular.dev/guide/testing/components-scenarios#nested-component-tests

### Describe what you were looking for in the documentation

I was looking for the preferred way to do shallowing testing of standalone components.

### Describe the actions that led you to experience the problem

I implemented stub components like the angular.dev page example and used them in `configureTestingModule` rather than `overrideComponent`. This led to the tests breaking due to missing providers needed in the child components. The error message itself wasn't helpful as I thought that following the example this way would replace the real component with the stub versions and I was at a loss as to why that wasn't working.

### Describe what you want to experience that would fix the problem

I want the page to be updated to describe when and why it is necessary to use stubs in `configureTestingModule` vs `overrideComponent`

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

```true
Thanks for the awesome new site! :)
```
Repository: kubernetes
Issue: Aggregated API servers are unexpectedly throttled when making anonymous requests due to the `UnauthenticatedHTTP2DOSMitigation` feature gate
Labels: kind/bug,sig/api-machinery,sig/auth,kind/regression,triage/accepted

### What happened?

When enabling the UnauthenticatedHTTP2DOSMitigation feature flag on our aggregated API server in the [Pinniped project](https://github.com/vmware-tanzu/pinniped), we began to experience a number of flakes in our CI due to the throttling of anonymous requests introduced by this feature gate.  This is likely an unintended consequence, the feature gate should not affect aggregated API servers. 

/kind bug
/kind regression
/assign enj
/sig auth
/sig api-machinery

### What did you expect to happen?

We expected public anonymous requests to be throttled, not anonymous requests in the conversation between our API server and Kube API server. 

### How can we reproduce it (as minimally and precisely as possible)?

We attempted to prove the problem by modifying an integration test.  See the diff here:
https://github.com/kubernetes/kubernetes/compare/master...benjaminapetersen:ben/aggregated-api-server/feature-gate-problem?expand=1

However, this change does not successfully prove the issue.  We believe it may be because the test fakes out too many components to accurately reproduce the error. 

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# n/a ~ upcoming release 
```

</details>


### Cloud provider

<details>
n/a
</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>

cc @cfryanr for significant effort investigating this issue.
Repository: deno
Issue: Consistent text styles between `prompt` vs `alert`/`confirm`
Labels: bug,ext/web

Version: Deno 1.39.0

Context: https://github.com/denoland/deno/pull/18453

After upgrading, I noticed the yellow+bold styles have been stripped from `prompt` (but not from `alert` or `confirm`). It looks like the styles were removed in https://github.com/lionel-rowe/deno/commit/ebb3f63e3d02f1dbba013dfc8a84e5bfecec7b9a. I'm not sure if the change was made intentionally or committed by accident, but if the desired effect is to remove the styles, it needs to be applied to `alert` and `confirm` too.

![image](https://github.com/denoland/deno/assets/26078826/cf9bac7f-401e-46cf-94cd-4fd0d323c59d)

I'd argue it's worth retaining the styles, as it leaves a record in the terminal that's much easier to parse visually:

![image](https://github.com/denoland/deno/assets/26078826/40c294f4-ea2a-4066-abbe-237eca9b7971)
Repository: PowerToys
Issue: Window icon doesn't behave like standard Windows applications
Labels: Issue-Bug,Product-Settings,Area-User Interface,Needs-Triage

### Microsoft PowerToys version

0.76.2

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

General, Settings, Welcome / PowerToys Tour window

### Steps to reproduce

* Left-click the PowerToys window icon at the top-left of the PowerToys Settings or Welcome window.
* Double-click the window icon.
* Right-click the middle of the title bar.

### ✔️ Expected Behavior

As with other standard Windows apps:
* Left-clicking the window icon should open the window menu with the “Close” option bolded.
* Double-clicking the window icon should close the window.
* Right-clicking the middle of the title bar should open the window menu with the “Maximize” option bolded.

### ❌ Actual Behavior

* Left-clicking the PowerToys window icon does nothing.
* Double-clicking the window icon maximizes the window.
* Right-clicking the middle of the title bar opens the window menu with the “Close” option bolded.

### Other Software

_No response_
Repository: neovim
Issue: Treesitter's `descendant_for_range` inconsistencies with json parser, unsure if it's 0 or 1-based column indexing
Labels: bug,documentation,treesitter

### Problem

Doing the test with a json file, I find the returned result of `TSNode:descendant_for_range` doesn't actually reflect the node to cover for that range, or the documentation isn't clear enough about columns indexing.

### Steps to reproduce

- minimal.lua
```lua
-- Run this file as `nvim --clean -u minimal.lua`

for name, url in pairs{
  -- ADD PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE, e.g:
  ["nvim-treesitter"] = 'https://github.com/nvim-treesitter/nvim-treesitter'
} do
  local install_path = vim.fn.fnamemodify('nvim_issue/'..name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end

require("nvim-treesitter.configs").setup({
  ensure_installed = { "json" },
})

vim.keymap.set("n", "qq", function()
  local lnum = 2
  local parser = vim.F.npcall(vim.treesitter.get_parser, 0)
  local root = parser:parse(true)[1]:root()
  local line = vim.api.nvim_buf_get_lines(0, lnum, lnum + 1, false)[1] or ""
  local scol = vim.fn.indent(lnum + 1)
  local ecol = #line - 1
  vim.print(root:descendant_for_range(lnum, scol, lnum, ecol):type())
end)
```
- repro.json
```json
{
  "foo": [
    "bar",
    "baz",
  ]
}
```

- `nvim --clean -u minimal.lua repro.json`
- While in `repro.json`, press `qq`

### Expected behavior

I expected the node type returned to be `array`, and not `string`, as `string` node doesn't cover the final `,` at end of line 3

Additionally, if I instead do
```diff
-  vim.print(root:descendant_for_range(lnum, scol, lnum, ecol):type())
+  vim.print(root:descendant_for_range(lnum, ecol, lnum, ecol):type())
```

Then I did get `,` as the node type, but spanning the entire line gives an incorrect result

### Neovim version (nvim -v)

v0.10.0-dev-36552adb3

### Vim (not Nvim) behaves the same?

N/A

### Operating system/version

Linux 6.6.6

### Terminal name/version

kitty 0.31.0

### $TERM environment variable

xterm-kitty

### Installation

Build from source
Repository: pytorch
Issue: Merge all 3 mypy lint jobs
Labels: module: typing,triaged,actionable

We currently have 3 different mypy configs, each one dedicated to checking separate parts of the codebase. However, due to import-following, mypy is actually checking overlapping sets of files (even though it squelches errors from some of them.) This makes the lint job unnecessarily slow.

We don't want to relax our mypy typechecker settings when doing so; if two configs differ in strictness, the combined config should pick the stricter option.

Merging `mypy-inductor.ini` and `mypy-strict.ini` is probably easiest. Merging the result of that with `mypy.ini` will be considerably more work.

cc @ezyang @malfet @xuzhao9 @gramster
Repository: PowerToys
Issue: #File Explorer Add Ons #PDF Toggle Behavior error
Labels: Issue-Bug,Product-File Explorer,Needs-Triage

### Microsoft PowerToys version

0.76.2

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

File Explorer: Preview Pane

### Steps to reproduce

1. Open Power Toys and disable PDF Format in preview pane. (this should disable pdfs from viewing)
![image](https://github.com/microsoft/PowerToys/assets/43549610/66b47b2f-c49f-42cc-9d01-f2a56f99a9ea)
2. Open File Explorer and click a pdf. (file is previewing. not the expected result.)
![image](https://github.com/microsoft/PowerToys/assets/43549610/8b620a68-c65c-429c-84c7-dcaca62f68fc)
3.  Goto power Toys and enable PDF. (this should enable pdfs to view)
![image](https://github.com/microsoft/PowerToys/assets/43549610/d62d37f8-b3cc-4598-ad66-49be357a1db8)
4. Open FIle Explorer and click a PDF. (file is not previewing. not the expected result.)
![image](https://github.com/microsoft/PowerToys/assets/43549610/17ddff30-6f1e-4f66-9598-3ab1c5f74b39)


### ✔️ Expected Behavior

Toggle on should enable the PDF preview. Toggling it off shouls disable the PDF preview.

### ❌ Actual Behavior

Toggling on disabled the PDF preview. Toggling it off enabled the PDF previewer.

### Other Software

_No response_
Repository: go
Issue: x/sys/unix: add support for vectorized ("scatter/gather") IO syscalls on Darwin
Labels: OS-Darwin,NeedsFix

### Proposal Details

The following syscalls could be supported on modern OSX versions (Darwin 11 and newer)

- `unix.Readv(fd int, iovs [][]byte) (n int, err error)`
- `unix.Preadv(fd int, iovs [][]byte, offset int64) (n int, err error)` 
- `unix.Writev(fd int, iovs [][]byte) (n int, err error)`
- `unix.Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error)`

I think https://go-review.googlesource.com/c/sys/+/548795 contains everything needed to implement this on Darwin. 
In cases where the version is too old, the public functions in `unix` would simply return `ENOSYS` instead of running into a `dyld` error due to trying to jump to a function that doesn't exist.
Repository: PowerToys
Issue: Mouse Jump rubberbands back to original position when used with Mouse Without Borders
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.76.2

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Utilities, Mouse Without Borders

### Steps to reproduce

Connect to another computer with Mouse Without Borders. Move host computer mouse onto second computer. Activate Mouse Jump on second computer, and select a new location.

### ✔️ Expected Behavior

The mouse pointer should remain in the new location on the second computer and move as normal from there.

### ❌ Actual Behavior

When moved, the mouse pointer rebounds to the location it was at before being jumped.

### Other Software

_No response_
Repository: PowerToys
Issue: Allow export/import custom FancyZone layouts.json
Labels: Idea-Enhancement,FancyZones-Editor,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Looking at the source code, it appears that custom layouts are saved in json file at `LocalApplicationData`. Could we have an option to import it from different device?

### Scenario when this would be used?

User with multiple devices can have a same fancy zone layout experience between different devices. 

### Supporting information

_No response_
Repository: HelloGitHub
Issue: 【开源自荐】一套获取紫微斗数星盘信息的Javascript开源库
Labels: JavaScript 项目

## 推荐项目

- 项目名称
  [iztro](https://github.com/SylarLong/iztro)

- 项目地址：
  https://github.com/SylarLong/iztro
- 类别：
  JS
- 项目标题：
  一套获取紫微斗数星盘信息的Javascript开源库
- 项目描述：
  提供获取紫微斗数星盘信息和运限分析API，并且有完善的文档、科普以及实现效果
- 亮点：
  轻量级、多语言支持，首款文档完善，并配备了知识库的紫微斗数相关开源库。调用方法，并提供了纯JS库的打包，支持ES6 Module和CommonJS方式引入。

  提供了配套的React框架下的组件

  - [react-iztro](https://github.com/SylarLong/react-iztro)
  - [iztro-hook](https://github.com/SylarLong/iztro-hook)

- 示例代码：

  - ES6 Module
    ```ts
    import { astro } from 'iztro';
    
    // 通过阳历获取星盘信息
    const astrolabe = astro.bySolar('2000-8-16', 2, '女', true, 'zh-CN');
    
    // 通过农历获取星盘信息
    const astrolabe = astro.byLunar('2000-7-17', 2, '女', false, true, 'zh-CN');
    ```
  - CommonJS
  
    ```ts
    var iztro = require('iztro');
    
    // 通过阳历获取星盘信息
    var astrolabe = iztro.astro.bySolar('2000-8-16', 2, '女', true, 'zh-CN');
    
    // 通过农历获取星盘信息
    var astrolabe = iztro.astro.byLunar('2000-7-17', 2, '女', false, true, 'zh-CN');
    ```
- 截图：

  文档截图

  ![image](https://github.com/521xueweihan/HelloGitHub/assets/6510425/76a10288-a1ce-4d18-9d3b-5f5a24948428)

  ![image](https://github.com/521xueweihan/HelloGitHub/assets/6510425/e05d0067-4c27-4f89-b990-ab83b3cd9cf2)

  实现效果截图

  ![image](https://github.com/521xueweihan/HelloGitHub/assets/6510425/8144c48f-7e41-4a05-bd99-f42843b24d1e)

  ![image](https://github.com/521xueweihan/HelloGitHub/assets/6510425/5a692dee-cbed-469f-bb33-f8c61b8c24e1)
  
  ![image](https://github.com/521xueweihan/HelloGitHub/assets/6510425/0590d0d7-42ae-40aa-8392-3c6f1d896c34)

- 后续更新计划：

  - 加入更多分析方法
  - 加入格局的分析方法
  - 完善知识库
  - 在DEMO站里加入更多应用场景

- 文档地址：

  https://ziwei.pro

- DEMO地址：

  https://ziwei.pub
Repository: deno
Issue: Markdown Formatter breaks code tags
Labels: bug,deno fmt

Version: Deno 1.38.4

**Input**

```markdown
Here's a <code>code span with many words in it that it even wraps this line</code>.
```

Rendered:

Here's a <code>code span with many words in it that it even wraps this line</code>.

**Output**

Run `deno fmt input.md`, it results in:

```markdown
Here's a <code>code span with many words in it that it even wraps this
line</code>.
```

Rendered:

Here's a <code>code span with many words in it that it even wraps this
line</code>.

-- which is to say, whitespaces in code tags are important and could not be resized nor be turned to newlines.
Repository: vscode
Issue: Align styling of toggled actions and toggled buttons
Labels: ux,polish

We show a maximized editor group with a toggled icon:

<img width="275" alt="image" src="https://github.com/microsoft/vscode/assets/900690/780c305a-efd4-459a-b3be-7d6808cc53ab">

Meanwhile we have an existing style for when something is toggled:

<img width="223" alt="image" src="https://github.com/microsoft/vscode/assets/900690/acf5b98f-2b1b-4a9a-906e-785e4ba1dc8e">

I think the latter is much more explicit and inviting to click, so I think we should align the former to it.

//cc @joaomoreno
Repository: pytorch
Issue: Unable to perform distributed Computing
Labels: needs reproduction,oncall: distributed

### 🐛 Describe the bug

RayTaskError(DistBackendError): ray::RayWorkerVllm.execute_method() (pid=19829, ip=169.255.254.1, actor_id=6ef54c39d662145dcb88f73c01000000, repr=<vllm.engine.ray_utils.RayWorkerVllm object at 0x7f5529b51660>)
  File "/opt/conda/lib/python3.10/site-packages/vllm/engine/ray_utils.py", line 32, in execute_method
    return executor(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/vllm/worker/worker.py", line 65, in init_model
    _init_distributed_environment(self.parallel_config, self.rank,
  File "/opt/conda/lib/python3.10/site-packages/vllm/worker/worker.py", line 178, in _init_distributed_environment
    torch.distributed.all_reduce(torch.zeros(1).cuda())
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/c10d_logger.py", line 47, in wrapper
    return func(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/distributed_c10d.py", line 2050, in all_reduce
    work = group.allreduce([tensor], opts)
torch.distributed.DistBackendError: NCCL error in: ../torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1251, internal error - please report this issue to the NCCL developers, NCCL version 2.18.6
ncclInternalError: Internal check failed.
Last error:
Bootstrap : no socket interface found

### Versions

torch version - 2.0.1

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225
Repository: ant-design
Issue: Ability to replace characters while typing
Labels: Inactive,unconfirmed

### What problem does this feature solve?

Currently it is not possible for InputNumber to replace one character ("," in my case) with another ("." in my case) while typing, it only happens after blur event or after typing next character (after ",") which is not zero (if using parser and formatter). 
Would be great to prevent users from seeing unnecessary characters ("," comma) in my case.

### What does the proposed API look like?

<InputNumber
     formatOnType: (value:string|number): string
/>

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Local to Scene does not work for Shader Material in some cases
Labels: discussion,topic:shaders,topic:3d

### Tested versions

Found in version 4.2.1
Not found in version 3.5

### System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 31.0.15.3623) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)

### Issue description

Added a ShaderMaterial to a MeshInstance3D, then set the shader. In this case the shader just has a uniform that sets the cube color.

The material is marked as Local to Scene. The goal is to be able to set different shader parameters (different color) for each instance of the object.

This works if the material is in the Surface Material Override slot or in the Geometry/Material Override slot. But for material in the Mesh/Surface or the Mesh/Material slot, ticking the Local to Scene checkbox on the material does not allow independent shader parameters.

This can be seen in the picture where every instance is given a different random color. Only the objects with the shader in material override or surface override have independent colors.

![localtoscene](https://github.com/godotengine/godot/assets/152840556/f3c658df-3151-4249-9f2c-77bb2210074a)


### Steps to reproduce

Run the TestLocal project included.
If it were working as I would expect, then all the boxes should have different colors.

### Minimal reproduction project (MRP)

[TestLocal.zip](https://github.com/godotengine/godot/files/13671435/TestLocal.zip)
Repository: flutter
Issue: Cupertino Icons: CupertinoIcons.play IconData is not correctly aligned on the grid
Labels: framework,f: cupertino,has reproducible steps,P2,p: cupertino_icons,team-design,triaged-design,found in release: 3.16,found in release: 3.18

### 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

The `CupertinoIcons.play` IconData is not aligned correctly in the middle/on the grid

I think it was created by the same asset as play next, but play next has a `|` after the `|>` so the space is empty


### Expected results

`CupertinoIcons.play` IconData should be centered on the grid

### Actual results

`CupertinoIcons.play` IconData is not centered on the grid

### Code sample

<details><summary>Code sample</summary>

```dart
class MyWidget extends StatefulWidget {
  const MyWidget({super.key});

  @override
  State<MyWidget> createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  bool _play = false;
  @override
  Widget build(BuildContext context) {
    return IconButton(
      onPressed: () => setState(() => _play = !_play),
      icon: _play
          ? const Icon(CupertinoIcons.pause)
          : const Icon(CupertinoIcons.play),
    );
  }
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: MyWidget(),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/15329494/64520d5d-ca68-4c27-9005-ad7426ef5c3b


<img width="55" alt="Bildschirmfoto 2023-12-14 um 10 53 36" src="https://github.com/flutter/flutter/assets/15329494/17b12d32-3f47-42d9-bd87-05ee96a81284">
<br/>
<img width="53" alt="Bildschirmfoto 2023-12-14 um 10 54 16" src="https://github.com/flutter/flutter/assets/15329494/f76aa93a-cf93-43e3-9f04-0390c1705fef">


</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
➜  musicpod git:(main) flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1.2 23B2091 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.85.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!
➜  musicpod git:(main) 
```

</details>