sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: electron
Issue: [Feature Request]: Need a way to blur a webContentsView
Labels: enhancement :sparkles:

### 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 feature request that matches the one I want to file, without success.

### Problem Description

There is currently no way to specifically blur a webContentsView
webContentsView.webContents.focus(); exists but the same is required for blur

### Proposed Solution

Implement webContentsView.webContents.blur()

### Alternatives Considered

There are no ways to handle this currently as far as I know

### Additional Information

The browserWindow seems to have blur and blurWebView so I assume there is already something to blur the "view" specifically, this should just be exposed on the webContents level
Repository: next.js
Issue: next/font does not preload fonts that are used in dynamic imports
Labels: bug,Font (next/font)

### Link to the code that reproduces this issue

https://github.com/BilalJaved15/next-font-dynamic

### To Reproduce

1. Start the application (npm run dev).
2. The component 'A' is rendered on server side but Nunito Sans (next/font) used in it is not preloaded.

### Current vs. Expected behavior

Currently, the font Nunito Sans is not preloaded even though it is rendered on server side, I expected it to be preloaded.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.21
  pnpm: N/A
Relevant Packages:
  next: 14.1.1-canary.37 // There is a newer canary version (15.0.0-canary.43) available, please upgrade! 
  eslint-config-next: 14.2.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.2
Next.js Config:
  output: N/A
```


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

Font (next/font)

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

next dev (local), next start (local), Other (Deployed)

### Additional context

_No response_
Repository: pytorch
Issue: Add pmap to torch.func for Parallel Function Execution
Labels: oncall: distributed,feature,triaged,module: functorch

### 🚀 The feature, motivation and pitch

The torch.func module in PyTorch is a powerful tool that provides various functional features like vmap, grad, and vjp, which are highly useful for vectorizing operations and computing derivatives. However, a critical feature that is currently missing is the ability to execute functions in parallel across multiple devices, such as multiple GPUs.

I propose the addition of a pmap (parallel map) feature to the torch.func module. The pmap feature should enable users to parallelize the execution of a given function over multiple devices, thereby leveraging the full computational power available in distributed systems.

### Alternatives

_No response_

### Additional context

There have been some people asking for the same feature in functorch issues here: https://github.com/pytorch/functorch/issues/1099

Since functorch is deprecated, I also wanted to create an issue here for torch.func.

cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @zou3519 @Chillee @samdow @kshitij12345 @janeyx99 @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @tianyu-l @chauhang
Repository: godot
Issue: Import a large glb file (778MB) which contains 800 models will crash the editor.
Labels: bug,topic:import,crash,topic:3d

### Tested versions

4.2 stable

### System information

macOS 14.5 - forward+ - godot 4.2 stable

### Issue description

Import a large glb file (778MB) which contains 800 models will crash the editor.

### Steps to reproduce

1. Create a new project.
2. Drag and drop the large glb file into editor.

### Minimal reproduction project (MRP)

Here is the glb file
https://drive.google.com/file/d/1f74-29422AmZQJohng74ySdELGJptgSA/view?usp=sharing
Repository: go
Issue: x/text/collate: Compare and CompareString broken in "ka-shifted" collation mode
Labels: NeedsInvestigation

### Go version

go version go1.22.3 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/dave/.cache/go-build'
GOENV='/home/dave/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/dave/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/dave/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3/share/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3/share/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/dave/hack/psl/tools/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1869424909=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

Tried to compare strings with the "shifted" variable weighting option, which you can select with e.g. language tag `en-u-ka-shifted`.

Demo: https://go.dev/play/p/afAOLzqh3Oe

### What did you see happen?

99% of Compare() and CompareString() calls on different strings return 0.

### What did you expect to see?

Comparison results that match the configured collation, or at least a courtesy panic letting me know it's known broken (spoiler alert...)
Repository: tauri
Issue: [bug] v2: Windows' Task View kills Tauri
Labels: type: bug,status: needs triage

### Describe the bug

~~After opening a new window, when Task View (WindowsKey+Tab) is activated before the window is interacted with (e.g. a click), Tauri freezes terminally and needs to be closed.~~

Tauri freezes when Task View (WindowsKey+Tab) is activated before ALL OPEN windows, including "main" have been interacted with.

This is also happens when you interacted with the window, invoked Task View, (everything should be fine up til here) then invoke Task View a second time before interacting with the window again.

Basically Task View is f***ing up Tauri is what I'm saying.

Windows 10 & Windows 11
Tauri Beta.22
Vanilla TS install

### Full `tauri info` output

```text
[✔] Environment
    - OS: Windows 10.0.22621 X64
    ✔ WebView2: 126.0.2592.68
    ✔ MSVC:
        - Visual Studio Build Tools 2022
        - Visual Studio Community 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.5.0
    - pnpm: 8.15.3
    - npm: 9.8.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite
