Search Videos

Very useful module, thank you for it!
How can I find videos only? I know that I have to add tbm=vid in GET like a
google.requestOptions = {     qs : {'tbm' : 'vid'} };
But It is not working.

Hi @pokatomnik !
I don't know if you are still interested, but the solution is a little bit silly hahaha
open this file ../node-modules/google/lib/google.js in your app, then change the link in the following line:
var URL = 'https://www.google.%s/search?hl=%s&q=%s&start=%s&sa=N&num=%s&ie=UTF-8&oe=UTF-8&gws_rd=ssl'
Including the type of search that you want to perform in the end of the url like that:
var URL = 'https://www.google.%s/search?hl=%s&q=%s&start=%s&sa=N&num=%s&ie=UTF-8&oe=UTF-8&gws_rd=ssl**&tbm=vid**'
Here are the codes:
For video searches, include: &tbm=vid
For News: &tbm=nws
For Images, Maps and others, I do not know, at least not yet!
Good Luck! :+1:

Thank you, talysl,
I've already solved this same way.
I was looking for more clear way, I did not want to hack this module. But what done is done.

@pokatomnik - you have to close the issue since you opened it.  Please close it when you can to clear up the issues backlog.  Thanks!


Home Assistant Integration

Is there a way to integrate this into Home Assistant? I can't add the repository through HACS?

This would be the long-term desire, but it requires some maturation of the API. From my comment on the Home Assistant PR where I deprecated FluNearYou:

I've started work on https://github.com/bachya/pyoutbreaksnearme, but after examining their unpublished API, I'm not convinced the data is mature enough to be useful... If the data matures, I'll look at a new integration.


Intellisense is slow in remote devcontainer

Environment data

Language Server version: v2022.8.20
OS and version: MacOS 12.5 (local) with Ubuntu 22.04 (remote ssh host)
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9

Dockerfile
FROM mcr.microsoft.com/vscode/devcontainers/python:3.9

RUN pip3 --disable-pip-version-check --no-cache-dir install black isort torch transformers pytorch-lightning && rm -rf /tmp/pip-tmp

devcontainer.json
{
	"name": "my container",
	"build": {
		"context": "..",
		"dockerfile": "Dockerfile"
	},
	// Configure tool-specific properties.
	"customizations": {
		// Configure properties specific to VS Code.
		"vscode": {
			// Set *default* container specific settings.json values on container create.
			"settings": {
				"python.defaultInterpreterPath": "/usr/local/bin/python",
			},
			// Add the IDs of extensions you want installed when the container is created.
			"extensions": [
				"ms-python.python",
				"GitLab.gitlab-workflow",
				"eamodio.gitlens",
				"ms-python.black-formatter"
			]
		}
	},
	"remoteUser": "vscode"
}

Repro Steps

Connect SSH server
Run "Clone repository in Container Volume"
Paste an URL from a git repository with valid .devcontainer/ folder
Wait for devcontainer to build
Use a variable and append . to start autocomplete

