sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: langchain
Issue: AzureCosmosDB vector store filter not working?
Labels: Ɑ: vector store

### Example Code

```
vectorstore = AzureCosmosDBVectorSearch.from_connection_string(
                connection_string=self.uri,
                namespace=self.namespace,
                embedding=self.embedding_model,
                index_name = self.index_name,
                embedding_key=self.embedding_key
            )
        
        retriever = vectorstore.as_retriever(
                search_kwargs={
                    "k": 10,
                    "filter": {"username": "james"}
                }
            )
```


### Description

As per the documentation, i added the filter to the search_kwargs argument, however the filter is not working and is returning me all the documents.
Repository: PowerToys
Issue: New+ Better Support for MS Office Template Files (i.e., dotx, dotm, xltx, xltm, potx, potm)
Labels: Needs-Triage

### Description of the new feature / enhancement

New+ will support using MS Office template files (i.e., dotx, dotm, xltx, xltm, potx, potm) to create MS Office files (i.e., docx, docm, xlsx, xlsm, potx, potm) in a selected location.

As it currently stands, if the New+ templates folder includes MS Office template files such as Example.dotx, then it will create an exact copy of Example.dotx in the selected location. When the user double clicks on the new file, it opens another file that must be saved as a regular MS Office file (i.e., Example.docx) for editing. 

It would be great if New+ would take Example.dotx and create Example.docx in the selected location. There should be option to allow users to convert macro enabled templates (i.e., dotm, xltm, potm) into either a regular MS Office file (i.e., docx, xlsx, potx) or a macro enabled MS Office file (i.e., docm, xlsm, potm).

### Scenario when this would be used?

This is useful when users want the New+ templates folder to include MS Office templates. For example, I have a couple dozen MS Office templates that I use with Word. I would like to set the New+ templates folder to the folder where the MS Office templates are stored and then use New+ to create regular MS Office files from the templates.

### Supporting information

_No response_
Repository: godot
Issue: [Godot 4.4 dev3] Fallback to OpenGL 3 not working on iPad 6th gen
Labels: bug,platform:ios,topic:rendering

### Tested versions

- Reproducible in 4.4 dev3

### System information

Ipad 6th gen - iPad OS 17.5.1

### Issue description

Title, I tried deploying and opening an app on an iPad 6th gen (iPadOS 17.5.1), but it doesn't work (manually setting the renderer from `forward_plus` or `mobile` to `gl_compatibility` does work, but it makes the fallback option completely pointless). 

Console output on Xcode:
```
Godot Engine v4.4.dev3.official.f4af8201b - https://godotengine.org
Metal 3.1 - Forward Mobile - Using Device #0: Apple - Apple A10 GPU (Apple3)

MTLValidateFeatureSupport, line 6575: error 'Texture Cube Array is only supported on MTLGPUFamilyApple4 and later.'

MTLValidateFeatureSupport:6575: failed assertion 'Texture Cube Array is only supported on MTLGPUFamilyApple4 and later.'
```

### Steps to reproduce

Export iOS project and open it.

### Minimal reproduction project (MRP)

Can be tested with an empty project, as the fallback option in the project settings is enabled by default, so no MRP needed.
Repository: rust
Issue: Inefficient implementation of `PartialEq` for nested (fieldless) enums
Labels: A-LLVM,I-slow,A-codegen,T-compiler,I-heavy,C-optimization,A-enum

I'm not sure if this is the right place for this (might be LLVM to blame), just a bit of inefficient code that I noticed.

https://godbolt.org/z/K57orYj5h

The only difference between the two functions `eq` and `matches` is the use of `==` and `matches!` for the enum comparison. The generated code for `eq` includes two calls to `PartialEq` for `Outer`, whereas the code for `matches` has a much simpler (inline) comparison.

Also, the generated code for `PartialEq` seems very inefficient, given the enum is just a two-byte value that can be directly compared.

If you tinker with the enum definitions it's not hard to cause `eq` to optimise exactly like `matches`.