```
Repository: vscode
Issue: Settings editor should have Accessibility TOC entry
Labels: feature-request,settings-editor

Testing #217636

* open settings editor
* make sure TOC is visible
* it has no accessibility entry which IMO it should have

<img width="928" alt="Screenshot 2024-06-25 at 09 56 01" src="https://github.com/user-attachments/assets/61b18a20-7b58-4a3b-ab79-e886b850300f">
Repository: tauri
Issue: [bug] Image is not lazy loaded when having lazy in img loading attribute
Labels: type: bug,status: needs triage

### Describe the bug

Follow up on this https://github.com/tauri-apps/tauri/discussions/9825 as there is no response to it.

### Reproduction

clone repo: https://github.com/zluo01/tauri-lazy-image-load

When run `npm run dev` and open in either chrome or firefox and enable disable cache in console, there should be only subset of image is loaded including when refreshing the page. And when scrolling down, console will show more requests being made.

![Screenshot_20240625_011228](https://github.com/tauri-apps/tauri/assets/12102011/6ed8bd5c-9958-481a-ad00-11a8361dc472)

![Screenshot_20240625_011242](https://github.com/tauri-apps/tauri/assets/12102011/ce18cd6a-c0b1-49e2-b31d-8cba274cd2e7)

However, in tauri, all images are loaded.

![Screenshot_20240625_011715](https://github.com/tauri-apps/tauri/assets/12102011/e27e2174-4d2c-4682-967d-4d13ed726a0a)


### Expected behavior

Images should be lazy loaded when having `loading=lazy` attribute

### Full `tauri info` output

```text
[✔] Environment
    - OS: Fedora 40 X64
    ✔ webkit2gtk-4.0: 2.44.1
    ✔ rsvg2: 2.57.1
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 21.0.0
    - yarn: 1.22.22
    - npm: 10.2.0

[-] Packages
    - tauri [RUST]: 1.6.8
    - tauri-build [RUST]: 1.5.2
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.5.6
    - @tauri-apps/cli [NPM]: 1.5.14

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: vscode
Issue: Background selection expands as adding more text, but find results do not update
Labels: bug,notebook-find

Testing #217640

- Select several lines in the cell, open the find widget and toggle the option `find in selection`
- The results will be displayed in the selection. Suppose there are `n` results.
- Add some text in the selection which would match the find pattern
- The selection background expands when the new text is added
- The bottom-most match is not colored. Only the top `n` results are shown despite there being `n+1` results in the greyed out selection 🐛 

Perhaps what could be done is to remove the find in selection condition as soon as one starts typing in the initial selection

https://github.com/microsoft/vscode/assets/61460952/5db76db7-53e7-4f2d-a33d-5efcb3c1b2ef
Repository: stable-diffusion-webui
Issue: [Bug]: regular crashing on my 3090
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

when running a image generation thecomputer will seem to deactivate or "crash"

### Steps to reproduce the problem

running a generation, often with adetialer extensio

### What should have happened?

continued to produce image without any trouble

### What browsers do you use to access the UI ?

Microsoft Edge

### Sysinfo

i didnt have the sysinfo persay at this time

i have other data though take a look

(i hope the photo go in)
![Screenshot 2024-06-25 013851](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/87583994/aa4f0d4f-082e-4eeb-aa76-3828d484fd42)

the alledged hardware error only happens with this program so maybe incorrect?

![Screenshot 2024-06-24 100116](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/87583994/d6903c07-8076-4eeb-8c12-ab40a1f6b53f)


seeming to cause a system an unexpected system "shutdown"



### Console logs

```Shell
due to the crash style the cmd logs are lost


after regular crash i had done a full resinstall of all things
new windows, new driver, new program
after this it got "better" but still happens
```


### Additional information

i have the newest driver
and i have physically reinstalled it today after much trouble
maybe this will work
Repository: vscode
Issue: Curious highlighting of cells on using `ctrl + click`.
Labels: bug,polish,notebook-layout,notebook-find

Testing #217640

The python script for the following example is as follows:

<details>

