sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: langchain
Issue: DOC: Add support for custom user agent in the tutorial for openai
Labels: 🤖:docs

### URL

https://python.langchain.com/docs/integrations/llms/openai/

### Checklist

- [X] I added a very descriptive title to this issue.
- [X] I included a link to the documentation page I am referring to (if applicable).

### Issue with current documentation:

There is no explicit section in this documentation about how to override the default openai client to put custom user agent information. This is problematic because from an analytics perspective langchain shows up nowhere in our logs. Purely from analytics data, we cannot see if our customers are using langchain.

### Idea or request for content:

Either add a default langchain custom user agent that says something like:
`User-Agent: langchain/v1.2.3 openai/python v1.2.3`
that would be helpful to show up that langchain is used and this can be proved.

or add in the documentation a way to add a custom User-Agent that would be weaker because it would suppose that all customer will add this header but it is better than nothing :)
Repository: material-ui
Issue: Allow overriding props in styled
Labels: new feature,package: system

### Summary

When created reusable components, it is often very helpful to pass default props to the component.
Adding `props` to `interface MuiStyledOptions` will allow the users to set these props.

### Examples

One use case:
Creating a reusable outlined button with extra css.
Instead of doing:
```
export const FullWidthOutlinedButton = styled(Button)(({ theme }) => ({
  width: '100%',
  marginTop: theme.spacing(5),
}))
```
and always remembering to add the variant when using the component, we can do this:
```
export const FullWidthOutlinedButton = styled(Button, {props: {varient: "outlined"}})(({ theme }) => ({
  width: '100%',
  marginTop: theme.spacing(5),
}))
```

I know the css here is generic but the possibilities are endless

### Motivation

Improving DX when creating reusable components, and minimizing human error

**Search keywords**: props defaults custom
Repository: PowerToys
Issue: [New+] Only up to 16 context items are shown. Remaining are missing.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

New+

### Steps to reproduce

Extract template files [Template.zip] in template folder and open New+ context menu.

