sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: langchain
Issue: DOC: Filter syntax and filter query doc
Labels: 🤖:docs

### URL

https://python.langchain.com/docs/how_to/query_constructing_filters/

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

Filtering results is a core function of any stores. However, the filter syntax in Langchain is very poorly documented.

- The langchain doc itself only has a page that gives an example of the usage of `Comparison` objects, with documenting HOW to use them. (Even funnier, `StructuredQuery` is imported but never used in any of the provided sample code, so it leaves to the readers wondering how it is used)

- The docs do not tell between the difference of `Comparison` objects and translated syntax (the result after using a `Translator` object). In fact even in the issues in the repo (e.g #10537) and various SO answers seem to suggest only the existence of the translated syntax. So which one is best practice? Which one should be used?

- Moreover, the documentation are split between langchain main doc and vector store's own docs. The translated syntax is vectorstore-specific, and the allowed `$...` operators are only listed in the docs of individual vector stores. Therefore it is extremely hard to find any useful information on how to use them.

- Only basic usage of filter query is demonstrated. I'd like to filter with a nested condition, like `A and (B or C)`. **No** langchain code I have searched on the internet has given me any example of a nested filter condition. Therefore I have zero idea how to write this condition, besides plain guessing.

### Idea or request for content:

_No response_
Repository: electron
Issue: Background color on window is not applied when opening
Labels: platform/windows,bug :beetle:,status/confirmed,32-x-y

### Preflight Checklist

- [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [x] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

32.2.1

### What operating system(s) are you using?

Windows

### Operating System Version

Windows 11

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

Setting `backgroundColor` to a window should apply it immediately when opening.

### Actual Behavior

The window first opens with white background and then switches to the color:

![Image](https://github.com/user-attachments/assets/7fe10ecb-76af-432f-838f-352dd3ea88b4)


### Testcase Gist URL

_No response_

### Additional Information

Code:

```js
// Modules to control application life and create native browser window
const { app, BrowserWindow } = require('electron')
const path = require('node:path')

function createWindow () {
  // Create the browser window.
  const mainWindow = new BrowserWindow({
    width: 800,
    height: 600,
    backgroundColor: '#FF0000',
    webPreferences: {
      preload: path.join(__dirname, 'preload.js')
    }
  })

  // and load the index.html of the app.
  mainWindow.loadFile('index.html')

  // Open the DevTools.
  // mainWindow.webContents.openDevTools()
}

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.whenReady().then(() => {
  createWindow()

  app.on('activate', function () {
    // On macOS it's common to re-create a window in the app when the
    // dock icon is clicked and there are no other windows open.
    if (BrowserWindow.getAllWindows().length === 0) createWindow()
  })
})

// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', function () {
  if (process.platform !== 'darwin') app.quit()
})

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
```

//cc @codebytere
Repository: rust
Issue: ICE: not enough bound vars
Labels: I-ICE,E-needs-test,T-compiler,C-bug,S-has-mcve,requires-debug-assertions,F-return_position_impl_trait_in_trait,F-return_type_notation

<!--
ICE: Rustc ./a.rs '' 'thread 'rustc' panicked at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_type_ir/src/binder.rs:320:21: 'Not enough bound vars: '^0.Named(DefId(0:7 ~ a[abce]::IntFactory::stream::'_), "'_") not found in []'', 'thread 'rustc' panicked at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_type_ir/src/binder.rs:320:21: 'Not enough bound vars: '^0.Named(DefId(0:7 ~ a[abce]::IntFactory::stream::'_), "'_") not found in []''
File: /home/gh-matthiaskrgr/tmp/im/a.rs
-->

auto-reduced (treereduce-rust):
````rust
trait IntFactory {
    fn stream(&self) -> impl IntFactory<stream(): Send>;
}


````

original:
````rust
#![feature(return_position_impl_trait_in_trait, return_type_notation)]

trait IntFactory {
    fn stream(&self) -> impl IntFactory<stream(): Send>;
}
trait SendIntFactory: IntFactory<stream(): Send> + Send {}

````

Version information
````
rustc 1.84.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.84.0-dev
LLVM version: 19.1.1

