Try to go to definition of site-package

Description
What steps will reproduce the problem?

Try to go to definition of any 3rd party package
Maybe I set incorrect path using PYTHONPATH Manager?
I've set path ".../venv/lib64/python3.7/site-packages". Is it correct?
So, system libraries definition opens fine
Traceback
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
--- Logging error ---
Traceback (most recent call last):
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
--- Logging error ---
Traceback (most recent call last):
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
--- Logging error ---
Traceback (most recent call last):
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
--- Logging error ---
Traceback (most recent call last):
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
--- Logging error ---
Traceback (most recent call last):
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1221, in handle_go_to_definition
    def_range = position['range']
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
    msg = msg % self.args
ValueError: incomplete format
Call stack:
  File "/home/kai/Projects/spyder/4/bin/spyder3", line 10, in <module>
    sys.exit(main())
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/start.py", line 195, in main
    mainwindow.main()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3646, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3529, in run_spyder
    app.exec_()
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/client.py", line 343, in on_msg_received
    handler(resp['result'], req_id)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/providers/document.py", line 198, in process_go_to_definition
    {'params': result})
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/languageserver/plugin.py", line 279, in receive_response
    self.COMPLETION_CLIENT_NAME, req_id, response)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 138, in receive_response
    self.gather_and_send(request_responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 189, in gather_and_send
    response_instance.handle_response(req_type, responses)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 915, in handle_response
    handler(params)
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 1238, in handle_go_to_definition
    "Error when processing go to definition")
  File "/home/kai/Projects/spyder/4/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 946, in log_lsp_handle_errors
    logger.error('%', 1, stack_info=True)
Message: '%'
Arguments: (1,)
Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Must specify two-factor authentication OTP code.', 'documentation_url': 'https://developer.github.com/v3/auth#working-with-two-factor-authentication'}}

Versions

Spyder version: 4.0.0b7
Python version: 3.7.3
Qt version: 5.12.4
PyQt5 version: 5.12.3
Operating System: Linux 4.19.0-6-amd64

Dependencies
cloudpickle >=0.5.0          :  1.2.2 (OK)
pygments >=2.0               :  2.4.2 (OK)
qtconsole >=4.5.5            :  4.5.5 (OK)
nbconvert >=4.0              :  5.6.0 (OK)
sphinx >=0.6.6               :  2.2.0 (OK)
pylint >=0.25                :  2.4.2 (OK)
psutil >=0.3                 :  5.6.3 (OK)
qtawesome >=0.5.7            :  0.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
zmq >=17                     :  18.1.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
numpydoc >=0.6.0             :  0.9.1 (OK)
spyder_kernels >=1.5.0;<2.0.0:  1.6.0 (OK)
qdarkstyle >=2.7             :  2.7 (OK)
atomicwrites >=1.2.0         :  1.3.0 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
watchdog                     :  None (OK)
keyring                      :  None (OK)
pexpect >=4.4.0              :  4.7.0 (OK)
pympler                      :  None (OK)
sympy >=0.7.3                :  None (NOK)
cython >=0.21                :  None (NOK)
IPython >=4.0                :  7.8.0 (OK)
matplotlib >=2.0.0           :  None (NOK)
pandas >=0.13.1              :  None (NOK)
numpy >=1.7                  :  None (NOK)
scipy >=0.17.0               :  None (NOK)
pyls >=0.28.2;<0.29.0        :  0.28.3 (OK)
xdg >=0.26                   :  0.26 (OK)

I've set path ".../venv/lib64/python3.7/site-packages". Is it correct?

No, it's not. Please remove that directory from our PYTHONPATH manager and install Spyder in your virtualenv instead.

This error was fixed in beta7 (although you said you're using that version). So please provide an example that's giving you this error (after removing .../venv/lib64/python3.7/site-packages from our PYTHONPATH manager).

Great thank, i've change entry in PYTHONPATH Manager, but i don't see any changes: the same exception

Please post a simple code example that is generating this problem.

Yes, I have:
def should_use_eventloop(self):
    return True

def patch_worker():
    from celery.worker import worker
    WorkController = worker.WorkController
    WorkController.should_use_eventloop = should_use_eventloop

I'm trying to go to definition of worker

@steff456, please try to reproduce this one on Linux.

A simpler code to generate this error:
from qtpy.QtCore import Qt
Qt.FramelessWindowHint

and trying to go to the definition of FramelessWindowHint.

A simpler code to generate this error:

I can reproduce the error with this example on a linux machine.

Great! Thank a lot!


[SPARK-32187][PYTHON][DOCS] Doc on Python packaging

What changes were proposed in this pull request?
This PR proposes to document PySpark specific packaging guidelines.
Why are the changes needed?
To have a single place for PySpark users, and better documentation.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
cd python/docs
make clean html

Can one of the admins verify this patch?

ok to test

Thank you @fhoering! Will take a look within a couple of days!

Test build #128876 has started for PR 29806 at commit 8b39dbe.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33498/
Test PASSed.

Test build #128877 has started for PR 29806 at commit 05bc660.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33499/
Test PASSed.

Test build #128878 has started for PR 29806 at commit c7c8d54.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33500/
Test PASSed.

Test build #128877 has finished for PR 29806 at commit 05bc660.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/128877/
Test PASSed.

Test build #128878 has finished for PR 29806 at commit c7c8d54.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/128878/
Test PASSed.

Test build #128880 has started for PR 29806 at commit d58eab4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33502/
Test PASSed.

Test build #128880 has finished for PR 29806 at commit d58eab4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/128880/
Test PASSed.

Looks pretty good. I will push some changes into your branches by myself.

OK. I re-pushed some minor changes.

Test build #129036 has started for PR 29806 at commit 804a14f.

Thanks @fhoering for proofreading :-)

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33659/
Test PASSed.

Test build #129036 has finished for PR 29806 at commit 804a14f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129036/
Test PASSed.

@zero323, @srowen, @viirya, @ueshin, would you mind taking a quick look when you guys find some time?

Test build #129063 has started for PR 29806 at commit 9538e1a.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/33684/
Test PASSed.

Test build #129063 has finished for PR 29806 at commit 9538e1a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129063/
Test PASSed.

Would it make sense to cover docker files for K8s here or no?

That would be nice. @fhoering, are you used to K8s? If not, let's file a new JIRA and ask somebody who's used to it. Otherwise, I would just merge after addressing the comments above given that this is the first contribution from a brand new contributor.

It would be nice to have K8s here indeed but I never deployed to K8s. So I will only do the small changes from above and let you  open anther JIRA ticket for someone else to write about K8s

Sure, thats fine. Thanks @fhoering.

Merged to master.
Thanks @fhoering for writing this up, and all for reviewing this!

Thanks


Update documentation for DropdownMenu

Update Zeroheight documentation for Dropdown Menu components. Current documentation reflects the previous structure of the component which has gone through a major overhaul.

[x] Design and high level outline

Steps
Updates to new Code tab (shown as hidden in Zeroheight editor) needed for all three components—DropdownMenu, MenuItem, Dropdown:

[ ] Differences between MUI and SDS
[ ] Link to MUI documentation
[ ] Update prop tables
[ ] Add code to interactive blocks
[ ] Add any additional code examples outside of Default
[ ] Incorporate nuances from the section below into the appropriate place

Specific nuances to document:
SDS table and other components - Each time a table column is shown/hidden a new table object is created.  This causes components within the table to remount.  This can be a problem with DropdownMenu if the menu is supposed to stay open while the columns are hidden/shown because the anchor element also gets recreated.  To resolve this, move the DropdownMenu anchor element outside of the table or use the pendingState and only show/hide the columns when closing the dropdown.

Here's a link to a doc where I started to collect my notes, questions, research, etc:
https://docs.google.com/document/d/1Inp2-taz6H52oEi0Y3bS23va6TLRJfDkZa3cWZD2FZM/edit#

Link to Code tab with documentation and more basic code examples:
https://czi.zeroheight.com/styleguide/s/66099/p/42bdf2-dropdown-menus/b/177008/t/47bb46
Link to Component Recipes tab with more complex examples:
https://czi.zeroheight.com/styleguide/s/66099/p/42bdf2-dropdown-menus/b/263683
@masoudmanson and @tihuan if either (or both) of you could take a look at the code examples and documentation in the links above, that would be so so helpful, whenever you get a chance! I will hopefully be able to snag some time to make updates as needed during HQ week. Tahnks!


chore: Upgrade all devDependencies