```
# %% [markdown]
# ## h2 - 0

# %%
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')
print('cat')

# %% [markdown]
# 

# %% [markdown]
# ### h3 - 0.1

# %%
print('dog')




# %% [markdown]
# #### h4 - 0.1.1

# %%
print('dog')


# %% [markdown]
# ## h2 - 1

# %%
print('dog')


# %% [markdown]
# ### h3 - 1.1

# %%
print('dog')

# %% [markdown]
# ### h3 - 1.2

# %%
print('dog')

# %% [markdown]
# #### h4 - 1.2.1

# %%
print('dog')

# %% [markdown]
# #### h4 - 1.2.2

# %%
print('dog')

# %% [markdown]
# ##### h5 - 1.2.2.1

# %%
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')

# %%
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')
print('dog')

# %% [markdown]
# ##### h5 - 1.2.2.2

# %%
print('dog')

# %%
print('dog')

# %%
print('dog')

# %%
print('dog')

# %% [markdown]
# ## h2 - 3

# %% [markdown]
# ### h3 - 3.1

# %%
print('dog')

# %% [markdown]
# ## h2 - 4

# %% [markdown]
# ### h3 - 4.1

# %%
print('dog')

```
</details>

I clicked on `h2-1` with shift-click, then on `h3-1.1` with shift-click. This selected the cells around the headers but not the headers themselves. I then clicked on the `find in selection` icon in the find widget, which added a yelow background behind the `h3-1.1` header. I am wondering if this is intended?

https://github.com/microsoft/vscode/assets/61460952/3dcf2304-d806-4d52-a4bd-86a3ac0b21b8
Repository: vscode
Issue: There are two stop buttons in inline chat
Labels: under-discussion,inline-chat

Testing: https://github.com/microsoft/vscode/issues/217202

<img width="346" alt="image" src="https://github.com/user-attachments/assets/ce0860ee-c351-4a45-a4b4-58f967c7a8b7">
Repository: flutter
Issue: iOS Crash when using COLR-v1+OT-SVG font and overlay
Labels: platform-ios,tool,engine,t: hot reload,a: typography,has reproducible steps,P2,c: fatal crash,team-ios,triaged-ios,found in release: 3.22,found in release: 3.23

### Steps to reproduce

1. Download Noto Color Emoji font from https://fonts.google.com/noto/specimen/Noto+Color+Emoji
2. Add font to Flutter app as follow

```yaml
    - family: NotoEmoji
      fonts:
      - asset: assets/fonts/NotoColorEmoji-Regular.ttf
        weight: 400
        style: normal
```

3. Display the font in a `Text` widget
4. Insert a full screen overlay with a background color with opacity at %50

PS: it does NOT happen if you set it up with a simple `Stack` widget

### Expected results

Overlay is displayed and Font in background is display with no issues

### Actual results

Once the overlay is display on top of the COLR-v1 font the app crashes (See logs beneath)

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
* thread #11, name = 'io.flutter.1.raster', stop reason = EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=1850 MB)
    frame #0: 0x00000001ed57c234 OTSVG`SVG::GElement::GElement(SVG::Element const*, std::__1::unordered_map<SVG::QualifiedName, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, SVG::QualifiedNameHash, SVG::QualifiedNamePredicate, std::__1::allocator<std::__1::pair<SVG::QualifiedName const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>> const&) + 64
OTSVG`SVG::GElement::GElement:
->  0x1ed57c234 <+64>: stp    q0, q1, [x19, #0x280]
    0x1ed57c238 <+68>: ldr    q0, [x8, #0x20]
    0x1ed57c23c <+72>: str    q0, [x19, #0x2a0]
    0x1ed57c240 <+76>: adrp   x1, 39
Target 0: (Runner) stopped.
Lost connection to device.
the Dart compiler exited unexpectedly.
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.90.0)
[✓] Connected device (4 available)            
[✓] Network resources

• No issues found!

```

</details>
Repository: material-ui
Issue: [system] createTheme() shouldn't have "use client"
Labels: bug 🐛,package: system,ready to take,nextjs

### Steps to reproduce 🕹

Link to live example:

Steps:

1. Create a project with Next.js
2. Add in the layout

```js
import { getInitColorSchemeScript } from '@mui/material/styles';

  return (
    <html lang="en">
      <head>
        {getInitColorSchemeScript()}
      </head>
```

### Current behavior 😯

<img width="585" alt="Screenshot 2023-09-16 at 22 00 32" src="https://github.com/mui/material-ui/assets/3165635/ba4d70e3-100c-4d04-bd60-afc8c9eda914">


### Expected behavior 🤔

It works

### Context 🔦