[Templates.zip](https://github.com/user-attachments/files/17798980/Templates.zip)
[PowerToysReport_2024-11-18-11-39-03.zip](https://github.com/user-attachments/files/17798950/PowerToysReport_2024-11-18-11-39-03.zip)


### ✔️ Expected Behavior

Showing all items that reside in the template folder.

![Image](https://github.com/user-attachments/assets/1184e212-7584-4c0a-b704-f8dc94b7adf2)


### ❌ Actual Behavior

There are up to 16 items shown. If 20 items are in the template folder, 4 are not shown in the context menu depending on how the items in the template folder are initially sorted.

![Image](https://github.com/user-attachments/assets/fa669b80-79b1-42fa-b804-01856a403134)


### Other Software

[Folcolor 1.2.0](https://github.com/kweatherman/Folcolor) (not directly interacting with the software)
Repository: angular
Issue: The documentation for ng serve proxy is incomplete
Labels: help wanted,good first issue,area: docs

### Describe the problem that you experienced

This part of documentation https://angular.dev/tools/cli/serve#proxying-to-a-backend-server is incomplete or maybe incorrect. It indicates that Webpack server is used for development and has links to Webpack documentation. However, newer versions of angular seem to be using Vite together with esbuild target. Because of this our proxy config did not work since we used Webpack specific syntax (namely bare '*'). Only after discovering it is actually using Vite we could fix the problem, but lost almost half a day on it. As such, it would be very helpful to explain that Vite is used with esbuild (which is anyway the default for new projects) and provide links to its proxy config.

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

https://angular.dev/tools/cli/serve#proxying-to-a-backend-server

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

Trying to figure out why proxying is not working.

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

_No response_

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

Update the documentation with explanation that it is using Vite along with appropriate links to its proxy documentation

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

```true

```

### If the problem is browser-specific, please specify the device, OS, browser, and version

```true

```

### Provide any additional information here in as much as detail as you can

```true

```
Repository: kubernetes
Issue: DRA: create DRAAdminAccess KEP
Labels: sig/node,kind/feature,sig/auth,triage/accepted,wg/device-management

### What would you like to be added?

In 1.32, the DRAAdminAccess feature gate was added to keep the "adminAccess" field in alpha while promoting structured parameters to beta. For the sake of time this was done in https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4381-dra-structured-parameters.

We should now prepare a separate KEP for it  and remove all references to it from KEP 4381.

In that new KEP, we need to decide how to do permission checks for the field. Options:
- VAP (current approach): not active by default in new cluster
- builtin admission controller: doable, but more work than a VAP
- RBAC++: not available yet, probably needs to be extended

/cc @ritazh 
/sig auth
/sig node
/wg device-management

Most of the remaining work probably falls under SIG Auth.


### Why is this needed?

One KEP per feature is better for tracking stability.
Repository: rust
Issue: Multi fn items can be casted to fn pointers implicitly but it does not work with only one fn item
Labels: A-diagnostics,T-compiler,A-coercions

### Code

```Rust
fn foo() {}

fn bar() {}

fn main() {
    let _x: Vec<fn()> = [foo].into_iter().collect();
    // let _x: Vec<fn()> = [foo, bar].into_iter().collect();
}
```

### Current output

```Shell
error[E0277]: a value of type `Vec<fn()>` cannot be built from an iterator over elements of type `fn() {foo}`
    --> src/main.rs:6:43
     |
6    |     let _x: Vec<fn()> = [foo].into_iter().collect();
     |                                           ^^^^^^^ value of type `Vec<fn()>` cannot be built from `std::iter::Iterator<Item=fn() {foo}>`
     |
     = help: the trait `FromIterator<fn() {foo}>` is not implemented for `Vec<fn()>`
             but trait `FromIterator<fn()>` is implemented for it
     = help: for that trait implementation, expected `fn()`, found `fn() {foo}`
note: the method call chain might not have had the expected associated types
    --> src/main.rs:6:31
     |
6    |     let _x: Vec<fn()> = [foo].into_iter().collect();
     |                         ----- ^^^^^^^^^^^ `Iterator::Item` is `fn() {foo}` here
     |                         |
     |                         this expression has type `[fn() {foo}; 1]`
note: required by a bound in `collect`
    --> /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1967:19
     |
1967 |     fn collect<B: FromIterator<Self::Item>>(self) -> B
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::collect`

For more information about this error, try `rustc --explain E0277`.
```

### Desired output

```Shell
Compiled successfully
```

### Rationale and extra context

The following call with two fn items would be compiled successfully:
```rust
fn foo() {}

fn bar() {}

fn main() {
    // let _x: Vec<fn()> = [foo].into_iter().collect();
    let _x: Vec<fn()> = [foo, bar].into_iter().collect();
}
```

### Other cases

```Rust

```

### Rust Version

```Shell
Build using the Nightly version: 1.84.0-nightly

(2024-11-17 5ec7d6eee7e0f5236ec1)
```

### Anything else?

_No response_
Repository: excalidraw
Issue: UI font, add Xiaolai as a falback to Excalifont
Labels: good first issue,font

So that CJK is displayed in the UI as well. Double check that Xiaolai gets registered in all the different cases (empty scene, readonly link, etc.).

![Image](https://github.com/user-attachments/assets/fd4159f4-00a0-4081-acab-237b31a8aa26)
Repository: godot
Issue: display_server_wayland.cpp has unreachable code
Labels: bug,platform:linuxbsd,topic:porting,topic:codestyle

### Tested versions

4.3 src Linux

### System information

Linux

### Issue description

File:

https://github.com/godotengine/godot/blob/fd4c29a189e53a1e085df5b9b9a05cac9351b3ef/platform/linuxbsd/wayland/display_server_wayland.cpp#L374-L382

Code:
```cpp
Point2i DisplayServerWayland::mouse_get_position() const {
	MutexLock mutex_lock(wayland_thread.mutex);

	// We can't properly implement this method by design.
	// This is the best we can do unfortunately.
	return Input::get_singleton()->get_mouse_position();

	return Point2i(); // <- unreachable
}
```

### Steps to reproduce

see above

### Minimal reproduction project (MRP)

see above

_Edit by the production team: added syntax highlighting and added the link to the file._
Repository: kubernetes
Issue: Failure cluster [c199077e...]: Pod InPlace Resize Container pod-resize-resource-quota-test
Labels: sig/node,kind/flake,kind/failing-test,triage/accepted

### Failure cluster [c199077e785ee1358fcf](https://go.k8s.io/triage#c199077e785ee1358fcf)

##### Error text:
```
[FAILED] exceeded quota: resize-resource-quota, requested: memory=350Mi, used: memory=700Mi, limited: memory=800Mi
Expected an error to have occurred.  Got:
    <nil>: nil
In [It] at: k8s.io/kubernetes/test/e2e/node/pod_resize.go:172 @ 11/13/24 12:32:16.302

```

Another failure:

```
container[c1] status resources mismatch: Expected
    <v1.ResourceRequirements>: 
        limits:
          cpu: 300m
          memory: 300Mi
        requests:
          cpu: 300m
          memory: 300Mi
to equal
    <v1.ResourceRequirements>: 
        limits:
          cpu: 400m
          memory: 400Mi
        requests:
          cpu: 400m
          memory: 400Mi
```

#### Recent failures:
[11/18/2024, 3:48:51 AM ci-kubernetes-e2e-gci-gce](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-e2e-gci-gce/1858341567471816704)
[11/17/2024, 5:34:50 PM ci-kubernetes-e2e-gci-gce-ip-alias](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-e2e-gci-gce-ip-alias/1858187048112885760)
[11/17/2024, 11:42:35 AM ci-containerd-e2e-ubuntu-gce](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-containerd-e2e-ubuntu-gce/1858098195528159232)
[11/17/2024, 5:48:18 AM ci-kubernetes-e2e-kind-alpha-beta-features](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-e2e-kind-alpha-beta-features/1858008341704347648)
[11/16/2024, 12:34:32 PM ci-containerd-e2e-ubuntu-gce](https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-containerd-e2e-ubuntu-gce/1857748878409863168)


/kind failing-test
/kind flake
/sig node
Repository: material-ui
Issue: [icons] Add Medium Icon
Labels: new feature,waiting for 👍,package: icons

### Summary

I noticed that the @mui/icons-material library does not include an icon for Medium, which is a widely used social platform. Adding a Medium icon would enhance the library's versatility and usability for projects that involve social media links or buttons.

### Examples

_No response_

### Motivation

Include a Medium icon using the official Medium logo SVG.
Reference the SVG path from Medium's official branding resources, ensuring compliance with their usage terms.

**Search keywords**: Medium icon
Repository: vscode
Issue: vscode.workspace.applyEdit opens a duplicated editor for left-side edits in diff editor
Labels: info-needed

I'm using the built-in diff editor to compare 2 files. I've implemented also a (missing) counterpart to "Revert Block" action. 
However the edits behave differently in 2 ways:
1. a new duplicated editor is opened
2. the diff editor is not marked as dirty

The most probable root cause is  [an assumption in the code](https://github.com/microsoft/vscode/blob/fc121ef8e5e6c24e8c0d34875fd35c6919d18544/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.ts#L201
) that edits happen only on the right side of the diff editor.

Screencast of the problem:
https://github.com/user-attachments/assets/3f33896c-6f28-4f8f-b63d-a32b9d44980f
Repository: neovim
Issue: `ml_get` errors after  #31042
Labels: bug,events

### Problem

After 235cb5b (#31042) I'm now getting random errors. Initially from gitsigns but I've minimised below.

```
Error executing vim.schedule lua callback: /Users/lewrus01/projects/neovim/issue.lua:13: Vim:E315: ml_get: Invalid lnum: 1
stack traceback:
        [C]: in function 'quit'
        /Users/lewrus01/projects/neovim/issue.lua:13: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
```

### Steps to reproduce

```lua
vim.bo.filetype = 'lua'
vim.api.nvim_buf_set_lines(0, 0, -1, false, { '' })

local bufname = 'buf2'
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_name(buf, bufname)
vim.bo[buf].filetype = vim.bo.filetype
vim.bo[buf].bufhidden = 'wipe'
vim.cmd('vertical diffsplit '..bufname)

vim.defer_fn(function()
  vim.api.nvim_set_current_win(1002)
  vim.cmd.quit()
end, 10)
```

`nvim -u issue.lua`

### Expected behavior

No error

### Nvim version (nvim -v)

NVIM v0.11.0-dev-1186

### Vim (not Nvim) behaves the same?

NA

### Operating system/version

macOS 14.6.1

### Terminal name/version

ghostty

### $TERM environment variable

xterm-ghostty

### Installation

Source
Repository: neovim
Issue: corrupted unsorted chunks
Labels: bug,needs:repro,treesitter

### Problem

neovim crashed with
```corrupted unsorted chunks```
have this problem since couple of weeks ago
I open issue here because I assume that such a glibc error should not be invoked by any plugins.
If I'm wrong,please tell me,I'll close it.

### Steps to reproduce
place this into init.lua
```lua
local plugins_path = vim.fn.stdpath("data") .. "/lazy"

local function boot(name, url)
	local package_path = plugins_path .. "/" .. name
	if not vim.uv.fs_stat(package_path) then
		vim.fn.system({
			"git",
			"clone",
			"--filter=blob:none",
			"--single-branch",
			url,
			package_path,
		})
	end
	vim.opt.runtimepath:prepend(package_path)
end

boot("heirline.nvim", "https://github.com/rebelot/heirline.nvim.git")
boot("noice.nvim", "https://github.com/folke/noice.nvim.git")
boot("orgmode", "https://github.com/nvim-orgmode/orgmode.git")
boot("nui.nvim", "https://github.com/MunifTanjim/nui.nvim")

vim.api.nvim_create_autocmd("VimEnter", {
	callback = function()
		require("noice").setup()
	end,
})

require("orgmode").setup()
require("heirline").setup({
	---@diagnostic disable-next-line: missing-fields
	statusline = {
		{
			{
				provider = function()
					require("orgmode.api").load()
				end,
			},
		},
	},
})
```
just run `nvim --clean -u init.lua` with 0.10.2 version,
It will download some grammar files and then crash
next time it will crash if you run `nvim --clean -u init.lua` with nightly/stable.
[backtrace.txt](https://github.com/user-attachments/files/17808666/backtrace.txt)

### Expected behavior

no crash

### Nvim version (nvim -v)

󰯉 nvim -v
NVIM v0.11.0-dev
Build type: Debug
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

### Vim (not Nvim) behaves the same?

no

### Operating system/version

nixos 25.05.20241115.5e4fbfb (Warbler)

### Terminal name/version

kitty 0.37.0

### $TERM environment variable

tmux-256color

### Installation

install from neovim-nightly-overlay
Repository: langchain
Issue:  According to the official example, when creating a knowledge graph using the local large model glm-4-9b-chat, the generated nodes and relationships in the graph are empty.
Labels: 🤖:bug

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

 code：
from langchain_core.prompts import PromptTemplate
from langchain_openai import ChatOpenAI
from langchain.schema import HumanMessage
import os
from langchain_experimental.graph_transformers import LLMGraphTransformer
from langchain_core.documents import Document

from langchain_community.graphs import Neo4jGraph
# 初始化模型
llm = ChatOpenAI(
    streaming=True,
    verbose=True,
    openai_api_key="none",  # 根据实际情况配置
    openai_api_base="http://192.168.3.188:8080/v1",  # 根据实际情况配置
    model_name="glm-4-9b-chat",
)
os.environ["NEO4J_URI"] = "bolt://192.168.3.188:7687"
os.environ["NEO4J_USERNAME"] = "neo4j"
os.environ["NEO4J_PASSWORD"] = "123456"

graph = Neo4jGraph()
llm_transformer = LLMGraphTransformer(llm=llm)
from langchain_core.documents import Document

text = """
Marie Curie, born in 1867, was a Polish and naturalised-French physicist and chemist who conducted pioneering research on radioactivity.
She was the first woman to win a Nobel Prize, the first person to win a Nobel Prize twice, and the only person to win a Nobel Prize in two scientific fields.
Her husband, Pierre Curie, was a co-winner of her first Nobel Prize, making them the first-ever married couple to win the Nobel Prize and launching the Curie family legacy of five Nobel Prizes.
She was, in 1906, the first woman to become a professor at the University of Paris.
"""
documents = [Document(page_content=text)]
graph_documents = llm_transformer.convert_to_graph_documents(documents)
print(f"Nodes:{graph_documents[0].nodes}")
print(f"Relationships:{graph_documents[0].relationships}")

response：
Nodes:[]
Relationships:[]

### Error Message and Stack Trace (if applicable)

1

### Description

help me！ According to the official example, when creating a knowledge graph using the local large model glm-4-9b-chat, the generated nodes and relationships in the graph are empty.

### System Info

11
Repository: PowerToys
Issue: v0.84.0 or newer | Broken AltGr default behavior by Keyboard Manager
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Install v0.84.0 or newer
2. Enable keyboard manager
3. Add "ctrl+e" to "ctrl+f4" mapping
4. Hit "rightAlt+e" - it will type "ę" by default (using polish programmers keyboard)
5. Hit "ctrl+e", then "rightAlt+e" - the "rightAlt+e" doesn't work until you restart keyboard maanger

### ✔️ Expected Behavior

The default behavior of "rightAlt+e" still works after using "ctrl+e" mapping

### ❌ Actual Behavior

After hitting "ctrl+e" coming from keyboard manager mapping, the default behavior of "rightAlt+e" doesn't take effect until you restart the keyboard manager.
I guess it's related to:
> Fixed issue causing stuck Ctrl key when shortcuts contain AltGr key.
mentioned in version release highlights.

### Other Software

It happens in entire system. I need to stay in powertoys@v0.83.0, because the problem doesn't appear there.
Repository: deno
Issue: Add support for `client_cert_chain_and_key` for all file fetching
Labels: suggestion,tls

## What
I'd like to bounce around the idea of accepting command line arguments (for any `deno` logic that deals with the network) for `client_cert_chain_and_key ` in `CreateHttpClientOptions`. 
## Where
- Implement for usage in `CreateHttpClientOptions`.
- Implemented as a top level flag for `deno` that feeds into the logic for `deno run`.
## How
- Ideally a `--client-cert` and `--client-key` command line argument.
- Maybe even environment variables if the callee cannot control the program arguments?
## Why
I have an odd setup where I have a self-signed client certificate + key with an unknown issuer. I want to use the file import functionality (e.g `import { foo } from 'https://my.own.server/foo.ts'` with a server that I control that has a odd TLS scheme outside of my control.

I am comfortable using `--unsafely-ignore-certificate-errors` to get past that, but in my brief attempt I could not get the underlying hyper http machinery to accept my crudely hacked in client cert and key (instantiated at `http_util.rs`'s `HttpClientProvider::new`. I was however able to configure the TLS connector to accept my certificate and key in a standalone program, and I've (mostly) verified that the TLS configurations are the same there and in `demo`. (e.g alpn negotiation, underlying crypto module (ring), verifier functionality and `supported_verify_schemes`.

You can take a look at the demo program [here](https://gist.github.com/haze/8cdbdacbe7b2023baf424e83cea2a34c).
Repository: next.js
Issue: Statically generated dynamic route pages return 404 after manual revalidation
Labels: bug

### Link to the code that reproduces this issue

https://github.com/mstruckus/next-dynamic-path-revalidation-issue

### To Reproduce

1. Build and start the application.
    - `npm run build`
    - `npm run start`
2. Open in browser `http://localhost:3000/item/3`. See that page is loaded as expected.
3. Manually revalidate the page by opening in browser `http://localhost:3000/api/revalidate?path=/item/3`.
4. Open again in browser `http://localhost:3000/item/3`. The page does not exist anymore, 404 response is returned, which is not expected.

### Current vs. Expected behavior

Current behavior - manually revalidated page returns 404.
Expected behavior - page loads successfully after manual revalidation.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020
  Available memory (MB): 32768
  Available CPU cores: 12
Binaries:
  Node: 20.17.0
  npm: 10.9.0
  Yarn: 1.22.21
  pnpm: 9.6.0
Relevant Packages:
  next: 15.0.4-canary.17 // Latest available version is detected (15.0.4-canary.17).
  eslint-config-next: 14.2.17
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.3
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next build (local), next start (local), Other (Deployed)

### Additional context

I tested my reproduction on other Next.js versions including v15.0.3 and v14.2.18, the issue is reproducible there too.
Repository: PowerToys
Issue: Keyboard Manager not working properly after update to v0.86.0
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Run PowerToys as administrator
2. Go to Input / Output > Keyboard Manager
3. Turn on toggle for Enable Keyboard Manager
4. Click on Remap a key
5. Select: F10
6. To send: Disable
7. Click OK 
![Image](https://github.com/user-attachments/assets/05ca8e64-ee98-4a23-a4a7-678b2d226d23)

### ✔️ Expected Behavior

F10 key disabled
P/S: the key was successfully disabled in the previous version using the above steps

### ❌ Actual Behavior

F10 key is still working

### Other Software

_No response_
Repository: vscode
Issue: Support building the monaco-editor AMD variant
Labels: plan-item