Add explicit coffeescript for newer grunt
Bump all outdated grunt plug-ins

@StdGit I updated the packages by running npm i -D grunt-contrib-connect@latest for each, then running npm audit --fix at the end to resolve the remaining issues with the lockfile. I ended up adding an extra commit regenerating the lockfile at the end


Added notebook notebooks/official/model_evaluation/automl_tabular_forecasting_model_evaluation.ipynb

Added notebook notebooks/official/model_evaluation/automl_tabular_forecasting_model_evaluation.ipynb.
This notebook demonstrates how to use the Vertex AI forecasting model evaluation component to evaluate an AutoML tabular forecasting model.

[X] Use the notebook template as a starting point.
[X] Follow the style and grammar rules outlined in the above notebook template.
[ ] Verify the notebook runs successfully in Colab since the automated tests cannot guarantee this even when it passes.
[X] Passes all the required automated checks. You can locally test for formatting and linting with these instructions.
[ ] You have consulted with a tech writer to see if tech writer review is necessary. If so, the notebook has been reviewed by a tech writer, and they have approved it.
[X] This notebook has been added to the CODEOWNERS file under the Official Notebooks section, pointing to the author or the author's team.
[X] The Jupyter notebook cleans up any artifacts it has created (datasets, ML models, endpoints, etc) so as not to eat up unnecessary resources.

Execution test failed. Pipeline failed. I cannot see the exact error in pipeline due to permission issue. Could you please post error here?

automl tabular forecasting already covered by 3 notebooks. Obsolete.


Regarding Secure Boot and Flash encryption

Is the implementation for secure boot and flash encryption available right now or is it work in progress?

You should use unsafe APIs to call into esp-idf-sys, but other than that, it should work. Have not tried it personally though.


Add VA Puget Sound sta3n 663?

https://github.com/zimolzak/instruct-project-etrigger-sql/blob/5f6acb9f603ee2a3e6a09a9314d28a5320f7a859/Fobt.sql#L140

Also need to possibly add them around line 1600 or so, for FOBT result.

Li will add support for this sta3n.


Update SHA for compatibility with latest version of apt module

The puppetlabs-apt module now emits a warning when short fingerprints are used.
This quiets that warning.

Closing due to #347


Suggestion to use Travis CI to run specs

Using vim-flavor it is possible run the Vim specs on Travis CI

Thanks for the suggestion, done in https://github.com/janko-m/vim-test/pull/80.

Great, you can also add the build status to the README

Thanks for the suggestion, but I'm kind of against those badges, I don't think they should be part of the README. I already receive build failures by email, so for me that's all I need :)


feat: use relative path instead of absolute one

Description
Handle containerized environments path generation
Linked Issues
https://github.com/antfu/nuxt-server-fn/issues/10

@antfu the explanation is here https://github.com/antfu/nuxt-server-fn/issues/10 and we can replace the concatenation with join and resolve maybe ?


Git Out of Trouble is in Trouble (Broken Links)

@beardofedu @hollenberry
Very related to #484:
[Set Up Your Environment](/on-demand/git-trouble/01) does not resolve to /git-trouble/git-set-up as well.
Here is a search for all occurrences.
Here is one of the five pages on which the link does not work.
A customer is asking for a fix in this Zendesk ticket. Thanks a lot in advance!

cc @github/services-training
@mwiesen I'm not sure I understand the problem. I tried to replicate based on the instructions in the Zendesk ticket, but wasn't getting broken links. Am I missing something?

OH! Of course, after I comment, I see. I understand now, @mwiesen. I will work on fixing this today.

@brianamarie thanks for the very quick fix! ❤


Fix unexpected errors on cache lookups due to non-msal cache entries

Moves the entity verification before calling toObject which is sometimes causing issues with non-msal cache values. This way msal only creates an entity object for known values.
Also adds missing tests for getters and setters
Fixes #3233

Coverage increased (+3.5%) to 86.063% when pulling 8626ba19ec3fb33bc16b9c62fda914920e3a21e0 on verify-cache-before-object-instantiation into 310ab2c2c11be3765f22daee5f4fafa34369eb0d on dev.


Feature suggestion: show prop removal

Is there a reason for show prop? I mean, couldn't the mount and unmount of the component serve as show toggle? Besides the fact it's easier to manage (no more listen to history or anything like that) what is the point of having the Swal mounted if not showing it? I can't think of any single good reason by now

Because swal-overlay will not be removed even after we close it, it's a side effect.

JFYI I tried with mounting and unmounting it works good, but when unmounting not just swal-overlay sweet-alert also needed to be removed.


chore: add CONTRIBUTING.md

Signed-off-by: Gregory Hill<EMAIL_ADDRESS>

This is a great start. I think we can also draw some wording from here: https://dev.lightning.community/contribute/

Agree, this is a good example - let's expand on this in the future.


Test if this fixes Linux

I added an option that restores the old behavior of 'sys' wrt closing stdin.

This seems to resolve the issue. I think it's a bug in tika though. It seems try to read input from stdin even though you have set a fileList parameter.

Opened a bug upstream: https://issues.apache.org/jira/browse/TIKA-2780

Wow, thanks for debugging, finding the root cause, patching it like a hero, and informing Tim Allison of their strange interprocess communication. Rtika is saved!!


Dezilaromed's Decommission (Part 1)

Some services were disabled due to a scheduled maintenance.
See also: https://forums.themanaworld.org/viewtopic.php?t=21636

During this scheduled maintenance, password resets will be handled manually (and legacy test server will be down, without change to evolved test server).
See details on the forums: https://forums.themanaworld.org/viewtopic.php?t=21636

Resolved: [Azure] Legacy API is back up in a13d65e.

Resolved: [Azure] Legacy API is back up in 274273e after 52 days, 8 hours, 44 minutes.

PS. The test servers for TMW rEvolt and TMW Classic will remain offline for an unforeseen amount of time.


introduce lazy parsing using a tokenizer

This PR enables lazy parsing from consumers of external crates, that cannot use the Parser interface. While it is event-driven, it does not allow for incremental parsing.
This PR introduces the aforementioned capability by moving large parts of the parsing (except for object and array handling, which needs more context) into a tokenizer. As a nice side-effect, it also increases the separation of concerns.
The job of the tokenizer is simple: take an input stream, and once next() (or peek()) is called, take the next non-whitespace character and convert it to a token if possible.
There is one notable other side-effect, due to the very nature of tokenization, when looking at the object key, it will still create the token, even if it is not a string, meaning in case of an error we might create a JsonNumber where not necessary. I think that, due to this being an error case and only being the case in a single instance, this is fine.
Currently Missing

Documentation

Feel free to close the issue if this is a non-goal for the crate. Thank you very much for creating such a promising library!

Thank you for this pull request. I had previously went through an iteration where this approach was used, but I wasn't able to get it to go fast enough. In the end, the only way I was able to get the fastest parsing was to get rid of this style of parsing.
I tried running cargo bench -p benchmarks against the main branch and then against this version, and on my machine, this pull request slows down the benchmarks anywhere from 29%-51%. If you're able to submit a pull request that preserves the speed of the main branch and introduces this feature, I will gladly accept it!
Thank you again for looking into improving this library!

Employing Eq and Hash, as well as switching from an internal iterator in ByteIterator to a combination of offset + slice I was able to remove any speed regressions (at least on my machine)

Sorry for the delay in testing these new changes out. It looks like you figured out what I couldn't when I was trying last time!
I want to do a closer read-through of the changes before merging now that the performance is on-par.
Thank you again for this!

To keep the git history clean with a local mess I created, I ended up using a rebase which tricked github into not noticing this PR is completed. Your commits are still all preserved in the main branch's history, just under different SHAs that on this PR. Oops!
The only changes I ended up making are in this commit: 7ccc58c972072c7c0aa467724cf4d2403233f129. If you have any feedback on the changes I made let me know!
I'm going to hold off on releasing a new version for a little bit (a week or so) in case I get motivated to do anything else to add to the release.
Thank you for contributing!

The changes looked great! Thanks for cleaning up after me 😅 The only comment I have is that peek_char isn't public. I think that is the correct decision, but it makes Array parsing and Object parsing harder.
My thought, which I can add in a follow up PR, would be to add a supplemental peek type that is publicly exposed, like:
fn peek() -> Option<TokenIdent>;

enum TokenIdent {
  Literal,
  Array,
  ArrayEnd,
  String,
  Object,
  Number,
  ObjectEnd,
  Unrecognized
}