- mui/material-ui#34905
- https://github.com/mui/material-ui/pull/38967
- https://twitter.com/amanzrx4/status/1742985809316417913

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>


**Search keywords**: 

**Search keywords**:
Repository: vscode
Issue: No autocomplete of settings in the settings preview
Labels: feature-request,config,user-profiles

Testing #217139

![Code_-_Insiders_GBtZYfdQzY](https://github.com/user-attachments/assets/35df7f51-c4cf-435d-8a77-5e130fc18ead)

Would be nice to tweak the settings
Repository: vscode
Issue: Override less specific code action with more specific code action
Labels: bug,editor-code-actions

Testing #217611

I set `"source.fixAll": "always",`. Saving the TS file in the example adds a semi-colon at the end of the second import. I added `"source.fixAll.eslint": "never"` and `"source.fixAll.ts": "never"` into that object. Saving the TS file also added a semi-colon at the end of the second import. 

I think I was expecting that the more specific line would override the less specific one.

https://github.com/microsoft/vscode/assets/61460952/56b9cd37-bee8-4025-b053-28140ec4dde7
Repository: langchain
Issue: E2B DataAnalysisTool() function not working correctly 
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

!pip install --upgrade langchain e2b langchain-community

2. Set up the environment variables for E2B and OpenAI API keys.
3. Run the following python code:

```
from langchain_community.tools import E2BDataAnalysisTool
import os
from langchain.agents import AgentType, initialize_agent
from langchain_openai import ChatOpenAI

os.environ["E2B_API_KEY"] = "<E2B_API_KEY>"
os.environ["OPENAI_API_KEY"] = "<OPENAI_API_KEY>"

def save_artifact(artifact):
    print("New matplotlib chart generated:", artifact.name)
    file = artifact.download()
    basename = os.path.basename(artifact.name)
    with open(f"./charts/{basename}", "wb") as f:
        f.write(file)

e2b_data_analysis_tool = E2BDataAnalysisTool(
    env_vars={"MY_SECRET": "secret_value"},
    on_stdout=lambda stdout: print("stdout:", stdout),
    on_stderr=lambda stderr: print("stderr:", stderr),
    on_artifact=save_artifact,
)
```

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

Error Message

_ImportError: cannot import name 'DataAnalysis' from 'e2b' (c:\Users\sarthak kaushik\OneDrive\Desktop\Test_Project_Python\e2b\myenv\Lib\site-packages\e2b\__init__.py)

The above exception was the direct cause of the following exception:

ImportError: Unable to import e2b, please install with `pip install e2b`_

### Description

When trying to use the _**E2BDataAnalysisTool**_ from the _**langchain_community.tools**_ module, I'm encountering an **ImportError.** The error suggests that the DataAnalysis class cannot be imported from the e2b package.

**Expected Behavior:**
The E2BDataAnalysisTool should initialize without any import errors.

**Additional Context**
I have already installed the e2b package as suggested in the error message, but the issue persists.

**Possible Solution**
It seems that there might be a discrepancy between the expected structure of the e2b package and what's actually installed. Could there be a version mismatch or a change in the package structure that hasn't been reflected in the LangChain community tools?

### System Info

System Information
------------------
> OS:  Windows
> OS Version:  10.0.19045
> Python Version:  3.12.3 

Package Information
-------------------
> langchain_core: 0.2.9
> langchain: 0.2.5
> langchain_community: 0.2.5
> langsmith: 0.1.82
> langchain_openai: 0.1.9
> langchain_text_splitters: 0.2.1
Repository: vscode
Issue: Allow deep-linking of local files to vscode.dev
Labels: feature-request,vscode.dev

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
vscode.dev is great, use it all the time, especially for helping out non-coder folk. It'd be great if I could deep-link a local file so that it opens in vscode.dev. For example, clicking the link `vscode.dev/path=/home/me/documents/myfile.py` should open vscode.dev and auto-open the file on the user's local system called `myfile.py`. I'm not sure if this is already possible, but I couldn't see any way of it working.
Repository: PowerToys
Issue: PowerToys Run 
Labels: Needs-Triage

### Description of the new feature / enhancement

If I have an application already open but minimised and I press ctrl+space and type vscode, it would be nice for it to maximise again instead of opening a new vscode, like how MacOS currently does.

### Scenario when this would be used?

This can be quicker to maximise application again instead of clicking on the taskbar with the mouse trying to find an app amongst other opened apps, and it is quicker than windows+tab if I have lots of applications open and need to switch between multiple apps as quickly as possible 

### Supporting information

MacOS search box has this function