Example copied here
```rust
#[derive(PartialEq)]
pub enum InnerInner {
    One,
    Two,
}

#[derive(PartialEq)]
pub enum Inner {
    One,
    Two,
    Const(InnerInner),
}

#[derive(PartialEq)]
pub enum Outer {
    One(Inner),
    Two,
    Three,
    Four,
    Five(Inner),
    Six(Inner),
    Seven(Inner),
    Eight(Inner),
}

#[no_mangle]
pub fn eq(t: Outer, b: &mut bool) {
    let token_type = if t == Outer::One(Inner::One) {
        Outer::One(Inner::One)
    } else {
        Outer::Two
    };

    *b = token_type == Outer::Two;
}

#[no_mangle]
pub fn matches(t: Outer, b: &mut bool) {
    let token_type = if matches!(t, Outer::One(Inner::One)) {
        Outer::One(Inner::One)
    } else {
        Outer::Two
    };

    *b = matches!(token_type, Outer::Two);
}
```
Repository: transformers
Issue: Saving logs to file
Labels: Feature request

### Feature request

Add a `FileHandler` to root logger.

### Motivation

Transformers is only using StreamHandler for logging, which makes debug analysis hard across different experiments. Many other frameworks support both logging to terminal and to file.
For example: fairseq: https://github.com/facebookresearch/fairseq/blob/ecbf110e1eb43861214b05fa001eff584954f65a/fairseq_cli/train.py#L63-L65
detectron2: 
https://github.com/facebookresearch/detectron2/blob/8d85329aed8506ea3672e3e208971345973ea761/detectron2/utils/logger.py#L108

### Your contribution

I can propose a PR.
Repository: ollama
Issue: Expose DRY and XTC parameters
Labels: feature request