````

Command:
`/home/gh-matthiaskrgr/.rustup/toolchains/local-debug-assertions/bin/rustc `

<!--
query stack:
#0 [explicit_item_bounds] finding item bounds for `IntFactory::stream::{opaque#0}`
#1 [check_well_formed] checking that `IntFactory::stream` is well-formed

-->
@rustbot label +F-return_position_impl_trait_in_trait +F-return_type_notation
Repository: PowerToys
Issue: Pasting from Clipboard history (⊞ + V) crashes apps
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Enable **Keyboard Manager** in PowerToys
2. Open any app
3. Press `⊞ + V` to open **Clipboard history** and paste anything into the application
4. App will crash/close

Same behavior on two machines: one is Windows 10, second is Windows 11, both are Enterprise. Both are running a standard user account, not an administrator account. Only **Keyboard Manager** module is enabled in PowerToys. When **Keyboard Manager** is disabled, the issue doesn't occur. It seems the issue affects any text field: search fields in **explorer.exe** and **Control Panel** are affected too.

Debug log: [PowerToysReport_2024-10-23-12-05-13.zip](https://github.com/user-attachments/files/17488275/PowerToysReport_2024-10-23-12-05-13.zip)

Screen recording: https://github.com/user-attachments/assets/fe1f3b03-ab3f-4c26-8fc7-5bd42cc6c98a

### ✔️ Expected Behavior

Pasting from **Clipboard History** `⊞ + V` shouldn't crash/close applications.

### ❌ Actual Behavior

Pasting from **Clipboard History** `⊞ + V` into any application - crashes/closes it.
Repository: PowerToys
Issue: [WPF] Excessive memory allocation on Windows on ARM64 (Color picker, Run,  FZ Editor ... )
Labels: Issue-Bug,Product-PowerToys Run,FancyZones-Editor,Product-Color Picker,Status-Reproducible

### Microsoft PowerToys version

0.85.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

On Windows ARM64, i see an excessive memory allocation (~800Mb) for the process PowerToys.PowerLauncher.exe (PowerToys.Run):
![Image](https://github.com/user-attachments/assets/ae210567-f0e3-426f-9b91-ee1077f70184)
I cannot see the same behavior on x64:
![Image](https://github.com/user-attachments/assets/a434c234-d15f-43dc-b3d3-4afca49d4551)

I have rebooted, and the behavior is consistent.

### ✔️ Expected Behavior

I don't expect this process to allocate 800MB of memory.

### ❌ Actual Behavior

On Windows on ARM64 , I would expect a similar memory allocation as on x64; about 12MB

### Other Software

_No response_
Repository: ui
Issue: [feat]: add native support for deno 2 as a package manager.
Labels: area: request

### Feature description

Deno 2 can be used as a drop in replacement for node and all package managers so please add support for Deno 2 in the CLI.

Code within `init` and `add` commands test only for pnpm, yarn, npm, and bun so will not currently support deno. There are other issues as well, such as the dependency upon package.json and tsconfig.

React projects can run fine with these constraints so people will slowly start to prefer deno over node, given the increased speed and native support for TypeScript.

see https://docs.deno.com/deploy/tutorials/vite/#step-1%3A-create-a-vite-app for a working example of running React without a package.json or tsconfig file.

### Affected component/components

CLI

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: transformers
Issue: Fast tokenizer for CANINE
Labels: Feature request

### Feature request

I have been using [CANINE](https://arxiv.org/pdf/2103.06874) for my experiments and I see that there does not exist a fast version of the tokenizer for the model. CANINE accepts unicode characters as its inputs, so the tokenizer splits the input into unicode characters. It would be great if a fast version of the tokenizer exists for this!

### Motivation

I have a large dataset (>1 million rows) that I want to tokenize. The CANINE tokenizer tokenizes at around ~1500 tokens/s for 2048 tokens (which is the max sequence length accepted by CANINE) on my machine (i9 13900HX), which would take about 1 hour and 40 minutes. Even while streaming, I feel like the tokenization speed greatly hampers training time (compared to a model such as xlm-roberta-base, another model I am using for my experiments).

If more information is required regarding tokenization time, please do ask, and I shall provide information!

### Your contribution

I am quite familiar with the transformers and tokenizers library. I do not have a huge amount of experience with Rust, but I am eager to learn and would love to contribute!
Repository: flutter
Issue: Flutter Web embed mode not scrolling the hosting page
Labels: platform-web,has reproducible steps,P2,team-web,triaged-web,found in release: 3.24,found in release: 3.27

As reported in other issues, when we embed a flutter view inside another page, either using an iframe or multi-embedding view, the touch scrolling (mainly Android/iOS browsers) is not scrolling the host page

In a recent fix it was mention that this will be a follow-up but I could not find an issue for it:

> Scrolling using the mouse and the touchpad has landed, which was in the MVP of the feature. Touch-based scrolling can be addressed as a follow-up.

_Originally posted by @yjbanov in https://github.com/flutter/flutter/issues/139263#issuecomment-2234803205_

**Expected behavior:**
If a user drags up/down inside a non-scrollable flutter view/widget the host page scrolls.

This is a major blocker to use Flutter view-embedding. 

HTML example:

```html
  <div style="display: flex; flex-direction: column; background-color: #F7F7F7; overflow-y: auto;">
    <header
      style="height: 150px; background-color: rgb(63, 50, 50); color: white; display: flex; align-items: center; justify-content: center;">
      <h2>Main header title</h2>
    </header>
    <div id="flutter-host"></div>
    <footer style="height: 300px; background-color: black; color: white; display: flex; align-items: center; justify-content: center;">
        <p>Some flutter content</p>
    </footer>
  </div>
```
flutter_bootstrap.js
```js
_flutter.loader.load({
  onEntrypointLoaded: async function(engineInitializer) {
    let engine = await engineInitializer.initializeEngine({
      multiViewEnabled: true, // Enables embedded mode.
    });
    window.flutterApp = await engine.runApp();
    
    const hostElement = document.querySelector('#flutter-host');
    if (hostElement) {
        window.viewId = flutterApp.addView({
            hostElement: hostElement,
            viewConstraints: {
                minHeight: 300,
                maxHeight: Infinity,
            }
        });
        console.log("View added");
    }
  }
});
```            

The Flutter app is then a normal flutter app with a fix size (e.g 500px height).

You can see on the attached video, how the touch in the header or footer works, but not inside the flutter-view. At the end of the video, you can also see how the mouse-wheel scroll works regardless of where it is hoovered. 


https://github.com/user-attachments/assets/17d50395-926a-41cd-864b-34864ccb0320
Repository: rust
Issue: unsafe { &mut *x } vs &mut unsafe { *x }
Labels: A-diagnostics,D-terse,A-raw-pointers,C-discussion

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:
```rust
fn main() {
    let y: &mut [bool] = &mut [false; 2];
    let x = unsafe { &mut *(y as *mut [_] as *mut [std::mem::MaybeUninit<_>]) };
    let x = &x[0].write(true);
    println!("{x}");
}
```
which works fine, but if you move the unsafe ever so slightly inwards, like so:
```rust
fn main() {
    let y: &mut [bool] = &mut [false; 2];
    let x = &mut unsafe { *(y as *mut [_] as *mut [std::mem::MaybeUninit<_>]) };
    let x = &x[0].write(true);
    println!("{x}");
}
```
you get this error output:
```
error[[E0161]](https://doc.rust-lang.org/stable/error_codes/E0161.html): cannot move a value of type `[MaybeUninit<bool>]`
 --> src/main.rs:3:18
  |
3 |     let x = &mut unsafe { *(y as *mut [_] as *mut [std::mem::MaybeUninit<_>]) };
  |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the size of `[MaybeUninit<bool>]` cannot be statically determined

error[[E0508]](https://doc.rust-lang.org/stable/error_codes/E0508.html): cannot move out of type `[MaybeUninit<bool>]`, a non-copy slice
 --> src/main.rs:3:27
  |
3 |     let x = &mut unsafe { *(y as *mut [_] as *mut [std::mem::MaybeUninit<_>]) };
  |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |                           |
  |                           cannot move out of here
  |                           move occurs because value has type `[MaybeUninit<bool>]`, which does not implement the `Copy` trait

Some errors have detailed explanations: E0161, E0508.
For more information about an error, try `rustc --explain E0161`.
error: could not compile `playground` (bin "playground") due to 2 previous errors
```

Version tested is 1.82.0 and current nightly on the [playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=33f7e5b440f81df65b2f8168472b8485)
Repository: ollama
Issue: launchctl setenv OLLAMA_HOST "0.0.0.0" does not work in version 0.3.14
Labels: bug

### What is the issue?

launchctl setenv OLLAMA_HOST "0.0.0.0" does not work in version 0.3.14. It still listens to 127.0.0.1

### OS

macOS

### GPU

Apple

### CPU

Apple

### Ollama version

0.3.14
Repository: tauri
Issue: [feat] (AppImage) Offline Build 
Labels: type: feature request,platform: Linux,scope: bundler

### Describe the problem

Building AppImage in a controlled environment (Offline) controlled.

From a security perspective, the CI has no direct internet connection and must get all dependencies from our cached repositories (npm, cargo, etc.). 

We face an issue now with building AppImage since it tries to get some scripts from GitHub.

We would like to build AppImage without the need to depend on remote scripts in Github. 

### Describe the solution you'd like

Securely build AppImage and I do not depend on scripts from GitHub 

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: go
Issue: proposal: x/crypto/ssh: add support for "webauthn-sk-ecdsa-sha2-nistp256@openssh.com" signature algorithm
Labels: Proposal,Proposal-Crypto

### Proposal Details

OpenSSH has support for a "webauthn-sk-ecdsa-sha2-nistp256@openssh.com" signature algorithm which was added here: https://github.com/openssh/openssh-portable/commit/bb52e70fa5330070ec9a23069c311d9e277bbd6f

The reasoning being that webauthn signatures have a different format to plain FIDO signatures.

I don't believe this is currently supported in x/crypto/ssh.

It would be useful to have this option for FIDO2 webauthn applications.
Repository: storybook
Issue: Revert disabling angular stories
Labels: angular,build

Revert this commit:
https://github.com/storybookjs/storybook/commit/d9972f7e1d76bd41fcae5f0405b27978481aeab9
Repository: rust
Issue: regression: crate compiles much slower with 1.82
Labels: I-compiletime,T-compiler,regression-from-stable-to-stable,C-bug

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

Our project takes much longer to compile with Rust 1.82 compared to previous versions. To reproduce, git clone `https://github.com/LemmyNet/lemmy.git` and run `cargo check` (also happens with build or lint). The problem happens specifically with the crate [lemmy_db_views](https://github.com/LemmyNet/lemmy/tree/main/crates/db_views).

cargo check with 1.82: 6m 19s

cargo check with 1.81: 1m 22s

### Version it worked on

<!--
Provide the most recent version this worked on, for example:

It most recently worked on: Rust 1.47
-->

It most recently worked on:1.81

### Version with regression

<!--
Provide the version you are using that has the regression.
-->

`rustc --version --verbose`:
```
cargo 1.82.0 (8f40fc59f 2024-08-21)
release: 1.82.0
commit-hash: 8f40fc59fb0c8df91c97405785197f3c630304ea
commit-date: 2024-08-21
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Manjaro 24.1.1 (Xahea) [64-bit]
```

@rustbot modify labels: +regression-from-stable-to-1.82 -regression-untriaged
Repository: PowerToys
Issue: New Feature: Grid
Labels: Issue-Docs,Needs-Triage

### Provide a description of requested docs changes

I would like to know if it is possible to create an option to display a grid on the screen.

Reason: Field alignment. I work with some tools that I need to position fields and I would like to leave them aligned.
Repository: TypeScript
Issue: [playground] Show transpiled output for JavaScript inputs
Labels: Bug,Website

### Acknowledgement

- [x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

### Comment

Apologies if this is the wrong repository, I could not find one for the playground.

When setting the input language to "JavaScript", the playground does not show the transpiled code on the right. Instead, it shows the input code as-is.

You can test it by setting the target to ES2015 and writing `1 ** 2` in the input file: if the language is set to TypeScript you'll see `Math.pow(1, 2)` on the right ([playground](https://www.typescriptlang.org/play/?target=2&module=1&ts=5.6.3&filetype=ts#code/IwAgVGIEwNxA)), while if the language is set to JavaScript you'll see `1 ** 2` ([playground](https://www.typescriptlang.org/play/?target=2&module=1&ts=5.6.3&filetype=js#code/IwAgVGIEwNxA)).

Is there a way to see the transpiled code?
Repository: next.js
Issue: Missing "Link" Header for Critical Resources in Production in Next.js 15
Labels: bug,Performance

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/next-js-15-d55c3c

### To Reproduce

1. Run the application in development mode (next dev).
2. Check the response headers: the Link header for critical resources (e.g., fonts, styles) is present.
3. Build the application for production (next build and next start) or deploy it to Vercel in preview or production mode.
4. In production, the Link header is missing.

### Current vs. Expected behavior

- Current behavior:
In development mode, the Link header correctly includes critical resources to preload, such as fonts and stylesheets. However, in production or preview (e.g., on Vercel), the Link header is not present, and resources are not preloaded in the same way.

- Expected behavior:
The Link header should also be present in production mode, allowing the browser to preload critical resources and potentially enable optimizations like 103 Early Hints.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32547
  Available CPU cores: 20
Binaries:
  Node: 20.11.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.1 // Latest available version is detected (15.0.1).
  eslint-config-next: 15.0.1
  react: 19.0.0-rc-69d4b800-20241021
  react-dom: 19.0.0-rc-69d4b800-20241021
  typescript: 5.6.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Output (export/standalone), Performance

### Which stage(s) are affected? (Select all that apply)

next build (local), next start (local), Vercel (Deployed)

### Additional context

**The problem also occurs with the default nextjs template, implemented with “npx create-next-app”**

I believe I found the logic that handles critical resources in the Link header in the following file:

https://github.com/vercel/next.js/blob/51d6e76596f42ea51dad6b4bf6fb7817d91a79ec/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js#L5723

The function safelyEmitEarlyPreloads seems to generate the Link header correctly during rendering, but it doesn't appear to be emitted in production. Is there a new option or configuration that needs to be enabled to have these critical resources included in the Link header during production? This would be particularly useful for enabling 103 Early Hints.

Thank you for any insights!
Repository: deno
Issue: How do I vendor jsr std modules with Deno v2
Labels: question

With Deno v1 `deno vendor` command I used to build the complete local copy of the project dependencies, then to run it without having to rely on remote access with `deno run --no-remote` flag.

Trying to vendoring with Deno v2 where `deno vendor` is removed with the following cli command:

`/home/user/.deno/bin/deno install --allow-env --allow-ffi --allow-import --allow-net --allow-read --allow-sys --force --vendor --lock=/home/user/work/djk-sample310/lib/python3.10/site-packages/django_deno/deno/lock.json --entrypoint /home/user/work/djk-sample310/lib/python3.10/site-packages/django_deno/deno/server.ts`

it downloads the dependencies successfully, but either these are incomplete or are not always used, because running with `--no-remote`

`/home/user/.deno/bin/deno run --allow-env --allow-ffi --allow-import --allow-net --allow-read --allow-sys --config=/home/user/work/djk-sample310/lib/python3.10/site-packages/django_deno/deno/deno.json --no-remote /home/user/work/djk-sample310/lib/python3.10/site-packages/django_deno/deno/server.ts --host=127.0.0.1 --port=8099`

produces the following error:


```
error: JSR package manifest for '@std/cli' failed to load. A remote specifier was requested: "https://jsr.io/@std/cli/meta.json", but --no-remote is specified.
    at file:///home/user/work/djk-sample310/lib/python3.10/site-packages/django_deno/deno/server.ts:3:27
```

No matter whether I try to use the latest version:

```
import { parseArgs } from "jsr:@std/cli/parse-args";
```

or fixing the version, in hope it would be used from local cache:

```
import { parseArgs } from "jsr:@std/cli@1.0.6/parse-args";
```