Expected behavior
The autocomplete dropdown list shows nearly instant.
Actual behavior
The autocomplete dropdown list needs a 2-5 seconds before it shows. Furthermore, it does not get better with time. Files with more imports suffer much more from longer delays. Huggingface's transformers library introduces the biggest delays. Especially classes like AutoTokenizer.
Logs
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: getSemanticTokens full
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (4ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [BG(1)] getSemanticTokens full at /workspaces/myrepo/experiments/main.py ...
(2750) [BG(1)]   parsing: /workspaces/myrepo/experiments/main.py (4ms)
(2750) [BG(1)]   binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [BG(1)]   parsing: /workspaces/myrepo/src/model/mymodel.py [fs read 1ms] (2ms)
(2750) [BG(1)]   binding: /workspaces/myrepo/src/model/mymodel.py (3ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py [fs read 1ms] (34ms)
[Info  - 7:55:35 PM] (2750) Could not import 'accelerate' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'accelerate.utils' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'smdistributed.modelparallel.torch' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'smdistributed.modelparallel' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750) Could not import 'deepspeed' in file '/usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py'
[Info  - 7:55:35 PM] (2750)   Looking in stubPath '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo/typings'
[Info  - 7:55:35 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:35 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:35 PM] (2750)   Looking in bundled stubs path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve stub package using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/bundled/stubs'
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stdlib path
[Info  - 7:55:35 PM] (2750)   Attempting to resolve using root path '/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib'
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
[Info  - 7:55:35 PM] (2750)   Looking for typeshed third-party path
[Info  - 7:55:35 PM] (2750)   Looking for typeshed stubs path
[Info  - 7:55:35 PM] (2750)   Typeshed path not found
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/transformers/modeling_utils.py (12ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/packaging/__init__.py [fs read 0ms] (1ms)
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/packaging/__init__.py (0ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/packaging/version.py [fs read 0ms] (5ms)
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/packaging/version.py (2ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/transformers/generation_utils.py [fs read 1ms] (29ms)
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/transformers/generation_utils.py (9ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/torch/nn/modules/sparse.py [fs read 0ms] (3ms)
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/torch/nn/modules/sparse.py (1ms)
(2750) [BG(1)]   parsing: /usr/local/lib/python3.9/site-packages/torch/overrides.py [fs read 1ms] (21ms)
(2750) [BG(1)]   binding: /usr/local/lib/python3.9/site-packages/torch/overrides.py (24ms)
(2750) [BG(1)]   parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/_warnings.pyi [fs read 0ms] (1ms)
(2750) [BG(1)]   binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/_warnings.pyi (0ms)
(2750) [BG(1)]   parsing: /workspaces/myrepo/src/mylib.py [fs read 1ms] (2ms)
(2750) [BG(1)]   binding: /workspaces/myrepo/src/mylib.py (1ms)
(2750) [BG(1)] getSemanticTokens full at /workspaces/myrepo/experiments/main.py (1800ms)
(2750) Background analysis message: getDiagnosticsForRange
(2750) Background analysis message: analyze
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py ...
(2750) [BG(1)]   checking: /workspaces/myrepo/experiments/main.py (23ms)
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py (23ms)
(2750) Background analysis message: getSemanticTokens range
(2750) [BG(1)] getSemanticTokens range 0:0 - 37:26 at /workspaces/myrepo/experiments/main.py (4ms)
(2750) Background analysis message: getDiagnosticsForRange
(2750) Background analysis message: resumeAnalysis
(2750) Background analysis message: getDiagnosticsForRange
(2750) Background analysis message: getDiagnosticsForRange
(2750) [FG] parsing: /workspaces/myrepo/src/model/mymodel.py [fs read 0ms] (2ms)
(2750) [FG] binding: /workspaces/myrepo/src/model/mymodel.py (1ms)
(2750) [FG] parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/pathlib.pyi [fs read 0ms] (3ms)
(2750) [FG] binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/pathlib.pyi (1ms)
(2750) [FG] parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/genericpath.pyi [fs read 0ms] (1ms)
(2750) [FG] binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/genericpath.pyi (0ms)
(2750) [FG] parsing: /usr/local/lib/python3.9/site-packages/huggingface_hub/__init__.py [fs read 1ms] (2ms)
(2750) [FG] binding: /usr/local/lib/python3.9/site-packages/huggingface_hub/__init__.py (0ms)
(2750) Background analysis message: getDiagnosticsForRange
(2750) Background analysis message: getDiagnosticsForRange
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: markFilesDirty
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (3ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) Background analysis message: analyze
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py ...
(2750) [BG(1)]   parsing: /workspaces/myrepo/experiments/main.py (3ms)
(2750) [BG(1)]   binding: /workspaces/myrepo/experiments/main.py (2ms)
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (4ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (3ms)
(2750) [FG] completion at /workspaces/myrepo/experiments/main.py:61:9 [found 1135 items] (20ms)
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (3ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (4ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [BG(1)]   checking: /workspaces/myrepo/experiments/main.py (288ms)
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py (294ms)
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: markFilesDirty
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: markFilesDirty
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: markFilesDirty
(2750) Background analysis message: analyze
(2750) [FG] parsing: /workspaces/myrepo/experiments/main.py (5ms)
(2750) [FG] binding: /workspaces/myrepo/experiments/main.py (2ms)
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py ...
(2750) [BG(1)]   parsing: /workspaces/myrepo/experiments/main.py (4ms)
(2750) [BG(1)]   binding: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [BG(1)]   checking: /workspaces/myrepo/experiments/main.py (1ms)
(2750) [BG(1)] analyzing: /workspaces/myrepo/experiments/main.py (6ms)
(2750) Background analysis message: setFileOpened
(2750) Background analysis message: markFilesDirty
(2750) [FG] completion at /workspaces/myrepo/experiments/main.py:61:12 (4ms)
(2750) Background analysis message: setFileOpened
(2750) [FG] completion at /workspaces/myrepo/experiments/main.py:61:13 ...
(2750) [FG]   parsing: /workspaces/myrepo/experiments/main.py (3ms)
(2750) [FG]   binding: /workspaces/myrepo/experiments/main.py (2ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/__init__.py [fs read 1ms] (2ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/__init__.py (0ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py [fs read 1ms] (51ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py (8ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/callback_hook.py [fs read 0ms] (3ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/callback_hook.py (2ms)
(2750) [FG]   parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/warnings.pyi [fs read 0ms] (2ms)
(2750) [FG]   binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/warnings.pyi (1ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/optimizers.py [fs read 0ms] (1ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/optimizers.py (0ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/data_loading.py [fs read 0ms] (4ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/trainer/data_loading.py (0ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/loggers/__init__.py [fs read 0ms] (3ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/loggers/__init__.py (0ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/loggers/logger.py [fs read 0ms] (3ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/loggers/logger.py (1ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/torch/autograd/__init__.py [fs read 0ms] (5ms)
[Info  - 7:55:46 PM] (2750) Could not resolve source for 'torch._C._autograd' in file '/usr/local/lib/python3.9/site-packages/torch/autograd/__init__.py'
[Info  - 7:55:46 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:46 PM] (2750)   Resolved import with file '/usr/local/lib/python3.9/site-packages/torch/__init__.py'
[Info  - 7:55:46 PM] (2750) Could not resolve source for 'torch._C._autograd' in file '/usr/local/lib/python3.9/site-packages/torch/autograd/__init__.py'
[Info  - 7:55:46 PM] (2750)   Looking in root directory of execution environment '/workspaces/myrepo'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/workspaces/myrepo'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/lib-dynload'
[Info  - 7:55:46 PM] (2750)   Looking in python search path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:46 PM] (2750)   Attempting to resolve using root path '/usr/local/lib/python3.9/site-packages'
[Info  - 7:55:46 PM] (2750)   Resolved import with file '/usr/local/lib/python3.9/site-packages/torch/__init__.py'
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/torch/autograd/__init__.py (6ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/torch/autograd/grad_mode.py [fs read 0ms] (1ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/torch/autograd/grad_mode.py (2ms)
(2750) [FG]   parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/contextlib.pyi [fs read 0ms] (2ms)
(2750) [FG]   binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/contextlib.pyi (2ms)
(2750) [FG]   parsing: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/argparse.pyi [fs read 0ms] (4ms)
(2750) [FG]   binding: /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2022.8.20/dist/typeshed-fallback/stdlib/argparse.pyi (3ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/utilities/__init__.py [fs read 0ms] (2ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/utilities/__init__.py (0ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/utilities/parsing.py [fs read 1ms] (6ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/utilities/parsing.py (6ms)
(2750) [FG]   parsing: /usr/local/lib/python3.9/site-packages/pytorch_lightning/core/datamodule.py [fs read 0ms] (2ms)
(2750) [FG]   binding: /usr/local/lib/python3.9/site-packages/pytorch_lightning/core/datamodule.py (1ms)
(2750) [FG] completion at /workspaces/myrepo/experiments/main.py:61:13 [found 240 items] (1866ms)
...

hmm 2-5 seconds is expected for the first request.. are additional completions or onHover calls slow?
do you have code example with the slow huggingface completion?

@cpoptic
can you provide some details on your remote setup?

Closing old issue. If this is still a problem, please reopen with the information requested. thanks


LANG-1695: NumberUtils::isParseable does not recognise numbers ending in dot

LANG-1695 allowed for a number (positive or negative) that has only one decimal point and it is at the end of the input, is treated as a valid number

Codecov Report

Merging #1071 (75393a3) into master (f4665d0) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #1071      +/-   ##
============================================
- Coverage     92.07%   92.07%   -0.01%
  Complexity     7501     7501
============================================
  Files           194      194
  Lines         15743    15741       -2
  Branches       2902     2901       -1
============================================
- Hits          14496    14493       -3
  Misses          674      674
- Partials        573      574       +1

Impacted Files
Coverage Δ

...ava/org/apache/commons/lang3/math/NumberUtils.java
94.77% <0.00%> (-0.25%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@orionlibs
Thank you for the PR. Would you please reply in the Jira ticket to the comment https://issues.apache.org/jira/browse/LANG-1695?focusedCommentId=17709278&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17709278
We really need to make sure we are not creating trouble for ourselves ;-)

@garydgregory I am new to open source contribution and a week ago I started with Apache. I applied for a JIRA account, but I was denied one (with no reason given). So, I cannot login to JIRA

@garydgregory also there are many many open tickets in JIRA for many projects that have actually been completed, but they are still open, with no assignees or comments or anything.

@garydgregory I am new to open source contribution and a week ago I started with Apache. I applied for a JIRA account, but I was denied one (with no reason given). So, I cannot login to JIRA. Here is the email from apache: We regret to inform you that, upon reviewing your request for a new Jira account connected with The Apache Software Foundation, the commons project has chosen to deny the request. We therefore will not create the Jira account.
The following reason was given: No reason given.
If you wish to appeal this decision, you may do so either directly with the commons project, or by contacting the ASF Infrastructure team at<EMAIL_ADDRESS>
What user name and real name did you use in the application? I'll see if I can find the application and rejection in the archives.

What user name and real name did you use in the application? I'll see if I can find the application and rejection in the archives.

@garydgregory I used this page
https://selfserve.apache.org/jira-account.html
and the info I entered was:
email address =<EMAIL_ADDRESS>username = dimitrios.efthymiou
real public name = Dimitrios Efthymiou
tell us the intent for this account = I don't need the account now, but I don't know when I will. It is like when you join a company. They give you access to some basic services. (This was probably the reason, but I didn't know then that I needed access to JIRA in order to update the tickets I worked on. I worked on a few tickets that were unassigned and did not have PR links in them. With a JIRA account I can assign myself to the tickets I work on and I can add my PR links in there. I guess that was the reason they rejected me)

@garydgregory I am new to open source contribution and a week ago I started with Apache. I applied for a JIRA account, but I was denied one (with no reason given). So, I cannot login to JIRA. Here is the email from apache: We regret to inform you that, upon reviewing your request for a new Jira account connected with The Apache Software Foundation, the commons project has chosen to deny the request. We therefore will not create the Jira account.
The following reason was given: No reason given.
If you wish to appeal this decision, you may do so either directly with the commons project, or by contacting the ASF Infrastructure team at<EMAIL_ADDRESS>
@orionlibs
Please apply again for a Jira account, I'll watch for it.

thank you Gary. I just registered again for JIRA with the
email = @.***
username = dimitrios.efthymiou
On Mon, 3 Jul 2023 at 01:40, Gary Gregory @.***> wrote:

@garydgregory https://github.com/garydgregory I am new to open source
contribution and a week ago I started with Apache. I applied for a JIRA
account, but I was denied one (with no reason given). So, I cannot login to
JIRA. Here is the email from apache: We regret to inform you that, upon
reviewing your request for a new Jira account connected with The Apache
Software Foundation, the commons project has chosen to deny the request. We
therefore will not create the Jira account.
The following reason was given: No reason given.
If you wish to appeal this decision, you may do so either directly with
the commons project, or by contacting the ASF Infrastructure team at:
@.***
@orionlibs https://github.com/orionlibs
Please apply again for a Jira account, I'll watch for it.
—
Reply to this email directly, view it on GitHub
https://github.com/apache/commons-lang/pull/1071#issuecomment-1617054177,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGQOMN5ITPI66OJCP5XUBTXOIIIVANCNFSM6AAAAAAZZBH2WU
.
You are receiving this because you were mentioned.Message ID:
@.***>

To make things more complicated, in the French locale a non-breaking space can be used to separate some items. I can't recall the details now but it's yet another thing to lookout for.

The more I think about this, the more I'm convinced we should not account for localization. This method is not for the purpose of determining whether a string is plausibly a number. Its purpose is to return true or false depending on whether the string can be parsed by one of the java.lang.Number classes. Those classes don't consider localization, so this one shouldn't either.

@elharo
I agree with you on the purpose of the API.
I'd like to revisit the implementation though: Why are we half-baked-with-bugs parsing the input instead of just try-catching what we claim is input that will or not throw an exception when we a user actually calls on the number APIs?

One purpose of this method is precisely to avoid using exceptions for flow control.

this PR is still open after half a year


Add Ability to Customize rel and target Attributes in Link Elements, with blockComponentsMapper Support

Summary:
Currently, all links in my Notion-rendered pages are automatically set with rel="noreferrer" and target="_blank", and I cannot customize this behavior. This affects both internal and external links, limiting control over SEO, tracking, security, and user experience. I suggest allowing customization of both the rel and target attributes, along with adding support to customize link elements using the blockComponentsMapper feature, similar to how image components are mapped.
Problem:

Internal Links:

The noreferrer attribute prevents referrer information from being passed to internal pages, affecting site analytics and tracking. Additionally, the fixed target="_blank" attribute forces all internal links to open in new tabs, which negatively impacts user experience by creating unnecessary tabs.

External Links:

Without the ability to add noopener, external links that open in new tabs are vulnerable to tabnabbing attacks. Also, not all external links should open in new tabs, and being locked into target="_blank" reduces flexibility.

Proposed Solution:

Allow Customization of rel and target Attributes:

Users should be able to control these attributes for both internal and external links. For example:
For internal links, allow customization of whether they open in the same tab (target="_self") or a new tab (target="_blank") and provide the option to remove noreferrer.
For external links, allow applying noopener noreferrer for security, and also allow control over whether they open in a new tab or the same window.

Custom Link Mapping Using blockComponentsMapper:

Provide a way to customize the behavior of link elements, similar to how image blocks are handled. This could be achieved by adding a mapper for links in the blockComponentsMapper.

Example Implementation:
<Render
  blocks={blocks}
  simpleTitles
  classNames
  blockComponentsMapper={{
    image: ImageBlock,
    link: LinkBlock,  // Custom link handling
  }}
/>

Desired Link Behavior:
Internal Link (same tab)
External Link (new tab)

Benefits:

Improved SEO and Analytics: Allowing referrer data to be passed for internal links will improve tracking and analytics for user journeys.
Enhanced Security: Adding noopener to external links will prevent tabnabbing attacks, ensuring that links opening in new tabs are secure.
Improved User Experience: Providing control over whether internal links open in the same tab will reduce tab clutter and create a smoother browsing experience for users.
Customization: Developers can fully control how links behave by customizing them through the blockComponentsMapper, similar to how images are handled.

Steps to Reproduce:

Add links to Notion-rendered pages, which are currently automatically set with target="_blank" and rel="noreferrer".
Observe that there is no way to customize these attributes or control whether links open in a new tab.
Users cannot customize the link rendering behavior, unlike image blocks.

I just had an idea, instead of customizing the links in general, it would be much better if we could customize the internal and external links separately, something like:
<Render
  blocks={blocks}
  simpleTitles
  classNames
  blockComponentsMapper={{
    image: ImageBlock,
    internal_link: InternalLinkBlock,  // Custom internal link handling
    external_link: ExternalLinkBlok, // Custom external link handling
  }}
/>

Okay, since you seems to be offline, I decided to "try" adding this feature because I really need, what I did was adding a new property to the Render component called linkAttributes. This property is a function that receives one argument (the link) and return an object with the respective target and rel attributes.
Something like that:
<Render
    blocks={blocks}
    blockComponentsMapper={myMapper}
    emptyBlocks
    classNames
    useStyles
    linkAttributes={(url) => {
      console.log({ url })
      return {
        target: 'my custom target',
        rel: 'my custom rel'
      }
    }}
/>
`

I will push the merge request, hope you like it and also hope it helps the other ones that love you librarylike me! ❤

Okay, I just decided to install my pull request version on my project and move to prod! It's working fine!
Heres an example: https://nublson.com/blog/how-to-create-a-daily-routine-that-boosts-productivity-and-well-being

Hi! im really sorry for the inactivity. Since september im on vacation and a lot of stuff and dont have much time for personal code things. Tomorrow i'll review your PR and publish a final version.
Really thanks for the issue and PR <3

V3.11.4 is published, thanks ❤


made navigation menu visible on smaller screens

Pull Request Format
PR Title
menu-icon is not working
Issue #203  : [BUG] menu-icon is not working solved
Type of PR

Add X in the box to specify the improvement type.
[X] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): ___________

Description
This pull request aims to fix a bug in which the menu icon (navigation pane) wasn't working.
Screenshots / Videos (if applicable)
Before:

the navigation menu wasn't displaying any options earlier leading to users not being able to interact with any of the options on navigation bar.

After:

the options are now visible increasing user interaction and fixing the bug.

Checklist

Add X in the box to specify.
[X] I have performed a self-review of my code.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional Context
the change was initially a little tough to find but through enough testing I realized that the position attribute was set wrong.
Thank you for reviewing my pull request!

@Riyachauhan11 I haven't noticed any improvements so far.

@swaraj-das I have fixed the bug with the visibility of navigation menu not working on smaller screens (tablet, phone and such). I have shown the improvement through videos below.
Before:
https://github.com/user-attachments/assets/2ff8854c-0852-4d62-a0ab-6615b1a6bfa2
After:
https://github.com/user-attachments/assets/fe79e46e-600a-42a2-83b9-5f36228abd08

@swaraj-das I have fixed the bug with the visibility of navigation menu not working on smaller screens (tablet, phone and such). I have shown the improvement through videos below.
Before: https://github.com/user-attachments/assets/2ff8854c-0852-4d62-a0ab-6615b1a6bfa2
After: https://github.com/user-attachments/assets/fe79e46e-600a-42a2-83b9-5f36228abd08

I checked it from the preview deploy link that no hamburger is coming for smaller screen sizes.


Decide machine type and disk size for VMs

Goal
We need to provide enough disk and RAM size for containers and logs.
Proposal
After running the honeypot for a few days

Maybe it's safe enough to have the following settings

Machine type: e2-medium
RAM: 4 GiB (default for e2-medium)
Disk size: 200 GiB for logger VM, 20 GiB for the rest
Disk type: pd-balanced
(provides relevantly good read & write performance with affordable price)

Monthly cost:

gateway VM, sacrificial VM: US$34
logger VM: US$56
total: US$124

Max values after having run the VMs for a month:
Logger VM:

max disk usage: 19.2 GiB
max RAM usage: 1.82 GiB

Gateway VM:

max disk usage: 5.95 GiB
max RAM usage: 1.2 GiB

Sacrificial VM:

max disk usage: 6.63 GiB
max RAM usage: 1.6 GiB


Optimizing Addons and Maps

This page would be a top-level explanation of the performance cost associated with various sub-systems. It will be tricky as I would prefer to get tested results, and not just hearsay.
With that said, I think we could begin with a list of "best practices" as understood by the experienced members of the community.
A few things worth covering:

What is the performance cost of each subsystem? (entities vs blocks vs items vs particles)
What is a reasonable cap on texture resolution?
What is a reasonable cap on bones-per-entity
How do dummy entities without RP definition compare against proper entities?
What is the performance of Tags Vs. scoreboards?
How many commands should you include ontick?
How to write slow-clocks in tick.json to reduce overhead
What is the performance costs of using ticking areas? Does total chunks matter more than total ticking areas?
Is there any benefit to shortcutting selectors, such as including c=1 first
Is there any performance benefit to compressing sounds?
Are there any particularly heavy entity components, such as AI goals for example?
What is the performance benifit of using texture_list.json?

Probably way more where that came from ^

I can attest only to the efficiency of the biomes and features systems. From my experiences on an iPad Pro (~36 chunk max render distance):
It's challenging to get any biome-specific components to lag generation. Even egregious values for the heightmaps weren't resulting in significant lag. The worse offender was ginormous values for particles storms created by the "climate" component.
Features can more obviously cause lag, but radical values have to be used to result in any noticeable effect on chunk load time. Even hundreds of iterations per chunk of a multi-block feature seem to come at minimal performance cost. Closer to 1,000 iterations, however, and gameplay will be negatively affected.

What is a reasonable cap on texture resolution?

Absolute maximum is 16k, but reasonable max is 4k, since lower end devices might not support bigger textures.

Are there any particularly heavy entity components, such as AI goals for example?

We have noticed pathfinders for flying mobs being really expensive.
Another interesting fact that might be important for people transitioning from Java or Add-On beginners:
For a lot of Java users, extracting commands into individual function files was an important tool to improve performance of command systems. In Bedrock, this is often an anti-pattern or becomes one later in development. That's because you often end up executing a function file on too many entities and therefore too many times. For a lot of cases, this duplicated cost of e.g. executing a scoreboard command outweighs the cost of running an entity selector multiple times.

Entities have the biggest performance impact by far. It seems that the complexity of the model surprisingly has little effect on performance except in extreme cases (many thousands of voxels)
Our cap internally is no more than 2048 in any dimension and even then you can only have one MAYBE two of those. Remember that all textures are atlased and that can often cause issues on things like mobile and switch.
We do not have a cap or guideance on bones per entities. We have not seen any impact on performance.
Dummy entities seem to be exactly as heavy as proper entities with the exception of using any navigation/path finding components.
No guidance on scoreboards
No guidance on command limit
Idk
Total chunks does matter more than number of tickingareas. Dynamic areas are good to use only when necessary. Good practice is to use a ticking area of ONE chunk for your entire map whenever possible. This will mean doing a lot of vertical redstone.
I have not gotten concrete proof but based on what I know about how the game processes selectors, in theory c=1 should optimize things
There is ENORMOUS benefit to compressing sound. While you won’t see this effected in things like FPS or tick lag, it has the BIGGEST effect on whether or not your map will perform on older devices or the switch. The number of sounds and the size both matter. You should aim to stream not all of your sounds but any sounds that are over 500kb or over 1 minute in length as general guidance.
Flying and pathfinding are the biggest
Idk

below are more optimization suggestions from our internal documentation
When making big chains of commands, always stack them vertically in ONE chunk.
Always try to minimize entities loaded at any given time. Try to keep a MAXIMUM of around 30 (not: we do a bad job of sticking to this number, REALLY bad, but we make up for it in other ways) but it varies depending on entity type. Remember, we want this to work on some old phones.
Use recursion with caution. While it is supported, it can cause performance issues if the recursion is too deep.
Try to minimize the number of commands running per tick.
Do not use a /effect or /gamemode command every tick.
Avoid big clones or fills during runtime. If possible, split this in more than one command that runs on different ticks.
NEVER CROSS CHUNK BOUNDARIES WITH REDSTONE EVER
If possible, unload tickingareas when done with them. You need to use /testforblock to see when the device has finished loading/unloading.
Your “spawnchunks” should be a tickingarea. Try to minimize how many chunks you need for this.
Generally it is better to do things in behaviors and functions than commands.
 Avoid them or try to fake them if you can.
Simulation distance should always be 4 unless you ABSOLUTELY CAN’T
Keep block updates to an absolute minimum
Hollow areas are one of the biggest causes of lag. That’s why builders are required to fill in all unused enclosed spaces. This has something to do with lighting calculations.
Redstone dust causes lag (not as bad as java). Keep dust to a minimum.
It is almost always better to do the alternative that doesn’t use actual redstone
Clean up excess flowing liquids
I can’t think of a good reason to have a sound file longer than 3 minutes
Never rely on bugs. Ever. Future-proof your content to the best of your ability.
Need a randomizer? Use the random argument of scoreboard players or MoLang

Maps with a lot of command blocks produces more much lag than using a lot functions.

Not directly performance related, but the maximum number of textures you should use is around 3000. When you get near 3300, you will start to see purple UI tiles and game crashes on Windows 10. The maximum number of individual textures renderdragon can load is 4096. The vanilla game seems to use around 800 textures as of 1.16, but if course that number will increase in the future with new content.

All redstone components, including Command Blocks, should do their best to stay within single subchunks.
Unlike in Java, Redstone won't load neighboring chunks. Also, due to how Bedrock worlds load, the order of loading chunks is also not the same each time (even in a /tickingarea), meaning some chunks may load before or even after others when the world loads up / the player enters the area.
Redstone components across subchunk boundaries can get into a frozen state and may need to be replaced (especially true for Command Blocks being powered directly by a repeater / comparator in another chunk).

If you can use scoreboards rather than tags. At large scales tags cause lag.

Is there any performance benefit to compressing sounds?
Yes/No Compressing audio files will reduce your overall rp pack size however all audio is decompressed into wav by the FMod simple API minecraft uses, before being loaded into ram. So no CPU based performance improvements can be gained from compression.

I'll touch on the subject of lighting in Minecraft.
Lighting is dynamically calculated in Minecraft Bedrock because of this some light-sources have better performance v.s other sources of light.
Light Blocks have the best performance of any light source because they do not render, emit particles, and they have no specific logic tied to them.
All Torches are the least performant sources of light because they emit particles, render and have extra logic connected to check if the block is connected or placed on another block, etc.
Another good alternative to Light Blocks is making a custom block that emits light with no logic added.
The above method ^^^ isn't as performant but can be far more aesthetically pleasing but still have the benefits of improved performance vs other vanilla light sources.
You can further improve performance by having a map always be set to day or night to prevent the sky-light and block-light having to be recalculated.
Here's a simple lighting performance comparison table that should help with deciding what light sources to use in projects for better performance more points = more of a negative impact on performance.
The below results are subjective and are based on my experiences while testing light source performance differences.
Light Blocks: 1 point
RedstoneUpdates: False
AnimtedTexture: False
LightUpdates: True
TickUpdates: False
Particles: False
Renders: False
Lanterns: 4 points
RedstoneUpdates: False
AnimtedTexture: True
LightUpdates: True
TickUpdates: True
Particles: False
Renders: True
(Basic) Custom Blocks: 2 points
RedstoneUpdates: False
AnimtedTexture: False
LightUpdates: True
TickUpdates: False
Particles: False
Renders: True
Red & Brown Mushrooms: 3 points
RedstoneUpdates: False
AnimtedTexture: False
LightUpdates: True
TickUpdates: True
Particles: False
Renders: True
Redstone Lamps: 3 points
RedstoneUpdates: True
AnimtedTexture: False
LightUpdates: True
TickUpdates: False
Particles: False
Renders: True
Glowstone:  4 points
RedstoneUpdates: True
AnimtedTexture: False
LightUpdates: True
TickUpdates: True
Particles: False
Renders: True
Sea Lanterns:  4 points
RedstoneUpdates: False
AnimtedTexture: True
LightUpdates: True
TickUpdates: True
Particles: False
Renders: True
Torches:  4 points
RedstoneUpdates: False
AnimtedTexture: False
LightUpdates: True
TickUpdates: True
Particles: True
Renders: True
Redstone Torches:  5 points
RedstoneUpdates: True
AnimtedTexture: False
LightUpdates: True
TickUpdates: True
Particles: True
Renders: True

I can attest only to the efficiency of the biomes and features systems. From my experiences on an iPad Pro (~36 chunk max render distance):
It's challenging to get any biome-specific components to lag generation. Even egregious values for the heightmaps weren't resulting in significant lag. The worse offender was ginormous values for particles storms created by the "climate" component.
Features can more obviously cause lag, but radical values have to be used to result in any noticeable effect on chunk load time. Even hundreds of iterations per chunk of a multi-block feature seem to come at minimal performance cost. Closer to 1,000 iterations, however, and gameplay will be negatively affected.

Oh. Oh. The game can apparently run hundreds of thousands of iterations of single block features per chunk.

What is the performance cost of each subsystem? (entities vs blocks vs items vs particles)
Glass block are the laggiest block there is.
Suprissingly endrods are about as effecient as sealantern.
Anvils are about as effecient as slabs.
What is a reasonable cap on texture resolution?
So I look at this on the scale of object in the world. and compared it to a block. so a block has 16 pixels on the length/width for a texture,
this is noticable up close, not noticable from far away.
So for other texture it doesnt make sense it go detaileder then 16 pixel per block length.
If you have to, keep it at 128 pixel per block length. any more and a player wont notice any more details on the texture itself.
How many commands should you include ontick?**
I try to keep the amount command execute per second as low as possible. to the point of maybe only 20 commands per second to 100 per second.
most commandblock I place execute only on delay or twice per second, very rarely will I use 20 hertz clocks.
Minecraft can quite easy execute hundereds if not thousands of commands in a single go. but make those system rather only execute when nesscary instead of active system that keep executing every single tick.
With this I have had no trouble having huge amounts of commandblocks or mcfunctions. only resourcepack size seemed to influence tierlisting badly.
For example:
City maker determines your grid location with hundereds of commands, but that is only done when you place the building.
Is there any benefit to shortcutting selectors, such as including c=1 first
Yes, entity filters epsially have to go over the whole list of entities in the world every where to filter out on your parameter, having a count stop enable minecraft to stop the loop as soon as it found its query.
Is there any performance benefit to compressing sounds?
Only for downloading the RP, the decompressed audio is still loaded into memory, unless you are streaming the audio.
Are there any particularly heavy entity components, such as AI goals for example?
Finding the nearest attackble entity. It has been improved but in the early days noticable lag was found if they had to search huge amounts of huge for entities.


Fix from import with multiple sub-packages

I could only test this on Python 2.7, 3.4 and 3.5, but I don't think there's anything too version specific.

flake8 tests should pass


[WIP - do not merge] Fe/estimated time update

Description
A clear and concise description of the features you're adding in this pull request.
Additional context
Add any other context about the problem you're solving.
Metadata

Fixes #[Link to Issue]

Summary by CodeRabbit
New Features:

Added an estimatedTime property to the BridgeQuote interface, providing users with an estimated time for the bridge quote.
Updated the fetchBridgeQuote function to include estimatedTime in the returned object, enhancing the information available to users.
Included estimatedTime in the state object in the state-managed-bridge page, improving the user interface with additional information.
Added a console log statement for estimatedTime for better debugging and tracking.

b3f3e593d893f019846145053c97277ffc623e5d: synapse-interface preview link

Addressed updates in PR


orchestra/testbench ^3.7 requires laravel 5.7

Larastan Version: 0.3.0
--level used:

Description:
Trying to install Larastan on a 5.6 app, and he requirement for testbench 3.7 makes it impossible.

Yes, they do
https://github.com/orchestral/testbench/blob/3.7/composer.json#L21
trying to resolve it...

It was just 2 hours ago!!
https://github.com/nunomaduro/larastan/commit/a85cb4aabe8dfb8bc019ecaf9341fa4077f72248#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R16

@szepeviktor Thanks for the help. @Korri the issue has been fixed in the version v0.3.1. Can you run a quick test?
FYI: The version v0.3 allow people to use Larastan while creating packages for Laravel: https://twitter.com/enunomaduro/status/1047948748272422920.

@szepeviktor Thanks for the help. @Korri the issue has been fixed in the version v0.3.1. Can you run a quick test?
Yes it works now thanks!

It was just 2 hours ago!!
a85cb4a#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R16

Haha yes, quite the timing, I just finised upgrading to 5.6 and was excited to finally be able to install Larastan

Enjoy!

Now it's not compatible with Laravel 5.7:
orchestra/testbench v3.6.5 requires laravel/framework ~5.6.13

And ~5.6.13 does not include 5.7. The solution is to allow orchestra/testbench in either version 3.6 or 3.7 (with is compatible with laravel 5.7). There's already a pull request #180 that can resolve this issue.


Make some modules private to remove pub(crate) occurrences inside module

Excellent, thank you! Can you squash the commits?

@dspicher done


x axis tick labels, log scale and zi.T

All changed are related to plotting.
Add x axis tick labels for plots on the diagonal
Add option to switch between linear and log scale for
contour plots.
Switching to log scale for branin revealed that we
also need to transpose the zi for the contour plots. After the fix
in #167 and seeing branin in log-scale it was obvious we needed to also transpose it.
Before:

After:

Haha! now this finally makes sense :) +1 for merge, except the small comment

Great! Then please merge and squash this bug! :)

🐞 meet 🔨


Dynamic ViewModels

When will you be able to decide whether this can be a committed project, is there any timeline?
I noticed that Model needs to be defined at compile time in order for both server and client projects to utilize data binding. Is there any plan for having a loosely coupled models so that client is not aware of strongly type models and views can be created from dynamic view models?
We are investigating different frameworks for our multi-tenanted web application. The web application, patient case management system, requires data entry of multiple forms and as you can imagine each form can contain 100s of fields. Each tenant can have their own set of forms as well so adding new patient form may have 80 fields/controls for Tenant A and adding new patient for Tenant B may have 50 fields/controls, some of these fields may be common among tenants. Will/Can blazor have the functionality to handle above requirement i.e. only showing relevant controls/fields to relevant tenants and implement two-way data binding using MVVM pattern, if yes, is there any sample project?

When will you be able to decide whether this can be a committed project, is there any timeline?

Nothing to announce yet. In the meantime we continue to make progress on Blazor as an experimental project.

@danroth27 what will be the trigger point or measure for deciding whether the experimental tag gets dropped?  Are you looking to the community to drive development, is there a technical issue or business reason behind the decision?

You can absolutely do dynamic client side view models right now. I'll try to post an example on GitHub when I have a chance.
I think Blazor could benefit from some built in MVVM support such as adding ICommand Command to buttons, and having BlazorComponent implenent INotifyPropertyChanged, but there's nothing stopping anyone from building an MVVM framework on top of what's already there.

+1 for hoping Microsoft will declare the project officially committed asap.
We're ready to embrace this lock stock and barrel the day Microsoft does.

You can absolutely do dynamic client side view models right now. I'll try to post an example on GitHub when I have a chance.
I think Blazor could benefit from some built in MVVM support such as adding ICommand Command to buttons, and having BlazorComponent implenent INotifyPropertyChanged, but there's nothing stopping anyone from building an MVVM framework on top of what's already there.

That's great, please do so when you have a chance.
I'll appreciate if example is as close to real life scenario as possible. Obviously, I don't expect 100+ fields forms but if example can portray two forms each with different 3 or 4 fields with atleast one drop down control for showing look up values from a service/database and same view can dynamically create and display one or the other form with data binding (MVVM) depending on who (user) is logged in. The information about which fields to display for a user can be extracted from a database. Again, I am not expecting a full blown multi tenant example, just sufficient information for people to discern from the sample and replicate it for their scenarios.
Thank you

@legistek - sums up exactly what I am thinking in terms of chicken-and-egg scenario and of course ready to embrace Blazor as soon as possible.

Hey @learner291  let me explain what I am talking about being possible to make sure it's what you're trying to accomplish.
The MVVM pattern revolves around two key concepts in my mind: (1) property binding and change notification, and (2) commands.
Property change notification can be accomplished by having the view model and the view both implement INotifyPropertyChanged. The view model triggers the PropertyChanged event any time a notifiable property is changed in a setter via business logic. The view triggers a PropertyChanged event whenever some property of the View is changed (usually because of user input). Binding is accomplished - loosely speaking - by pulling the initial value from the source at the time of binding, and then having one or both parties subscribe to the PropertyChanged event of the other so they can dynamically update when the other does. (For one-way binding, the View would subscribe to the PropertyChanged event of the view model; for two-way binding, they would both subscribe to each others'.)
In a similar fashion, view properties that correspond to collections can look to see if the incoming collection implements INotifyCollectoinChanged and if so subscribe to it. Think of a list box bound to a list of people. The list of people would be implemented as an ObservableCollection<Person>, and the ItemsSource setter of the ListBox would see that the incoming collection implements INotifyCollectionChanged and so subscribe to the CollectionChanged event and update the ListBox contents any time the collection changes.
As for ICommand, this is even more straightforward. A component (like a button) exposes an ICommand Command property to correspond to a primary action - such as a click. The ViewModel exposes a property of an ICommand type, with the ICommand instance providing a delegate with the code to execute the command. The ICommand on the ViewModel is data-bound to the ICommand Command on the view. When some UI action occurs on the View, the View calls the Execute method of the ICommand'.
Sorry if you already knew all this. Point just being that this is what I'm assuming you want to accomplish, all this is 100% doable in Blazor right now, It can certainly get more complex - the binding mechanisms in WPF, UWP, and Xamarin Forms are all much more sophisticated than just subscribing to PropertyChanged, since they all support data contexts and compound paths - but at the end of the day it's all just based on reflection, interfaces, and events.

Aha. Could it be what you really want is templated components?
https://github.com/aspnet/Blazor/issues/404
Same view model, but different view templates depending on some variable?

I'll review #404 in detail to understand it properly.
If we have same view model, will it not use more bandwidth to download unnecessary fields, for instance if a Triage form has 200 plus fields for Hospital A but 50 for Hospital B, will it still download data for 200 plus fields for Hospital B, even though it requires only 50 fields and all other fields will be null any ways and will not be render?

Wouldn't that be up to the server-side code to not serialize properties that aren't needed? Or in your API request your view model would tell the server what to send back or not?

I believe you are right, I was thinking more like client side model as in Angular but I understand what you are saying and yes server-side code can only send what's needed.
At first glance, it seems that #404 should do the job but without seeing any sample I am not 100% sure.

Interesting discussion! It seems like this has wound up now, and it doesn't represent a specific outstanding work item, so I'll mark as closed. Please feel free to continue the discussion here if you wish though.

@SteveSandersonMS Apologies for hijacking the thread but any chance we can cover off the issue (at the top of the page) as to what will be the trigger point or measure for deciding whether the experimental tag gets dropped? Are you looking to the community to drive development, is there a technical issue or business reason behind the decision?

@SteveSandersonMS I believe the outstanding work item could be defined as specific samples covering the scenarios mentioned above whether it could be done via templated components (#404) or some other way.

Apologies for hijacking the thread but any chance we can cover off the issue (at the top of the page) as to what will be the trigger point or measure for deciding whether the experimental tag gets dropped

Our PM is out for the next 2 weeks so that question might not move forwards much until he's back. But I'm hopeful that we're close to having some kind of answer.

Many thanks for the reply @SteveSandersonMS much appreciated.


Cannot launch 3ds games with custom player utilizing Citra Enhanced.  See comment for error.

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW flg=0x14008001 cmp=org.gamerytb.citra_emu/org.citra.emu.ui.EmulationActivity (has extras) } from ProcessRecord{23dcfc4 11045:com.magneticchen.daijishou/u0a675} (pid=11045, uid=10675) not exported from uid 10738
at android.os.Parcel.createExceptionOrNull(Parcel.java:3023)
at android.os.Parcel.createException(Parcel.java:3007)
at android.os.Parcel.readException(Parcel.java:2990)
at android.os.Parcel.readException(Parcel.java:2932)
at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2791)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1801)
at android.app.ContextImpl.startActivity(ContextImpl.java:1145)
at android.app.ContextImpl.startActivity(ContextImpl.java:1116)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:441)
at com.magneticchen.daijishou.view_models.DaijishouLibraryModel.play$playPlayableItem$lambda$13$lambda$12$playIt(DaijishouLibraryModel.kt:624)
at com.magneticchen.daijishou.view_models.DaijishouLibraryModel.play$playPlayableItem$lambda$13$lambda$12$playItWithRules(DaijishouLibraryModel.kt:676)
at com.magneticchen.daijishou.view_models.DaijishouLibraryModel.play$playPlayableItem(DaijishouLibraryModel.kt:746)
at com.magneticchen.daijishou.view_models.DaijishouLibraryModel.play(DaijishouLibraryModel.kt:762)
at com.magneticchen.daijishou.view_models.DaijishouLibraryModel.play$default(DaijishouLibraryModel.kt:539)
at com.magneticchen.daijishou.nav_fragments.PlatformLibraryListViewNavFragment.onCreateView$lambda$21(PlatformLibraryListViewNavFragment.kt:777)
at com.magneticchen.daijishou.nav_fragments.PlatformLibraryListViewNavFragment.$r8$lambda$ohdwl6z9y-ShlW422Au6axrohpQ(Unknown Source:0)
at com.magneticchen.daijishou.nav_fragments.PlatformLibraryListViewNavFragment$$ExternalSyntheticLambda6.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7892)
at android.widget.TextView.performClick(TextView.java:16220)
at android.widget.CompoundButton.performClick(CompoundButton.java:157)
at android.view.View.performClickInternal(View.java:7869)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:30891)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.wm.ActivityTaskSupervisor.checkStartAnyActivityPermission(ActivityTaskSupervisor.java:1307)
at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1388)
at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:1026)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1942)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1815)

This looks as if Citra Enhanced has the same issue that mainline Citra had before a PR of mine was merged. Given the length of time since the previous Citra Enhanced release, it seems unlikely it will be fixed.

This looks as if Citra Enhanced has the same issue that mainline Citra had before a PR of mine was merged. Given the length of time since the previous Citra Enhanced release, it seems unlikely it will be fixed.

I changed it to MainActivity and was at least able to launch Citra Enhanced when I pick a game in Daijishou.  However, I still have to pick the game within Citra Enhanced.  Is there any fixing it from here?

I changed it to MainActivity and was at least able to launch Citra Enhanced when I pick a game in Daijishou. However, I still have to pick the game within Citra Enhanced. Is there any fixing it from here?

I'm not a core Daijishou developer, but my understanding is that it is not possible to resolve from the Daijishou end.
Strictly speaking, it is possible to modify an apk (Citra Enhanced in this case) to update the AndroidManifest.xml, using software called apktool. However, it's not straightforward and requires aligning and signing the modified apk.

This issue needs to be fixed on Citra's end, not Daijisho. Actually, you may be even able to reproduce the same issue on different frontends. Something similar happens with any official beta or dev version of Dolphin emulator; The first time you select a gamecube game (on any frontend) it will launch Dolphin Emulator and immediately go back to the frontend's game selection screen, so you have to select the game again and it then will launch the game correctly. I've tested this with 3 different frontends on different devices and i get the same results. This issue does not happen on Dolphin forks(MMJR2 and below) though. This needs to be fixed by the emulator's developer.  Closing Issue.


Changes done as suggested

Changes done as suggested.
Fixes #72
Requesting for review.

Sorry for the delay, @postmeback - the changes look good, but it looks like our build pipeline wasn't set up for outside contributors! Give us a little bit longer to get this rolled out.
Thanks for your contribution!


apollo-runtime-kotlin conflicts with apollo-runtime

Hi!
I'm trying to add a KMM module with Apollo to a project that contains other (android) modules that is also using Apollo
The KMM module define
implementation("com.apollographql.apollo:apollo-runtime-kotlin:2.5.2")
And some of the other android modules define
implementation ("com.apollographql.apollo:apollo-android-support:2.5.2")
implementation ("com.apollographql.apollo:apollo-runtime:2.5.2")
implementation("com.apollographql.apollo:apollo-rx2-support:2.5.2")
implementation ("com.apollographql.apollo:apollo-coroutines-support:2.5.2")

Each module compiles fine but when compiling the app it fails due to duplicated classes.
Any guideline on how to fix this?
Execution failed for task ':App:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.apollographql.apollo.ApolloCall found in modules jetified-apollo-runtime-2.5.2 (com.apollographql.apollo:apollo-runtime:2.5.2) and jetified-apollo-runtime-kotlin-jvm-2.5.2 (com.apollographql.apollo:apollo-runtime-kotlin-jvm:2.5.2)
   ...
   ...

Hi, also struggling with this issue. Could you show how to use ShadowJar for this purpose?

Hi @jarmstrong @rasmusandersson5. Apollo Android 3.0.0-alpha01 is out and has a ton of multiplatform additions.
It also has a new com.apollographql.apollo3 package so you can use it together with Apollo Android 2. The API should be close enough to Apollo Android 2 but in case you need it, there's a migration guide there: https://www.apollographql.com/docs/android/v3/migration/3.0/.
Let us know how that works.

Closing as fixes in 3.0.0-alpha01


upgrade(fleet): Plug rudimentary RC client for policies

What does this PR do?
Plug rudimentary RC client for policies while we wait for the CDN
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge

/merge

/merge


Use ffpb to display FFmpeg progress bar

[x] Using latest version as provided on the master branch
[x] Searched for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug
[x] Feature Request
[ ] Question
[ ] Other

Description
I recently discovered ffpb which displays a progress bar for conversion status for FFmpeg. It might be a good idea to use it in spotify-downloader as the progress bar would be helpful in giving some sort of feedback to the user, especially when using spotify-downloader on devices with low processing power (like a Raspberry Pi) where encoding a ~3 min audio file can take minutes.
This will add another dependency in our setup.py though. I am personally okay with another dependency but what does everyone else think?

I like this idea very much and see no problem in adding another dependency for that!

ffpb has two dependencies, sh and tqdm. Part of me says this is way too much for a simple progress bar, but the other part wants a nice looking progress bar.
As a sidenote, maybe we should build our own download function which uses tqdm for download progressbar.

@phcreery. Interesting note on the progress bar. Maybe look into it?

I know it's late, just clearing out old issues.


NO-JIRA: Wait instances are loaded before collapsing panel

Click on panel toggle before data are loaded causing panel is not collapsed
On main the fail looks like:

It can be spotted aslo on PRs:

#61 https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox-ui/runs/6613185257?check_suite_focus=true

@jomarko here is the screenshot of the failure directly from MGDOBR-742.

@jomarko @kelvah do you think that it might be connected with https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox-ui/pull/56.
I have rebase MGDOBR-723 and this test starts failing too.

Yes, it may be related. But in this case, I do not think we can fix the failing test by revetrting PF upgrade. We need somehow stabilize the test, or remove it.

Test fixed as part of https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox-ui/pull/53


Support library consumers adding badges to icons [21]

An icon badge is that little red dot with the number above the icon (like on an iPhone app icon).
This does not mean that the badge will get implemented in DSR, but we would like to allow other teams to implement with DSR components as much as possible it if needed.

Adding features are the responsibility of the consuming product team. Please follow up if any B2C UXE or SLDS decisions need to be made.


Error on NextJS build

Using
export const fontSans = FontSans({
  subsets: ['latin'],
  variable: '--font-sans',
})

on the root layout will throw type error during build
Type error: Type 'OmitWithTag<typeof import("C:/Users/test/projects/nextjs-event-manager/app/layout"), "metadata" | "default" | "config" | "generateStaticParams" | "revalidate" | "dynamic" | "dynamicParams" | ... 6 more ... | "generateViewport", "">' does not satisfy the constraint '{ [x: string]: never; }'.
  Property 'fontSans' is incompatible with index signature.
    Type 'NextFontWithVariable' is not assignable to type 'never'.

   6 |
   7 | // Check that the entry is a valid entry
>  8 | checkFields<Diff<{
     |             ^
   9 |   default: Function
  10 |   config?: {}
  11 |   generateStaticParams?: Function

Removing export will make it success
Temporary fix
const fontSans = FontSans({
  subsets: ['latin'],
  variable: '--font-sans',
})

Refer NextFont gives a type error on Build mode

@ismi-abbas Where are you placing the font export? Which file?

@ismi-abbas Where are you placing the font export? Which file?

At the app/layout.tsx. I've initiated the ui with src folder, then I remove it, configured all the path to be correct, but still encounter problem.
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.ts",
    "css": "app/globals.css",
    "baseColor": "zinc",
    "cssVariables": true,
    "prefix": ""
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}

Yeah you can't export from the layout.tsx file. I usually keep a lib/fonts.ts file where I keep all font exports.