Llama.cpp has recently added support for the [DRY](https://github.com/oobabooga/text-generation-webui/pull/5677) and [XTC](https://github.com/oobabooga/text-generation-webui/pull/6335) sampling algorithms (https://github.com/ggerganov/llama.cpp/pull/9702 and https://github.com/ggerganov/llama.cpp/pull/9742, respectively).

DRY and XTC are widely used for creative tasks, and are recommended in the model cards of many popular finetunes.

It would be nice to be able to use DRY and XTC parameters when making API calls to Ollama. All the backend machinery is already present in llama.cpp, so presumably this would require little more than forwarding those parameters from the request to the engine.
Repository: godot
Issue: FileDialog/EditorFileDialog filter does not allow pressing Enter to enter a folder once it has been autoselected
Labels: bug,topic:editor,usability,topic:gui

### Tested versions

- Reproducible in: 4.4.dev b3bcb2dc1

### System information

Godot v4.4.dev (b3bcb2dc1) - Fedora Linux 41 (KDE Plasma) on X11 - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (nvidia; 565.57.01) - 13th Gen Intel(R) Core(TM) i9-13900K (32 threads)

### Issue description

When you use FileDialog or EditorFileDialog with the **Open File**, **Open Files** or **Save** mode, you cannot select a folder as your chosen file. However, you can still enter it by pressing the same shortcut as you would have to select the folder. This doesn't work when relying on automatic selection from the file filter:

Here, I press <kbd>Enter</kbd> after entering something in the filter that automatically selects the first visible item:

https://github.com/user-attachments/assets/74870af6-3357-4167-8e95-1fde36798c68

If I manually focus the item and press <kbd>Enter</kbd>, the folder will be entered, but here, nothing happens. In **Save** mode, the dialog closes instead (likely because it tries to save in the current folder, even though the user's intent would be to enter the folder instead).

Note that I tested EditorFileDialog with https://github.com/godotengine/godot/pull/98022.

### Steps to reproduce

- Open an EditorFileDialog, e.g. by changing the project icon in the Project Settings.
- Press <kbd>Ctrl + F</kbd> to bring up the file filter and enter a folder's name.
- Press <kbd>Enter</kbd>.

### Minimal reproduction project (MRP)

[test_pr_98022.zip](https://github.com/user-attachments/files/17628207/test_pr_98022.zip)
Repository: deno
Issue: Node: HTTP request fails on `res.complete`
Labels: bug,node compat

Version: Deno 2.0.2 _(Still failing at 2.1.7)_

# Description

In `npm:@adyen/api-library` they use Node's native `http` to send POST requests and it always fails in Deno with the following error:
```
An error occurred during route handling or page rendering.

  141 |                 res.on("end", () => {
  142 |                     if (!res.complete) {
> 143 |                         reject(new Error("The connection was terminated while the message was still being sent"));
      |                                ^
  144 |                     }
  145 |                     if (res.statusCode && (res.statusCode < 200 || res.statusCode >= 300)) {
  146 |                         try {

Error: The connection was terminated while the message was still being sent
    at IncomingMessageForClient.<anonymous> (file:///Users/vicary/Library/Caches/deno/npm/registry.npmjs.org/@adyen/api-library/20.0.0/lib/src/httpClient/httpURLConnectionClient.js:143:32)
    at IncomingMessageForClient.emit (ext:deno_node/_events.mjs:393:28)
    at endReadableNT (ext:deno_node/_stream.mjs:3210:16)
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:36:15)
    at runNextTicks (ext:deno_node/_next_tick.ts:75:3)
    at eventLoopTick (ext:core/01_core.js:182:21)
```
Their [source code](https://github.com/Adyen/adyen-node-api-library/blob/fd0f0f45a0d2c24ba30458f3d49fc2ae058cd049/src/httpClient/httpURLConnectionClient.ts#L151) is checking `res.complete` the same way as [Deno recommended](https://docs.deno.com/api/node/http/~/IncomingMessage.prototype.complete).

Running the same script in Node.js works without problems, is it a Node compatibility issue?

## Workarounds

Wrapping the callback of `res.on("end", () => { ... })` in a `queueMicrotask()` gives enough time for the request to finish. 

Since we cannot override NPM modules using vendor, publishing a forked version may be required.
Repository: vscode
Issue: Notebook Multicursor -- support for case sensitive and whole word toggles 
Labels: feature-request,notebook-cell-editor

<!-- ⚠️⚠️ 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: 1.95.1
- OS Version: Windows 11 Pro, Version 23H2

Steps to Reproduce:
Use Jupyter Extension Pack (All Microsoft)
1. Ctrl + F works fine with case sensitive and word boundaries. 
2. Ctrl + D only defaults to non-case sensitive and no-word boundary behavior. 
3. Also, the top left pop-up that used to come with Ctrl + D does not come anymore, where I could previously toggle this behavior. 


![Image](https://github.com/user-attachments/assets/d960fed2-1e13-457e-ac6d-7713cb9a808c)
Find behavior works just fine. 

![Image](https://github.com/user-attachments/assets/da2d1ab8-cfa6-4474-8bf6-0e0c889e2106)
Ctrl + D does not work. It also selected ma*x* and 2*x*2.
Repository: pytorch
Issue: [Distributed][collectiveCoalesced] Why function(check_gpu_tensors_same_device) only works in allreduce_coalesced?
Labels: oncall: distributed

### 🐛 Describe the bug

![image](https://github.com/user-attachments/assets/5414f508-d1eb-4d20-8b38-709d1dd9a3eb)
Function check_gpu_tensors_same_device only works in allreduce_coalesced. In both allgather_into_tensor_coalesced and reduce_scatter_tensor_coalesced, this function not appear.  What is the reason?
Also, in this function, it checks scalar_type of each tensor in the tensor vector as shown in the picture below:
![image](https://github.com/user-attachments/assets/4da2b20f-9e05-4ae3-9991-74651192a0ce)
I don't understand the reason why the scalar_type of each tensor should be consistent in allreduce_coalesced while each allreduce is done independently on each tensor in the tensorlist.

### Versions

torch 2.3/2.4/2.5

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: angular
Issue: Input setter coercion docs should mention input signals with value tranforms
Labels: area: docs

### Describe the problem that you experienced

The [Input setter coercion section of the Template type checking page](https://angular.dev/tools/cli/template-typecheck#input-setter-coercion) explains the typechecking problem of boolean attributes like `disabled`. However, the solutions it provides are outdated

- they first mention `ngAcceptInputType_` prefix
- then they mention that it is deprecated in favor of getter/setter pairs with correct types

However, they do not mention how to fix it with a [value transform on a signal input](https://angular.dev/guide/signals/inputs#value-transforms).

It would also be nice to mention the [booleanAttribute](https://angular.dev/api/core/booleanAttribute) helper somewhere. The Value transforms section basically repeats that helper without mentioning that you can just import it.

### Enter the URL of the topic with the problem

https://angular.dev/tools/cli/template-typecheck#input-setter-coercion

### Describe what you were looking for in the documentation

_No response_

### Describe the actions that led you to experience the problem

_No response_

### Describe what you want to experience that would fix the problem

_No response_

### 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

_No response_
Repository: kubernetes
Issue: kubelet cause pod unready when stop kubelet, sleep 40s, start kubelet
Labels: kind/support,sig/node,needs-triage

### What happened?

systemctl stop kubelet first,
sleep 40
systemctl start kubelet 

get pod -w   will found pod become unready, and become ready immediately

### What did you expect to happen?

pod should no change

### How can we reproduce it (as minimally and precisely as possible)?

systemctl stop kubelet first,
sleep 40
systemctl start kubelet 

### Anything else we need to know?

![image](https://github.com/user-attachments/assets/2cbca0b1-8568-45e5-a8c7-0263cdf202f5)


### Kubernetes version

1.24.17

### Cloud provider

<details>

</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>
Repository: ui
Issue: [feat]: Create new popup button component https://www.easyui.pro/component
Labels: area: request

### Feature description

Describe your feature request... Kindly add this type of component
![image](https://github.com/user-attachments/assets/8aecca2e-bf56-4b8d-ba28-61b236a95d37)

https://www.easyui.pro/component

### Affected component/components

https://www.easyui.pro/component

### Additional Context

Additional details here... Example: https://www.easyui.pro/component

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: kubernetes
Issue: Document the Job positive and negative criteria evaluation orders
Labels: kind/documentation,kind/feature,sig/apps,priority/important-longterm,sig/docs,triage/accepted

### What would you like to be added?

I would like to document the Job positive and negative criteria evaluation orders in the following 3 levels:

- [x] [JobController (KubeControllerManager)](https://github.com/kubernetes/kubernetes/blob/bc79d3ba87b8b3c4b7c68f26cdfcaa35654d96ac/pkg/controller/job/job_controller.go) Comments: https://github.com/kubernetes/kubernetes/pull/128569
- [ ] [Job API](https://github.com/kubernetes/kubernetes/blob/bc79d3ba87b8b3c4b7c68f26cdfcaa35654d96ac/pkg/apis/batch/types.go) Comments
- [ ] [Job API Documents](https://kubernetes.io/docs/concepts/workloads/controllers/job/)

/sig apps

### Why is this needed?

As reported in https://github.com/kubernetes/kubernetes/issues/117303 and discussed in https://github.com/kubernetes/kubernetes/pull/121863#issuecomment-2447872050, when the Job meets both the positive (`.spec.completions`, `.spec.successPolicy`, and some else) and negative (`.spec.backoffLimit`, `.spec.activeDeadlineSeconds`, and some else) criteria at the same time, the negative ones are respected, then the Job status looks weird. However, the evaluation orders and status are Job specifications, not any bugs.

It would be better to document the criteria evaluation steps to clarify this behavior. Additionally, users should rely on the `.status.completionTime` instead of `.status.succeeded` to verify if the Job has been succeeded since the `.status.succeeded` is not a terminal state, that is just intermediate state for the JobController.
Repository: deno
Issue: Skip localhost when evaluating HSTS upgrades
Labels: web

Not sure if applicable, but just in case. See https://github.com/whatwg/fetch/pull/1781 for the change to Fetch.
Repository: kubernetes
Issue: Failure cluster [44fa5cdb...]: TestFrontProxyConfig/WithoutUID: 
Labels: sig/api-machinery,kind/flake,kind/failing-test,triage/accepted

### Failure cluster [44fa5cdb3ee6c1ca81f2](https://go.k8s.io/triage#44fa5cdb3ee6c1ca81f2)

##### Error text:
```
Failed;Failed;
=== RUN   TestFrontProxyConfig/WithoutUID
    testserver.go:581: Resolved testserver package path to: "/home/prow/go/src/k8s.io/kubernetes/cmd/kube-apiserver/app/testing"
    testserver.go:401: runtime-config=map[api/all:true]
    testserver.go:402: Starting kube-apiserver on port 42541...
...
    apiserver_test.go:350: expected UID: "24d7c521-dceb-47e4-aa29-ceabe7c6320a", got: ""
    apiserver_test.go:353: expected name: "system:serviceaccount:integration-test-front-proxy-config:wardle-client-sa", got: "system:kube-aggregator"
    apiserver_test.go:356: expected groups: [system:serviceaccounts system:serviceaccounts:integration-test-front-proxy-config system:authenticated], got: [system:authenticated]
    apiserver_test.go:359: expected extra to be map[authentication.kubernetes.io/credential-id:[JTI=97c7bbc2-7a1b-4e58-9f10-ac3d780144ba]], but got map[]
    apiserver_test.go:385: the request is in fact not being tested
```

#### Recent failures:
[10/28/2024, 12:52:08 AM ci-kubernetes-integration-master](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-integration-master/1850686612854280192)
[10/23/2024, 12:47:59 PM ci-kubernetes-integration-master](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-integration-master/1849039745846349824)

/kind failing-test
/kind flake
/sig api-machinery
Repository: ant-design
Issue: TreeSelect 部分属性和功能改进
Labels: Inactive,unconfirmed

### What problem does this feature solve?

TreeSelect Props中有一个 treeTitleRender 的 ts 类型标注错误，如下图所示：
<img width="1442" alt="image" src="https://github.com/user-attachments/assets/d38d6c9c-9fa5-46d7-9ca2-b6be33a9b3a9">

有个问题值得我们思考一下，Select组件中，选项Option类型推崇的是 label、value... ，Tree和TreeSelect中理应也是 label、value... 而不是 title、value...
`treeTitleRender` 这个命名也不合理，难道不应该是 `treeNodeRender` 嘛
TreeSelect 组件少一个很实用的功能（Select组件中有）就是 `labelRender`，这会给远程搜索而选中的数据在回显的时候有一个机会来解析首次加载的数据中不存在对应选项或node，而不是不存在时显示一个 value：
<img width="678" alt="image" src="https://github.com/user-attachments/assets/30aa9d03-b665-4804-acad-dbd533483f72">

### What does the proposed API look like?

理想情况下 `treeTitleRender` 改名为 `treeNodeRender`，修复对应的TS类型错误
新增 `labelRender` 解决在已有数据中找不到对应的项时显示 value 的问题，同时也可以解决自定义渲染选中项的显示的需求（如果有的话）

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: next.js
Issue: SearchParams Sync Issue During First Effect Execution with window.history.replaceState()
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/yongholeeme/reproduction-bug-history-api-in-effect-nextjs/blob/main/Bug.jsx

### To Reproduce

> I created and deployed reproduction: https://reproduction-bug-history-api-in-effect-nextjs.vercel.app
> 1. When query `foo` is over 5, call [`window.history.replaceState()`](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#using-the-native-history-api) in effect
> 2. When `searchParams` is changed, call `console.log()` to watch `searchParams`
> 3. When clicked the button, query `foo` is updated by random number (0 ~ 9)

1. When connect https://reproduction-bug-history-api-in-effect-nextjs.vercel.app?foo=100, `foo`'s value has to be changed `bar` according to `1. When query `foo` is over 5, call window.history.replaceState() in effect`
2. It seems to be changed to `?foo=bar`, but `console.log()` don't be executed in useEffect has `searchParams` dependency.
3. Even after calling `router.refresh()`, `?foo=100` query is back.

https://github.com/user-attachments/assets/593b9697-e790-4cea-a877-1e824671a6a2



### Current vs. Expected behavior

Wherever `window.history.replaceState()` is called, it's be synchronized with Router.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:13 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8112
  Available memory (MB): 24576
  Available CPU cores: 8
Binaries:
  Node: 20.13.1
  npm: 10.5.2
  Yarn: N/A
  pnpm: 9.1.1
Relevant Packages:
  next: 15.0.2 // Latest available version is detected (15.0.2).
  eslint-config-next: N/A
  react: 19.0.0-rc-02c0e824-20241028
  react-dom: 19.0.0-rc-02c0e824-20241028
  typescript: N/A
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Navigation

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: ant-design
Issue: Dropdown 下拉菜单组件item数量过多时浏览器窗口会遮挡UI看不到完整菜单
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/rqg8nf)

### Steps to reproduce

点击 列表中的 “更多” 按钮显示下拉菜单。

### What is expected?

能够完整显示下拉菜单内容，不要撑开页面

### What is actually happening?

当下拉菜单显示在“更多”按钮下面时，会撑开页面带有滚动条，造成页面底部更多的空白。
![图片](https://github.com/user-attachments/assets/a2fcdb52-a60e-44e1-83f1-4b086559e713)

当显示在“更多”按钮上面时，下拉菜单有部分被浏览器窗口遮挡掉。
![图片](https://github.com/user-attachments/assets/3721e897-8fdf-4972-b2c4-352c21cc7a49)

| Environment | Info |
| --- | --- |
| antd | 5.21.6 |
| React | 18.3.1 |
| System | MacOS 10.15.7 |
| Browser | Chrome 128, Firefox 131 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->