This would allow other APIs to implement similar functionality that we currently rely on for Array, but with increased type safty. What do you think?
(API does not return Result, because peeking in a character stream is valid, we just don't know the type of the next thing might be)

sorry for any formatting mistakes and such, I am currently writing this on my phone^^

For writing that on your phone, there's surprisingly few mistakes! :) Making that private was a choice purely because it felt weird to return characters rather than tokens, and it's why I added the Iterator interface. Since it's an iterator, users can use std::iter::Peekable with it. There are downsides to that too -- for example, currently Peekable doesn't allow accessing the inner type even with read-only access, so you couldn't use the offset() function if you wrap it in a Peekable.
Because Peekable isn't super-ergonomic, I would be open to re-exposing peek using something like you proposed. How do you feel about the new type being called PeekedTokenKind -- it's a little verbose, but unless you think you'd use this type in another context than peek, I think the name describes its purpose nicely.
I'd love another pull request if you don't mind. Otherwise, I'll still take this feedback into account!


trained custom SSD-Inception-v2 in tf, how to get it in uff model and deploy on jetson nano

trained custom SSD-Inception-v2 in tf,  the model format is not uff, how to convert this?
get it in uff model and deploy on jetson nano

train a mobilenet or inceptionV2 model using tensorflow 1.13.1 and then follow this repo to convert to UFF
https://github.com/AastaNV/TRT_object_detection
after that I just replace the .uff model at /usr/local/bin/networks/SSD-Mobilenet-v2
make sure to delete the old .uff.1.1.GPU.FP16.engine


upload not work

here's my code
companies.creationView() .fields([ nga.field('name') .validation({ required: true }), nga.field('logo', 'file').uploadInformation({  'fileName': nga.field('name') + '.png', 'url': (baseurl + 'companies/logos'), 'method': 'PUT'}) ]);
butt do I need to put some server-side code?
how can I see the image?
thank you.

@hmendes00: yes, you need server-side code. The file field just send your file data to the server. It doesn't store it anywhere (this is server duty).


WIP Regard query params

[x] Regard params to other routes when “navigating”
[ ] Add handling of eid for equipment parameter @mutaphysis

Watch out. This branch is currently based on feat/ssr-params. As soon as #137 is merged, this PR will be rebased to feat/ssr.


[Improvement] [DHT11] It is possible to get tenths of temperature

For DHT11
While rewriting library for myself I've discovered that there are tenths of degrees Celsius transmitted in low nibble of second temperature byte. It is encoded in BCD, so hex values are in range 00..09.

I'm using this "DHT11" sensor from eBay: https://www.ebay.com/itm/221914097856
Despite specified range 0..50 °C it can measure negative temperatures and have temperature granularity 0.1 °C. Temperature sign is stored in bit 7 of second temperature byte.

are you getting more accuracy than DHT11.read2()  ?
(read2 takes floats)

As you figured it out in another issues,
read2() returns floats but temperature granularity is 1.0, not 0.1.
https://github.com/winlinvip/SimpleDHT/blob/f938823ea9e0eaaa2deee98171097582c953aa33/SimpleDHT.cpp#L180
That's how I've done it:
  // 2nd temperature byte: tenths of temperature in low nibble in BCD.
  Temperature = (float) ((int16_t) Data[2] * 10 + (Data[3] & 0x0F)) / 10;
  // 2nd temperature byte: bit 7 is temperature sign.
  if (Data[3] & 0x80)
    Temperature = -Temperature;

That lines in my "scrapyard" unmaintained repo.


Not opening dir the first time, and skipping to next dir, when using enter.

Given a large corporate Java repo, when I navigate to a directory with the arrow keys and press enter, quite often the directory won't open. It will also move my cursor down one directory. It will also do this when trying to close a directory, in which case it will take me all the way under the directory that I have open, to the next sibling directory. This is very frustrating.
It doesn't happen every time. If I give it time (maybe 2 seconds) to think about it and then hit enter, it usually works.
Why is this happening? It seems like a race condition of sorts.

Depends on how large the directory is.  I routinely use the NERDTree with directories that have 300 - 400 files. There is some lag time, but it's generally not too bad. How large is your project?
Also, make sure that <CR> isn't mapped to anything in the NERDTree buffer.
Sorry for the delayed response... we've had a lot of issues!

Closing due to inactivity.


Add Main Screen

Add the main screen to navigate to different UI templates

Add the main screen to navigate to different UI templates

Can you assign this to me? I will add Main Screen

Add the main screen to navigate to different UI templates

Can you assign this to me? I will add Main Screen

sure


Compilation Error on FreeBSD

$ gmake
  CC   mapper.o
mapper.c:115:18: error: implicit declaration of function 'getline' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        while ( (read = getline(&line, &len, file)) != -1 )
                        ^
1 error generated.
gmake: *** [Makefile:43: mapper.o] Error 1

Fixed with de76fd7323788537861d1ca9672a8ac623fe5b05


Add storage_gb field to task family manifest.yaml

And use it to override TASK_ENVIRONMENT_STORAGE_GB when available.

Oh I missed that auto-merge was enabled and didn't know it would bypass status checks.

https://github.com/METR/vivaria/pull/404

I guess none of our status checks are required. I'll change that.

thank you for the fix! yeah I think I forgot to tick that file when I was selecting what should go in the PR 🤦. and yeah, the auto-merge flow on GH has some annoying rough edges. +1 for having CI tests block merges!


Lore system

Is your feature request related to a problem? Please describe.
A system to deliver the lore to cycle bot users
Describe the solution you'd like
Display the lore to users when they "unlock something", like on first code, send embed with lore, first craft, etc...
Describe alternatives you've considered
None.
Additional context
No.

alright
nice idea
I feel like perhaps a centralized lore command that can be unlocked based on level would be better, however.

alright
nice idea
I feel like perhaps a centralized lore command that can be unlocked based on level would be better, however.

Maybe an embed saying:
you have unlocked the lore for `x`, you can do `&lore x` to view it.

alright
but that's each level up so yeah cool!

@cursorweb should I use discussions for an idea for a new mechanic, I think it would fit better their (since it's just an idea, not a full feature request)

yeah sure that would be nice

jeff lore

okay i've decided to abandon the lore aspect of cycle, there isn't much worldbuilding anyways so the only lore would be the item descriptions. There's no need for a separate command for this.


Adding Elestio as deployment option

Hey team,
I am Kaiwalya, Developer Advocate at Elestio. Elestio has been providing options of fully deploying and managing Agency-OS application as shown here. I think it would be a great idea if we can add it to official readme/documentation here.
🔔 In addition to this, if you are interested we provide partnership opportunities with tools we support by revenue share upon addition of this method in docs. If you would like to collaborate, just shoot me an email at<EMAIL_ADDRESS>:)

Thanks for the suggestion here and adding Agency OS as a option on your website. That said, we're not going to add this as a deployment option to the official AgencyOS documentation.

We do not have any official partnership with Elestio.
There is no mention of the Directus license requirements on the Elestio site. While AgencyOS is under the MIT license, Directus is licensed under BSL1.1.

Are you deploying Directus v10+ for Elestio customers?
If you're seeking an official partnership with Directus and want to become compliant with our license, please reach out to our team.
https://directus.io/demo


Getting EUNSUPPORTEDPROTOCOL error when creating a project (node v10)

Version
4.5.4
Environment info
  System:
    OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (2) x64 AMD EPYC 7232P 8-Core Processor
  Binaries:
    Node: 10.21.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.14.8 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 68.12.0esr
  npmGlobalPackages:
    @vue/cli: 4.5.4

Steps to reproduce
vue create project
these are the settings ->
Vue CLI v4.5.4
? Please pick a preset: Manually select features
? Check the features needed for your project: Choose Vue version, Babel, Router,
Vuex, Linter
? Choose a version of Vue.js that you want to start the project with 3.x
? Use history mode for router? (Requires proper server setup for index fallback
in production) Yes
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In package.json
? Save this as a preset for future projects? (y/N)
What is expected?
Should create a new project.
What is actually happening?
Vue CLI v4.5.4
✨  Creating project in /var/www/html/vueproject/project.
🗃  Initializing git repository...
⚙  Installing CLI plugins. This might take a while...
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:"<EMAIL_ADDRESS>npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-09-09T12_52_41_782Z-debug.log
ERROR  command failed: npm install --loglevel error

This is the log -->
Note: the npm version at line 7 is not concurrent with the version of npm (6.14.8) in my environment.
0 info it worked if it ends with ok
1 warn npm npm does not support Node.js v10.21.0
2 warn npm You should probably upgrade to a newer version of node as we
3 warn npm can't make any promises that npm will work with this version.
4 warn npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, $
5 warn npm You can find the latest version at https://nodejs.org/
6 verbose cli [ '/usr/bin/node',
6 verbose cli   '/usr/bin/npm'
6 verbose cli   'install',
6 verbose cli   '--loglevel',
6 verbose cli   'error' ]
7 info using<EMAIL_ADDRESS>8 info using<EMAIL_ADDRESS>9 verbose npm-session a38ef51317bccdb1
10 silly install runPreinstallTopLevelLifecycles
11 silly preinstall<EMAIL_ADDRESS>12 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>13 silly install loadCurrentTree
14 silly install readLocalPackageData
15 silly install loadIdealTree
16 silly install cloneCurrentTreeToIdealTree
17 silly install loadShrinkwrap
18 silly install loadAllDepsIntoIdealTree
19 http fetch GET 304 https://registry.npmjs.org/@vue%2Fcli-plugin-babel 188ms $
20 silly pacote range manifest for<EMAIL_ADDRESS>fetched in 207ms
21 http fetch GET 304 https://registry.npmjs.org/@vue%2Fcli-plugin-router 235ms$
22 http fetch GET 304 https://registry.npmjs.org/@vue%2Fcli-plugin-vuex 235ms ($
23 silly pacote range manifest for<EMAIL_ADDRESS>fetched in 238$
24 silly pacote range manifest for<EMAIL_ADDRESS>fetched in 240ms
25 http fetch GET 304 https://registry.npmjs.org/@vue%2Fcli-plugin-eslint 241ms$
26 silly pacote range manifest for<EMAIL_ADDRESS>fetched in 244$
27 http fetch GET 304 https://registry.npmjs.org/@vue%2Fcli-service 258ms (from$
28 silly pacote range manifest for<EMAIL_ADDRESS>fetched in 266ms
29 silly saveTree<EMAIL_ADDRESS>30 verbose stack Error: Unsupported URL Type "npm:"<EMAIL_ADDRESS>30 verbose stack     at unsupportedURLType (/usr/lib/nodejs/npm-package-arg/npa$
30 verbose stack     at fromURL (/usr/lib/nodejs/npm-package-arg/npa.js:250:13)
30 verbose stack     at Function.resolve (/usr/lib/nodejs/npm-package-arg/npa.j$
30 verbose stack     at Object.keys.map (/usr/share/npm/lib/install/deps.js:445$
30 verbose stack     at Array.map ()
30 verbose stack     at BB.resolve.then (/usr/share/npm/lib/install/deps.js:444$
30 verbose stack     at tryCatcher (/usr/lib/nodejs/bluebird/js/release/util.js$
30 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/nodejs/blue$
30 verbose stack     at Promise._settlePromise (/usr/lib/nodejs/bluebird/js/rel$
30 verbose stack     at Promise._settlePromiseCtx (/usr/lib/nodejs/bluebird/js/$
30 verbose stack     at Async._drainQueue (/usr/lib/nodejs/bluebird/js/release/$
30 verbose stack     at Async._drainQueues (/usr/lib/nodejs/bluebird/js/release$
30 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (/usr/lib$
30 verbose stack     at runCallback (timers.js:705:18)
30 verbose stack     at tryOnImmediate (timers.js:676:5)
30 verbose stack     at processImmediate (timers.js:658:5)
31 verbose cwd /var/www/html/vueproject/project
32 verbose Linux 4.19.0-10-amd64
33 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--loglevel" "error"
34 verbose node v10.21.0
35 verbose npm  v5.8.0
36 error code EUNSUPPORTEDPROTOCOL

Thanks in advance!

It's like this one: https://github.com/vuejs/vue-cli/issues/5669#issuecomment-656526082
You have multiple node/npm installations and the old one somehow takes higher precedence.


Autocomplete: use the next line indentation for the hot-streak document context updates

Based on @philipp-spiess's idea, discussed in this PR:
We have all this fancy logic here to find out what the indentation is that the next completion is going to be inserted at, but we do already have the exact indentation from the LLM response.
E.g. imagine we have these two lines, the first one is the "regular" completion and the next one the hot-streak:
const foo = fetch(
  'https://example.com',

When we parse the hot-streak, we actually trim the start of the completion so it'll have the content of 'https://example.com', and then we reverse-engineer the whitespace based on the line above.
I’m suggesting we just use the same whitespace as returned from the LLM! That would work for:
When the hot-streak is on the same indentation (since the indentation the LLM generates will match the one VS Code uses when you press enter)
When the hot-streak is indented - The use case you just adde in this PR
When the hot-streak is unindented - Which is not handled at all right now

@valerybugakov is this still relevant?

@beyang, this is a low-priority idea improvement for hot-streak completions extracted from the PR discussion.
We can close this or keep it around since it's marked as P2. cc @philipp-spiess


Fix: DataGrid copying data clears DataGridCells

What does the pull request do?
Attempts to fix #4713
What is the current behavior?
After copy the cells are cleared
What is the updated/expected behavior with this PR?
Cells should keep their values
How was the solution implemented (if it's not obvious)?
switched the disposing order, which will not clear the binding once the binding is disposed
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues
Fixes #4713
Fixes #7767
/cc @maxkatz6

You can test this PR using the following package version. 0.10.999-cibuild0019237-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0019397-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


How to install old version 1.0.4

Hello, when I tried to install the older version, after I downloaded 1.0.4 and downloaded all the dependent repositories in the third-party directory, I got the following error after executing make -j4. The dependency warehouse I downloaded is the latest version, may I ask where the problem is?

When I commented out the error there was a new error.

my OS is 20.04.1-Ubuntu, and I have installed all the required environment dependencies.

Please ask this question at the OpenFHE discourse forum: https://openfhe.discourse.group/ We use issues for bug reports/feature requests.


Add exhaustive testing of vmap autograd composability

Fixes #704
Adds exhaustive testing of vmap(f) where f calls torch.autograd.grad. This caused some issues (#622) because functorch will set enable GradMode
We only allow batching the grad_output argument since everything else will require gradients

Ah I see. That makes a lot of sense and actually saved a lot of xfails since most of the functions with randomness errors (dropout, bernoulli, etc) were coming from the forward pass. Now that we aren't vmapping over the forward invocation, they work. Thanks!

CUDA build failures have been fixed on main, you might want to rebase


feat: La Molina

I must be blonde but I keep having problems with these selectors... Why isn't this one working?

Could you merge this when you have time please?

Merged, Thanks. In future please squash the history and force push to PR branch.

You can squash through the github UI, isn't that simpler?


bot.loadPlugin(autoEat) raises AssertionError [ERR_ASSERTION]: plugin needs to be a function

import {loader as autoEat} from "mineflayer-auto-eat"
bot.loadPlugin(autoEat)
autoEat(bot)

raises AssertionError
AssertionError [ERR_ASSERTION]: plugin needs to be a function

I have known how to fix it, and PR will be submitted soon.
Version info:
mineflayer-auto-eat: 5.0.0

You are not supposed to use the plugin this way, you are supposed to do bot.loadplugin(autoEat) and that's it.

Thanks for your reply. However, I edited my code as
import {loader as autoEat} from "mineflayer-auto-eat"
import {createBot} from "mineflayer";

const botOption = {
    "host": "<IP_ADDRESS>",
    "port": 25565,
    "username": "Test"
}

const bot = createBot(botOption)

bot.once("spawn", () => {
    bot.loadPlugin(autoEat)
});

and re-installed the package mineflayer-auto-eat
Run the code, the error still happened
WORK_DIR\node_modules\minecraft-protocol\src\transforms\framing.js:67
          } else { throw e }
                   ^

AssertionError [ERR_ASSERTION]: plugin needs to be a function
    at EventEmitter.loadPlugin (WORK_DIR\node_modules\mineflayer\lib\plugin_loader.js:16:12)
    at loader (WORK_DIR\node_modules\mineflayer-auto-eat\dist\index.js:5:13)
    at EventEmitter.loadPlugin (WORK_DIR\node_modules\mineflayer\lib\plugin_loader.js:25:7)
    at EventEmitter.<anonymous> (WORK_DIR\test.ts:14:9)
    at Object.onceWrapper (node:events:633:28)
    at EventEmitter.emit (node:events:531:35)
    at Client.<anonymous> (WORK_DIR\node_modules\mineflayer\lib\plugins\game.js:95:9)
    at Client.emit (node:events:531:35)
    at emitPacket (WORK_DIR\node_modules\minecraft-protocol\src\client.js:83:12)
    at FullPacketParser.<anonymous> (WORK_DIR\node_modules\minecraft-protocol\src\client.js:112:9) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

More information:

Minecraft 1.20.1 and 1.20.6
Node.js 20.17.0
mineflayer-auto-eat 5.0.0
mineflayer 4.22.0
npm 10.8.2


Feature/dependency update

dependency updates
This was branched off of the osPath bugfix branch. This should merge after PR #96, or can be merged into #96 before that PR is closed.

go mod tidy seems to be removing needed lines from the go.sum file. also, seems that specific versions of x/crypto and x/sys needed to be forced. go mod doesn't seem to be acting in the expected manor by the build tool.

Helps to have the git actions updated too. I hope no one ever sees this. 😓


Handle web application exception to redirect request

Motivation
validateNamespaceBundleOwnership throws a web application exception with Response.temporaryRedirect(redirect)
to redirect the request to the owner broker. But the web application exception is a runtime exception. If you don't
handle and propagate it correctly, it will cause web request to be hang.
PR #8746 changed some web calls to async but it doesn't handle the web application exception. It causes topics list
with non-persistent topics to be hang.


refactor: Poll Context object for API

Provides:

an organised view per TopicPartition
failure counts for records - which will improve the retry system
Enables all api's to be batched - not just special batch methods
allow for future extensions without breaking primary APIs

This will be a minor breaking change

[x] Replace work container look up through work manager with context object reference
[x] Upgrade docs (breaking change)
[x] Update docs (features and batching section)
[x] Implement collection
[x] Full failure history, not just counts - memory leak potential - cap at something reasonable (customisable)
[x] Unify batch and non batch flows
[x] Update retry provider
[x] Hide work container access from public api through protected inheritance from internal package
[x] Remove failure history to separate PR
[x] Add record id(tp, offset) - useful for user to identify records.
[x] For hiding work container, try out delegate instead of inheritance

Thanks for the review @nioertel !

PR feature complete


Is this file even being used anymore?

tests/dummy/app/templates/demos/index.hbs

If not, delete it.
If it is, where it it being linked to/from?  It's content needs to be updated.  Inform @notmessenger if it is being used.

@notmessenger -The tests/dummy/app/templates/demos/index.hbs file is still in use and is link to from the drop down on each page by clicking on the "Demo" list item. It is also available by clicking the "Demo" link at the bottom of the "Home" demo app page.


How to generate or export the logs from the logger?

You've the logger in the app, how do you extract the information from it?

By default the logger outputs in the console (hit F12), filtering debug and info logs when the app is build for production.
To add more outputs (for example to an online logger service), you just need to register a custom output function:
// Logger output
function myCustomLoggerOutput(source: string, level: LogLevel, ...objects: any[]) {
  // do something with the log, like pushing it to an online service
}

// Register new logger ouput
Logger.outputs.push(myCustomLoggerOutput);

@sinedied I see, but when you generate this with a log.txt? I'm thinking to use this logger then create an interface where a user can extract the logs on their end based on a date to a .txt file.

@sinedied my bad. I realized it is not possible to generate a log to a client-side js. I would need to send this to a server to write the logs. thank you.

@sinedied quick question I'm trying to implement JSNLog by adding this as a new logger output. given to your example code, where do I place the code?

You can place it along your app bootstrap code in a dedicated bootstrap service if you have one, otherwise you can simply put it in your root app.component.ts ngOnInit method.


chore: update bleach

SUMMARY
Update bleach to latest 6.0.0 version. Also, heads-up on bleach is deprecated and will only receive security fixes. https://github.com/apache/superset/discussions/23838
TESTING INSTRUCTIONS
pytest or ./scripts/tests/run.sh

Hi @sebastianliebscher! Thanks for this PR!
But I've prepared a new #23862 PR to use nh3 lib instead of bleach.
Can you review my PR?

superseded by https://github.com/apache/superset/pull/23862


Improve url resolver performance

This PR tries to improve URL resolver performance and addresses the issue #3712.
Have tried to reduce the database queries in resolver.py and passed a new domain argument in resolve  function to reduce call to resolve_domain  function. Please give suggestions regarding further improvement.

I think it would be cool to confirm that this is indeed a performance increase with tests. Django has the ability to assert a number of queries are run (https://docs.djangoproject.com/en/2.0/topics/testing/tools/#django.test.TransactionTestCase.assertNumQueries), but I'd be curious if there is a better way to test "performance" here, perhaps setting a "max" number of queries for certain code paths in the tests?

Thanks, @ericholscher, @davidfischer for the review. I have tested the number of queries for the new setup as you suggested through logging and now it makes zero query for getting version_subdomain_url. I have tried to make it such that it doesn't break anything else.
For the testing part, could you please give some more overview. I am not getting how to use that assertNumQueries

For the testing part, could you please give some more overview. I am not getting how to use that assertNumQueries

You can find more information in the Django docs at: https://docs.djangoproject.com/en/2.0/topics/testing/tools/#django.test.TransactionTestCase.assertNumQueries
Hope it helps.


File not found when opening journal.html via mindreader.

After having added a few entries via mind (existence checked in ~/.journal.md), running the mindreader command opens a new tab in my default browser (Firefox), but generates an error.
URL requested via Firefox: file:///tmp/chris/journal.html
Response:
File not found
Firefox can’t find the file at /tmp/chris/journal.html.

Thanks for the feedback, I think the problem might be that your browser starts too slowly. There is a "sleep 3" before rm of the tmp file in the mindreader.sh script, please try to increase that a bit and let me know if that solves the problem.
Unfortunately there is not really a clean way to get a browser to open a file that you want to immediately delete after it's displayed to the user.


Switching tabs also changes active view in tab

System information:

Operating system (distribution) and version: Windows 7
DBeaver version: 5.3.3.
Java version: 1.8.0
Additional extensions: None

Connection specification:

Database name and version: Postgres
Driver name: JDBC
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
Switching tabs (using keyboard Ctrl+PageUp/PageDn) also switches the active sub-sub-tab or view within the tab, e.g. the left-hand tabs in table properties. This makes it impossible to compare two tables by flicking between them using the keyboard, because every flick changes the view when you come back to that tab. I suspect that the same key combination is bound to two different actions (previous tab and previous sub-sub-tab).

Steps to reproduce, if exist:

Open two tables (double-click or press F4)
Flick between them using Ctrl+PageUp and Ctrl+PageDn
Observe that the sub-sub-tab on the first one advances each time we flick to the second one.
If you set the second one to a sub-sub-tab > 1, then we see it drift upwards each time we flick back to the first one.

Thanks for the bug report.
Tab switchers:

Ctrl+Tab or Ctrl+Shift+Tab or Ctrl+PgDown/PgUp - Switch active editor
Alt+PgDown/PgUp - Switch top editor tab (Properties/Data/ERD)
Ctrl+Alt+PgDown/PgUp - Switch view tab (Columns/Constraints/etc)


Guzzle is not able to send a valid request when php-curl extension is not installed and request body is a stream of php://input

Guzzle version(s) affected: 6.3.0
Description
Guzzle is not able to send a valid request when php-curl extension is not installed and request body is a stream of php://input
How to reproduce
Make a POST request with body to a php app. In the app put the following code:
// client needs to send this request to NGINX
$client = new Client(
            [
                'base_uri' => 'http://some-nginx-server',
            ]
        );

$request = new \GuzzleHttp\Psr7\Request(
            'POST',
            '/path',
            [
                'Accept' => 'application/json',
                'Content-Type' => 'application/json'
            ],
            fopen('php://input', 'rb')

        );
$response = $client->send($request);

nginx will log an error:
[error] 10#10: *6 client sent invalid chunked body
Possible Solution
installing php-curl extension fixes it. But this is not that obvious :)
Additional context
I had this issue in docker alpine container.

Installed and got rid of my error too:
Error creating resource: [message] fopen(): Filename cannot be empty

Thanks for the suggestion!

This bug is quite nasty, please don't close the issue, as this is not resolved.

Somehow the StreamHandler does not like when you using php://input as request body.
I think this is a super edge case and you can simply rewrite the code to something like:
$input = fopen('php://input', 'rb');
$resource = fopen('php://temp', 'w+');
fwrite($resource, stream_get_contents($input));
fclose($input);

I vote for this to be closed.

Well, I spent the whole day figuring the issue out - quite critical in my opinion.
Especially, when we talk about the defacto standard library for HTTP in PHP.
@Nyholm if StreamHandler "doesn't like", it would a nice thing to see a warning or even an exception.

It would be cool if the stream handler automatically did this.

Is there a way for PHP to tell if a resource is the input stream?

https://www.php.net/manual/en/function.stream-get-meta-data.php should work

I was actually unable to replicate this in Guzzle master with:
<?php

require_once __DIR__.'/vendor/autoload.php';

$client = new GuzzleHttp\Client(
    [
        'base_uri' => 'https://example.com/',
        'handler' => new GuzzleHttp\Handler\StreamHandler(),
    ]
);

$request = new GuzzleHttp\Psr7\Request(
    'POST',
    '/path',
    [
        'Accept' => 'application/json',
        'Content-Type' => 'application/json'
    ],
    fopen('php://input', 'rb')
);

$response = $client->send($request);

echo GuzzleHttp\Psr7\Message::toString($response);

The script completed without error, echoing:
HTTP/1.1 411 Length Required
Content-Type: application/json
Content-Length: 61
Connection: close
Date: Mon, 05 Oct 2020 16:08:47 GMT
Server: ECSF (nyb/1D27)

{"success": false, "errors": [{ "message": "", "code": 411}]}

@GrahamCampbell try to uninstall php-curl extension

Does https://github.com/guzzle/psr7/pull/354 fix your issue?


Icon Not Found Causes studio to be unable to launch (my python install is scuffed also)

Traceback (most recent call last):
  File "/home/spy/.local/bin/cork", line 8, in <module>
    sys.exit(main())
  File "/home/spy/.local/lib/python3.10/site-packages/cork/__main__.py", line 171, in main
    this_splash.show("roblox-studio")
  File "/home/spy/.local/lib/python3.10/site-packages/cork/splash.py", line 78, in show
    self.gtk_splash = GtkCorkSplash(icon)
  File "/home/spy/.local/lib/python3.10/site-packages/cork/splash.py", line 26, in __init__
    Gtk.IconTheme.get_default().load_icon(icon, 112, 0))
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'roblox-studio' not present in theme Yaru (0)

also for the player

Just pushed an update, check it if helps out.

Issue has been fixed with the previous update and the migration to Qt


ModuleNotFoundError

I don't know how to go about this issue. Can you please tell me what i'm doing wrong?

You need to run from the deepmind_research parent directory:

Then run alphafold_casp13/run_eval.sh from the deepmind_research parent directory (you will get errors if you try running run_eval.sh directly from the alphafold_casp13 directory).

Does this solve your problem?
Closing it for now, feel free to reopen.


Don't relay raw notebook request to Pylance

Currently, notebook middleware sends not only LSP request for concat doc, but also relay all raw messages from notebook to us (Pylance).
currently, it works fine since we don't know how to handle notebook requests ourselves, so we drop them and only handle requests over concat docs, but soon Pylance will have ability to handle notebook request ourselves. and won't be able to know that 2 requests (notebook and concat) are actually for the same thing and process them conceptually twice.
middleware should only send concat message if jupyter.pylanceHandlesNotebooks is not set, and send only raw notebook message if it is set. but not both.

The latest bits here should have fixed this. Switching jupyter extension to actually consume them.

will it stop sending raw notebook request to default pylance server as well? we now can handle raw notebook request, but if it is sent to default pylance server (not one created by jupyter extension but created by regular python extension), we will still process them even if we will never get LSP requests for them (since jupyter extension will send those to the pylance server specifically created for the notebook)

tagging @rchiodo


Empty bulletin files are being downloaded

Try to download a bulletin, downloads an empty file. A proper message should be displayed for a blank bulletin.
tableDownload.csv

Hi @AndrGab
Could you assign this to me ?

Sure.. happy to have you here

nice, I'm fine with that

hi @dshubhadeep
how are u you?
Can you complete de task?
thank you very much

@AndrGab apologies for the delay
I've created the PR


Reference missing since update

Hi,
I updated, with nuGet, from ver like 1.1.9 to 1.1.11 and some references are now missing. Please let me know me the new ones.

new WoopsaDynamicObject(_client.Root);

WoopsaClientProperty property = [...]
property.Change += subscription.Value;

WoopsaServer woopsaServer = new WoopsaServer(InfoConnection, PORTSORTER);
woopsaServer.ClearCache();

Thank you.

Hi,
Some changes occured in Woopsa which caused small API compatibility breaks.

Dynamic has been partially redesigned. You should create a combined client+dynamic object in one step using the following syntax :

dynamic dynamicClient = new WoopsaDynamicClient("http://localhost/woopsa")

"Change" event has been removed, because several new needs appeared. It has been replaced by 2 "Subscribe" methods, to which you simply provide the delegate to call for each notification :

// Basic API with default values
public WoopsaClientSubscription Subscribe(EventHandler handler)
// Richer API that let specify monitoring and publish interval
public WoopsaClientSubscription Subscribe(EventHandler handler, TimeSpan monitorInterval, TimeSpan publishInterval);
These methods return a WoopsaClientSubscription that can be used to Unsubscribe later, by calling Unsubscribe() or Dispose() on it.
WoopsaClientProperty property = [...]
property.Subscribe((sender, e) => { });

There is no more ClearCache method, because Woopsa performances have been optimized and the impact of the caching mechanism was neglectable. Accordingly, as it caused some pain for users in the management of the hierarchy updates, it has been entirely removed. There is no more caching for the path in Woopsa, and changes in the object hierarchy are reflected instantly. You don't have to care about that anymore.

Hope this helps.
Regards


More multi program runtime

This contains a couple patches that are needed to make the tests pass and be compatible with latest Genie, so I can make a new release of TT.

Pull Request Test Coverage Report for Build 351

6 of 10 (60.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.05%) to 81.387%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/ast/api.js
2
3
66.67%

lib/describe.js
1
4
25.0%

Totals

Change from base Build 346:
-0.05%

Covered Lines:
5395

Relevant Lines:
6449

💛  - Coveralls


Not showing speed on Raspberry Pi Zero 2W

even after 1000 seconds it doesn't shows the speed
ram: 512M
swap: 4G
os: Kali ARM 2024.1 RPI 02W armhf build
command: ./keyhunt -m address -b 66 -f tests/66.txt -Rqs1 -l compress
also tried with sudo, no difference
[+] Total 0 keys in 1198 seconds: 0 keys/s
but i know it works bc if i run it with "-f tests/1to32.txt", it shows the keys, but can't get speed

I don't know if this is a pronblem with some small ARM processor
Some users report similar issues before
https://github.com/albertobsd/keyhunt/issues/284
I need to find a way to test if this is a pthread problem or a hardware problem.

may be because i was using armhf kali, now i am using arm64 raspbian


Correctly implement encoding / decoding Key Configuration Media Type

Motivation:
We didnt correctly implement encoding / decoding as we missed to prefix the length as defined in https://www.rfc-editor.org/rfc/rfc9458.html#section-3.2
Modifications:

Add new methods and deprecate the old ones
Correctly handle the prefix
Adjust tests

Result:
Correctly follow https://www.rfc-editor.org/rfc/rfc9458.html#section-3.2

@thomdev PTAL


Building a virtual keyboard with JS

Virtual Keyboard
Project Description
I want to add a virtual keyboard to the repo, I plan to use Vanilla JS, CSS, and HTML for this project. I think this will be a good and unique learning experience for beginners to learn JS DOM and HTML. I plan to add minimal design to the project.
Stack:

[X] Html
[X] CSS
[X] JavaScript

/assign


Bump go version to 1.22.8

[CVE] detected.
Version of go: 1.22.5
HIGH CVE:
[CVE-2024-34156]
Scanning tool: Trivy

We are now working with Go versions 1.23.x , maybe you just need to bump to a newer version of ytt?
Closing this for the time being, feel free to reopen it.


Create ChatBot feature

Is your feature request related to a problem? Please describe.
Adding  a chatbot feature in the web app.
A button  showing click to chat at the bottom on the home page.

I would like to work on this , Will you assignee me

@vanshika2906 You can work on this. Assigned :)
@Furquan712 Please find some other open issue to work on it or come with any new feature/suggestion/idea.
We have the First Come First Serve rule so cannot help with this issue. However, you both might collaborate if want.


Experiments  initial setup

What does this PR do?
Setup a dedicated folder, for hosting code not yet ready or meant for production use.

Guess this is stale :-) Please reopen if not!


used locales instead of two_letters_code

Yeah. I need to wait for new PR from Crowdin service as well and update configuration file in the GUI


Figure out some way to attribute end crystal pvp deaths to the correct players.

This is a tricky issue even when you're not dealing with cross-server combat.
https://github.com/plan-player-analytics/Plan/issues/1571
https://www.spigotmc.org/threads/ender-crystal-get-killer.474526/
We need this in order to drop blocks for the person who detonated the end crystal that dealt the killing blow.

i thought end crystals didn't track who placed/exploded them (Source: entirety of mumbo jumbo ruing season 8 of hermit craft where he refued to have a single kill)

i thought end crystals didn't track who placed/exploded them (Source: entirety of mumbo jumbo ruing season 8 of hermit craft where he refued to have a single kill)

Yep, you're exactly correct. We can figure out when they're created by listening for a PlayerInteractEvent then searching for a new nearby end crystal after a few ticks. Attributing them to a player, especially cross-server, is a bit of a mystery.

Just a thought as I’m still familiarising myself with Mammoth, but would it not be enough to attribute to the server where the explosion event originated from? A play through of events:

End Crystal is placed in Server A
Player A detonates End Crystal from Server B
Both Player B and Player C were killed by explosion on Server A and Server B respectively.
Loot from both player B and Player C drops on Server B.

Apologies if I’m misunderstanding

You can find who killed the end crystal from the last entity that caused damage to it - although since you have multiple servers I'd imagine you need some netcode to get that information between servers.
If you use some sort of payload for exploding the crystal on server B you can lookup the killer of crystal on server A and include the information before sending the payload


Lacks equivalent for mongodb api

I found the this page through the feeedback portal (https://feedback.azure.com/forums/263030-azure-cosmos-db/suggestions/36142468-make-count-aware-of-indexes#{toggle_previous_statuses}) but I am interested in how to make use of this improvemten via the mongodb api where I still observe count to consume a very large number of RUs that increases with document amount even though I count based on an index

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8dbaec6a-4f7e-736b-2e6a-c3f6a5529221
Version Independent ID: 18fc80ab-e47e-9042-43e4-88d721f6ba57
Content: Aggregate functions in Azure Cosmos DB
Content Source: articles/cosmos-db/sql-query-aggregates.md
Service: cosmos-db
GitHub Login: @timsander1
Microsoft Alias: tisande

Hi @extrawurst , could you share your query text? Feel free to change any property names if they are sensitive.

sure @timsander1:
yesterday:

today after having more users matching the query:

although there is a key on test:
{
		"v" : 1,
		"key" : {
			"test" : 1
		},
		"name" : "test_1",
		"ns" : "collection.users"
},

same problem (high RUs that scale with amount of documents matched) applies to using aggregate and find+count:
db.users.aggregate([{$match:{test:"TelescopeTest1"}},{$count: "c"}])
db.users.find({test:"TelescopeTest1"}).count()

Thanks for sharing! For MongoDB API accounts, even if a similar query were to utilize an index in Core (SQL API), it does not necessarily mean that it would in MongoDB API. However, in the specific case you shared, an index would significantly reduce the RU charge.
Could you check the version you are using (3.2 or 3.6): https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support-36#protocol-support
If you are using version 3.2, this query would not be able to utilize an index. If so, could you please submit a request to upgrade?

@timsander1 we are using version 3.6. according to a support ticket response from someone at azure we are experience a problem that supposedly has a fix rolling out 1st of September - we will see.

Got it. Since there is no update needed in the docs, I'm going to close this issue. For the support case, please feel free to send me an email with the support request number (tisande at microsoft dot com) and I can take a look to provide more details.

#please-close


Create CONTRIBUTING.md

The goal of this PR is to provide easier onboarding to community contributions to this repo.
This is a default template, and should be updated as needed.

#1020


chore: remove unused dependencies ioxd_common and test_helpers_end_to_end

This is a possible solution to an issue found while syncing issues out of a private git repo into influxdb3_core.

I did find one issue when ripping the following crates out of influxdb3_core: ioxd_common, ioxd_test, test_helpers_end_to_end.
The authz crate depends on test_helpers_end_to_end, so I need to move some code around in IOx to eliminate that dependency and that will resolve things.


MAISTRA-2060: Point to Red Hat Jira for issues (#93)

Cherry-pick of 68033ffbda4
Co-authored-by: Jonh Wendell<EMAIL_ADDRESS>

We need s/MAISTRA/OSSM/

good catch, done.


Add files via upload

University Addition

@salihyakuphankeskin I am sorry, the domain etu.edu.tr is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


fix for relu error

use leaky_relu from tensorflow

Hello @shashanka300 ,
Could you specify where and when the error occurs?
Thanks


API for events

From @kyyberi on October 17, 2015 8:41
As a developer I want to access events via API to show details in other contexts.
Copied from original issue: APIOps/portal#27

Tested the process and now docs are available at http://www.apiops.net:8088/docs

I started Swagger 2.0 based description of the API to https://github.com/APIOps/portal/blob/master/API/spec.yaml

I also needed to install nodejs and npm. With npm I installed connect and swagger-tools modules. There has to be automated way to do this since dependencies are listed in package.json
jarkko@APIOps:~/nodejs-server$ more package.json
{
  "name": "",
  "version": "0.0.1",
  "description": "A simple API for retrieving APIOps events information (swagger-2.0 specification)",
  "main": "index.js",
  "keywords": [
    "swagger"
  ],
  "license": "MIT",
  "private": true,
  "dependencies": {
    "connect": "^3.2.0",
    "swagger-tools": "0.8.*"
  }
}

Ok. It should be simple as "npm install" :) That should install all dependencies.

Requires some manual work to get documentation to work. had to manually edit generated nodejs code nodejs-server/api/swagger.json. Replace localhost in "host": "apiops.net:8088", [http://www.apiops.net:8088/api-docs] to get api call to go to correct url, not localhost.
Also I replaced localhost from index.js. In addition variable port is not used anywhere (obsolete):
var app = require('connect')();
var http = require('http');
var swaggerTools = require('swagger-tools');

var serverPort = 8080;

// swaggerRouter configuration
var options = {
  swaggerUi: '/swagger.json',
  controllers: './controllers',
  useStubs: process.env.NODE_ENV === 'development' ? true : false // Conditionally turn on stubs (mock mode)
};

// The Swagger document (require it, build it programmatically, fetch it from a URL, ...)
var swaggerDoc = require('./api/swagger.json');

// Initialize the Swagger middleware
swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
  // Interpret Swagger resources and attach metadata to request - must be first in swagger-tools middleware chain
  app.use(middleware.swaggerMetadata());

  // Validate Swagger requests
  app.use(middleware.swaggerValidator());

  // Route validated requests to appropriate controller
  app.use(middleware.swaggerRouter(options));

  // Serve the Swagger documents and Swagger UI
  app.use(middleware.swaggerUi());

  // Start the server
  http.createServer(app).listen(8088, function () {
    console.log('Your server is listening on port %d (http://apiops.net:%d)', 8088, 8088);
    console.log('Swagger-ui is available on http://apiops.net:%d/docs', 8088);
  });
});


Fixed translation cache access when the translation content is changed

Closes #
The problem occured when editing the form (that already submitted before) and the page with multiple selectpickers in repeating group is always showing the wrong select text.
From my observation, it is caused by selectpicker using i18n translation with i18nNumber involved.
We will have same translations for all selectpicker widgets because all widgets have same i18n data eventhough it has different i18nNumber.
This select instances
<group_nm7ec42  enk:ordinal="1" >
	<multiselect2>a b c</multiselect2>
</group_nm7ec42>
<group_nm7ec42  enk:ordinal="2" >
	<multiselect2>a b</multiselect2>
</group_nm7ec42>

will give us

It is supposed to give us

I have verified this PR works with

[ ] Online form submission
[ ] Offline form submission
[ ] Saving offline drafts
[ ] Loading offline drafts
[x] Editing submissions
[ ] Form preview
[ ] None of the above

What else has been done to verify that this works as intended?
Why is this the best possible solution? Were any other approaches considered?
The solution that minimize cache key access, translation call and just adding one string comparison.
Already tried the solultion in selectpicker but that is not an optimal one.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
I don't think there is any. All tests are passed.
Do we need any specific form for testing your changes? If so, please attach one.
No.

Created PR in upstream (enketo/enketo) to fix this issue.
https://github.com/enketo/enketo/pull/1336
Thanks.


fix: DEV-3151: Add simple compare eval item

I can't understand - why can't we simply reuse the same hack made for https://github.com/heartexlabs/label-studio-evalme/blob/master/evalme/text/text.py#L35 ?

I can't understand - why can't we simply reuse the same hack made for https://github.com/heartexlabs/label-studio-evalme/blob/master/evalme/text/text.py#L35 ?

We can do that, but there will code duplication.
This PR presents EvalItem.max_score which incapsulates logic from previous solution. It can be reused in other methods without duplication.


FelaRenderer typing does not resolve React.ComponentType

Type: Bug

Packages
Version

react-fela
10.2.2

Description
When using react-fela typings alongside React typings from DefinitelyTyped (@types/react) v16.8.4, I'm getting the following error where FelaRenderer extends React.ComponentType
Property 'ComponentType' does not exist on type 'typeof React'.ts(2339)

Steps to reproduce

Compile TypeScript with the following typings
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Expected Behavior
Code should compile successfully
Actual Behavior
react-fela\10.2.2\node_modules\react-fela\index.d.ts(568,45): error TS2339: Build:Property 'ComponentType' does not exist on type 'typeof import("@types/react/16.8.4/node_modules/@types/react/index.d.ts")'

@tomwagner this was added in #677, were you building alongside React typings from DefinitelyTyped?

My fault :( Should be fixed in #692


Runtime error when using orcl

I tried orcl with the example axpy5.c. It produces many runtime errors until it eventually hits a nullptr dereference and crashes. looking at the generated errors: this one keeps repeating:
.ERROR: orio.module.loop.transformation could not load submodule orio.module.loop.submodule.unroll.unroll: init() takes at most 5 arguments (6 given)
ERROR: orio.module.loop.transformation:45: encountered an error during transformation of statement: "Unroll"

This looks like incorrect tuning spec. Can you attach the actual example you tried?

The spec is now fixed, so the remaining task is to convert the OpenCL code to C++ and make it conform to the latest spec (3.0).


Audio stream not going through to gRPC

I set everything up according to the procedures.
When I call streamingDetectIntent I get a gRPC error:
final responseStream = dialogflow.streamingDetectIntent(config, _audioStream);
I/flutter (19109): gRPC Error (code: 11, codeName: OUT_OF_RANGE, message: While calling Cloud Speech API: Audio Timeout Error: Long duration elapsed without audio. Audio should be sent close to real time., details: [], rawResponse: null)

@savelee Any advice on this issue? I tried to implement in a different way, and now I get a transcript response but I don't get any query response. Also when I stop recording, it seems the gRPC session continues to listen for audio but eventually times out.
in this attempt, I try to use the generated protocol buffers directly, along with your packages.
import 'package:dialogflow_grpc/generated/google/cloud/dialogflow/v2/session.pb.dart' as pbSession;
import 'package:dialogflow_grpc/generated/google/cloud/dialogflow/v2/session.pbgrpc.dart'
void handleStream() async {
    log('entering handleStream');
    _recorder.start();

    var config = InputConfigV2(
        encoding: 'AUDIO_ENCODING_LINEAR_16',
        languageCode: 'en-US',
        sampleRateHertz: 16000);
    if (Platform.isIOS) {
      config = InputConfigV2(
          encoding: 'AUDIO_ENCODING_LINEAR_16',
          languageCode: 'en-US',
          sampleRateHertz: 16000);
    }

    pbSession.QueryInput queryInput = pbSession.QueryInput()..audioConfig = config.cast();

    var request = StreamController<pbSession.StreamingDetectIntentRequest>();

    request.add(pbSession.StreamingDetectIntentRequest()
      ..queryInput = queryInput
      ..session = DialogflowAuth.session
    );

    _audioStreamSubscription = _recorder.audioStream.listen((audio) {
      // Add audio content when stream changes.
      request.add(pbSession.StreamingDetectIntentRequest()
        ..inputAudio = audio);
    });

    _audioStreamSubscription.onDone(() {
      // Close the request stream, if the audio stream is finished.
      request.close();
      log('closed request');
    });

    // Make the streamingDetectIntent call, with the InputConfig and the audioStream
    // Here I am using session.pbgrpc.dart
    var responseStream = dialogflow.client.streamingDetectIntent(request.stream);
    String transcript;
    String queryText;
    String fulfillmentText;

    // Get the transcript and detectedIntent and show on screen
    responseStream.listen((data) {
      log('---- responseStream ----');
      // if(data.recognitionResult.)
      setState(() {
        print(data);
        transcript = data.recognitionResult.transcript;
        queryText = data.queryResult.queryText;
        fulfillmentText = data.queryResult.fulfillmentText;

        if (fulfillmentText.isNotEmpty) {
          messages.add({
            'message': queryText,
            'isUserMessage': true,
          });
          messages.add({
            'message': fulfillmentText,
            'isUserMessage': false,
          });
        }

        if (transcript.isNotEmpty) {
          _textController.text = transcript;
        }
      });
    }, onError: (e) {
      print('!!!!!!! error: $e');
    }, onDone: () {
      log('done');
      log('transcript, $transcript');
      log('queryText, $queryText');
      log('fulfillmentText, $fulfillmentText');
    });
  }

here is what seems to happen:

I tap my microphone button, it calls this above method handleStream()
_recorder starts, microphone is listening
audio gets streamed to 'request' StreamController object
responseStream listens and transcribes
I tap my microphone button again, it's supposed to stop the _recorder in a stopStream() method.

  void stopStream() async {
    setState(() {
      _recorder.stop();
      log('_recorder.stop() called, recorder stopped');
      _isRecording = false;
    });
  }

the recorder seems to continue anyway, and eventually the response stream times out and returns this:
I/flutter (32540): !!!!!!! error: gRPC Error (code: 11, codeName: OUT_OF_RANGE, message: While calling Cloud Speech API: Audio Timeout Error: Long duration elapsed without audio. Audio should be sent close to real time., details: [], rawResponse: null)

@kmmansour2  how did you overcome this error below
The argument type 'BehaviorSubject<List<int>?>?' can't be assigned to the parameter type 'Stream<List<int>>

for the line
final responseStream =
        dialogflow?.streamingDetectIntent(config, _audioStream);

I tried casting based on inheritance like this:
Stream<List<int>>? _audioStreamCast = _audioStream;
    final responseStream =
        dialogflow?.streamingDetectIntent(config, _audioStreamCast!);

shown here: https://pub.dev/documentation/rxdart/latest/rx/BehaviorSubject-class.html


Update AnimationTrack.yaml

Update the summary to include the Animator class.
Changes

Added the Animator class to the summary.
Replaced the deprecated Humanoid:LoadAnimation in the summary with Animator:LoadAnimation.
https://create.roblox.com/docs/reference/engine/classes/AnimationTrack
https://create.roblox.com/docs/reference/engine/classes/Humanoid#LoadAnimation
https://create.roblox.com/docs/reference/engine/classes/Animator#LoadAnimation

Checks
By submitting your pull request for review, you agree to the following:

[x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
[x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
[x] To the best of my knowledge, all proposed changes are accurate.

Hi there, thanks for submission! To minimize confusion, I'm going to opt to focus on Animator as the best way to load animations, and remove mention of Humanoid:LoadAnimation() (part of your submission here) and also AnimationController:LoadAnimation(). I'll do this in a separate PR, so I'll close this one... but again, thank you for bringing this to my attention so I can fix the other deprecated citations. :)


Change / suggest new password >wrong fields are filled

Log into customer account, go to "change password":
https://www.domain.tld/account/profile
Let browser suggest new strong password.
Firefox (MacOS): nothing happens
Safari (MacOS): fields "password repeat" and "old password" are filled (look at screenshot)

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37335.
[created from NEXT-37335, comment 486746]

[public]

Status Change: Resolved

The ticket has been successfully completed; the solution is implemented and verified.
[created from NEXT-37335, comment 511135]

[public]

FixVersion Change: <IP_ADDRESS>

This issue will be / was solved in Shopware version <IP_ADDRESS>.
[created from NEXT-37335, comment 511136]