Failed to update

Contents of vscode-inno-updater.log below:
Jun 18 18:55:06.393 INFO Starting: C:\Program Files\Microsoft VS Code\Code.exe, false
Jun 18 18:55:06.393 INFO Checking for running Code.exe processes... (attempt 1)
Jun 18 18:55:06.396 INFO Code.exe is running, wait a bit
Jun 18 18:55:06.896 INFO Checking for running Code.exe processes... (attempt 2)
Jun 18 18:55:06.907 INFO Code.exe is running, wait a bit
Jun 18 18:55:07.407 INFO Checking for running Code.exe processes... (attempt 3)
Jun 18 18:55:07.412 INFO Code.exe is not running
Jun 18 18:55:07.412 INFO Checking for possible conflicting running processes... (attempt 1)
Jun 18 18:55:07.417 INFO Inno Updater v0.4.3
Jun 18 18:55:07.418 INFO Starting update, silent = false
Jun 18 18:55:07.471 INFO do_update: "C:\Program Files\Microsoft VS Code\Code.exe", _
Jun 18 18:55:07.471 INFO move_update: "C:\Program Files\Microsoft VS Code\unins000.dat", _
Jun 18 18:55:07.471 INFO Delete: "api-ms-win-core-console-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.471 INFO Delete: "api-ms-win-core-datetime-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.472 INFO Delete: "api-ms-win-core-debug-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.472 INFO Delete: "api-ms-win-core-errorhandling-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.472 INFO Delete: "api-ms-win-core-file-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.472 INFO Delete: "api-ms-win-core-file-l1-2-0.dll" (attempt 1)
Jun 18 18:55:07.473 INFO Delete: "api-ms-win-core-file-l2-1-0.dll" (attempt 1)
Jun 18 18:55:07.473 INFO Delete: "api-ms-win-core-handle-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.473 INFO Delete: "api-ms-win-core-heap-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.473 INFO Delete: "api-ms-win-core-interlocked-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.474 INFO Delete: "api-ms-win-core-libraryloader-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.474 INFO Delete: "api-ms-win-core-localization-l1-2-0.dll" (attempt 1)
Jun 18 18:55:07.474 INFO Delete: "api-ms-win-core-memory-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.474 INFO Delete: "api-ms-win-core-namedpipe-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.474 INFO Delete: "api-ms-win-core-processenvironment-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.475 INFO Delete: "api-ms-win-core-processthreads-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.475 INFO Delete: "api-ms-win-core-processthreads-l1-1-1.dll" (attempt 1)
Jun 18 18:55:07.475 INFO Delete: "api-ms-win-core-profile-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.475 INFO Delete: "api-ms-win-core-rtlsupport-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.476 INFO Delete: "api-ms-win-core-string-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.476 INFO Delete: "api-ms-win-core-synch-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.476 INFO Delete: "api-ms-win-core-synch-l1-2-0.dll" (attempt 1)
Jun 18 18:55:07.476 INFO Delete: "api-ms-win-core-sysinfo-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.476 INFO Delete: "api-ms-win-core-timezone-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.477 INFO Delete: "api-ms-win-core-util-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.477 INFO Delete: "api-ms-win-crt-conio-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.477 INFO Delete: "api-ms-win-crt-convert-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.477 INFO Delete: "api-ms-win-crt-environment-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.478 INFO Delete: "api-ms-win-crt-filesystem-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.478 INFO Delete: "api-ms-win-crt-heap-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.479 INFO Delete: "api-ms-win-crt-locale-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.479 INFO Delete: "api-ms-win-crt-math-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.479 INFO Delete: "api-ms-win-crt-multibyte-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.479 INFO Delete: "api-ms-win-crt-private-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.480 INFO Delete: "api-ms-win-crt-process-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.480 INFO Delete: "api-ms-win-crt-runtime-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.480 INFO Delete: "api-ms-win-crt-stdio-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.480 INFO Delete: "api-ms-win-crt-string-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.481 INFO Delete: "api-ms-win-crt-time-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.481 INFO Delete: "api-ms-win-crt-utility-l1-1-0.dll" (attempt 1)
Jun 18 18:55:07.481 INFO Delete: "bin" (attempt 1)
Jun 18 18:55:07.528 INFO Delete: "blink_image_resources_200_percent.pak" (attempt 1)
Jun 18 18:55:07.528 INFO Delete: "Code.exe" (attempt 1)
Jun 18 18:55:07.531 INFO Delete: "Code.VisualElementsManifest.xml" (attempt 1)
Jun 18 18:55:07.531 INFO Delete: "CodeSignSummary.md" (attempt 1)
Jun 18 18:55:07.532 INFO Delete: "content_resources_200_percent.pak" (attempt 1)
Jun 18 18:55:07.532 INFO Delete: "content_shell.pak" (attempt 1)
Jun 18 18:55:07.532 INFO Delete: "d3dcompiler_47.dll" (attempt 1)
Jun 18 18:55:07.533 INFO Delete: "ffmpeg.dll" (attempt 1)
Jun 18 18:55:07.533 INFO Delete: "icudtl.dat" (attempt 1)
Jun 18 18:55:07.533 INFO Delete: "libEGL.dll" (attempt 1)
Jun 18 18:55:07.534 INFO Delete: "libGLESv2.dll" (attempt 1)
Jun 18 18:55:07.534 INFO Delete: "locales" (attempt 1)
Jun 18 18:55:07.543 INFO Delete: "msvcp140.dll" (attempt 1)
Jun 18 18:55:07.544 INFO Delete: "natives_blob.bin" (attempt 1)
Jun 18 18:55:07.544 INFO Delete: "node.dll" (attempt 1)
Jun 18 18:55:07.546 INFO Delete: "pdf_viewer_resources.pak" (attempt 1)
Jun 18 18:55:07.547 INFO Delete: "resources" (attempt 1)
Jun 18 18:55:08.867 INFO Delete: "snapshot_blob.bin" (attempt 1)
Jun 18 18:55:08.867 INFO Delete: "ucrtbase.dll" (attempt 1)
Jun 18 18:55:08.867 INFO Delete: "ui_resources_200_percent.pak" (attempt 1)
Jun 18 18:55:08.868 INFO Delete: "vcruntime140.dll" (attempt 1)
Jun 18 18:55:08.868 INFO Delete: "views_resources_200_percent.pak" (attempt 1)
Jun 18 18:55:08.868 INFO Rename: "api-ms-win-core-console-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.869 INFO Rename: "api-ms-win-core-datetime-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.869 INFO Rename: "api-ms-win-core-debug-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.869 INFO Rename: "api-ms-win-core-errorhandling-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.870 INFO Rename: "api-ms-win-core-file-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.870 INFO Rename: "api-ms-win-core-file-l1-2-0.dll" (attempt 1)
Jun 18 18:55:08.871 INFO Rename: "api-ms-win-core-file-l2-1-0.dll" (attempt 1)
Jun 18 18:55:08.871 INFO Rename: "api-ms-win-core-handle-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.871 INFO Rename: "api-ms-win-core-heap-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.872 INFO Rename: "api-ms-win-core-interlocked-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.872 INFO Rename: "api-ms-win-core-libraryloader-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.873 INFO Rename: "api-ms-win-core-localization-l1-2-0.dll" (attempt 1)
Jun 18 18:55:08.873 INFO Rename: "api-ms-win-core-memory-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.873 INFO Rename: "api-ms-win-core-namedpipe-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.874 INFO Rename: "api-ms-win-core-processenvironment-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.874 INFO Rename: "api-ms-win-core-processthreads-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.875 INFO Rename: "api-ms-win-core-processthreads-l1-1-1.dll" (attempt 1)
Jun 18 18:55:08.875 INFO Rename: "api-ms-win-core-profile-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.875 INFO Rename: "api-ms-win-core-rtlsupport-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.876 INFO Rename: "api-ms-win-core-string-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.876 INFO Rename: "api-ms-win-core-synch-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.877 INFO Rename: "api-ms-win-core-synch-l1-2-0.dll" (attempt 1)
Jun 18 18:55:08.877 INFO Rename: "api-ms-win-core-sysinfo-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.877 INFO Rename: "api-ms-win-core-timezone-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.878 INFO Rename: "api-ms-win-core-util-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.878 INFO Rename: "api-ms-win-crt-conio-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.879 INFO Rename: "api-ms-win-crt-convert-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.879 INFO Rename: "api-ms-win-crt-environment-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.879 INFO Rename: "api-ms-win-crt-filesystem-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.880 INFO Rename: "api-ms-win-crt-heap-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.880 INFO Rename: "api-ms-win-crt-locale-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.881 INFO Rename: "api-ms-win-crt-math-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.881 INFO Rename: "api-ms-win-crt-multibyte-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.882 INFO Rename: "api-ms-win-crt-private-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.882 INFO Rename: "api-ms-win-crt-process-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.882 INFO Rename: "api-ms-win-crt-runtime-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.883 INFO Rename: "api-ms-win-crt-stdio-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.883 INFO Rename: "api-ms-win-crt-string-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.884 INFO Rename: "api-ms-win-crt-time-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.884 INFO Rename: "api-ms-win-crt-utility-l1-1-0.dll" (attempt 1)
Jun 18 18:55:08.885 INFO Rename: "bin" (attempt 1)
Jun 18 18:55:08.885 INFO Rename: "blink_image_resources_200_percent.pak" (attempt 1)
Jun 18 18:55:08.885 INFO Rename: "Code.exe" (attempt 1)
Jun 18 18:55:08.937 INFO Rename: "Code.exe" (attempt 2)
Jun 18 18:55:09.137 INFO Rename: "Code.exe" (attempt 3)
Jun 18 18:55:09.589 INFO Rename: "Code.exe" (attempt 4)
Jun 18 18:55:10.391 INFO Rename: "Code.exe" (attempt 5)
Jun 18 18:55:11.643 INFO Rename: "Code.exe" (attempt 6)
Jun 18 18:55:13.444 INFO Rename: "Code.exe" (attempt 7)
Jun 18 18:55:15.895 INFO Rename: "Code.exe" (attempt 8)
Jun 18 18:55:19.098 INFO Rename: "Code.exe" (attempt 9)
Jun 18 18:55:23.150 INFO Rename: "Code.exe" (attempt 10)
Jun 18 18:55:28.152 INFO Rename: "Code.exe" (attempt 11)
Jun 18 18:55:28.154 ERRO Access is denied. (os error 5)

You seem to have #47841.
Please read this comment if you can provide more detail: https://github.com/Microsoft/vscode/issues/47841#issuecomment-393101777
Please read this one to disable background updates: https://github.com/Microsoft/vscode/issues/47841#issuecomment-395017687


大佬，用的python版本是那个呀，安装依赖时报错了

安装依赖时报错了， 网上查是python版本使用错了。  项目用的那个版本的python那？
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy==1.25.0 (from -r requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d0/b2/fe774844d1857804cc884bba67bec38f649c99d0dc1ee7cbbf1da601357c/numpy-1.25.0.tar.gz (10.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "/home/xiaoyu/PycharmProjects/How-to-use-Transformers/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/xiaoyu/PycharmProjects/How-to-use-Transformers/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xiaoyu/PycharmProjects/How-to-use-Transformers/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
^^^^^^^^^^^^^^^^
File "/home/xiaoyu/PycharmProjects/How-to-use-Transformers/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/tmp/pip-build-env-vzs2_f94/overlay/lib/python3.12/site-packages/setuptools/init.py", line 16, in
import setuptools.version
File "/tmp/pip-build-env-vzs2_f94/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/tmp/pip-build-env-vzs2_f94/overlay/lib/python3.12/site-packages/pkg_resources/init.py", line 2172, in
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

我的虚拟环境是用python 3.12创建的

你好，我使用的python版本应该是3.8或者3.9。

版本问题
python 3.12 虚拟环境，ai给我解决了
numpy>=1.26.0
torch>=2.1.0
scikit-learn>=1.3.0
transformers>=4.36.0
tqdm>=4.65.0


Bump version 2.1.2

Questions
Answers

Description?
Bump version to 2.1.2

Type?

BC breaks?

Deprecations?

Fixed ticket?

How to test?

Ping @kpodemski for merge


does this work with angular 5.2.0

Does this work with angular 5.2.0 ? when I am trying to install in my project and try to use it i get foloowing error -
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/angular-material-fileupload/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

The latest version 2.0.0 has fixes for angular 7 and supports "aot". Can you try this version?

Version 2.0.0 and Angular 7:
ERROR in angular-material-fileupload\matFileUpload.module.ts(13,2): Error during template compile of 'MatFileUploadModule'  Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule'
'NgModule' calls 'ɵmakeDecorator'.
node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/angular-material-fileupload/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

@maxma1411 How are you building the app? can you post the deps in package.json?

I have the error building with "ng build --prod" or starting the app with "ng serve"
my package.json:
{
"name": "gea",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular-devkit/core": "^7.3.1",
"@angular/animations": "^7.2.2",
"@angular/cdk": "^7.2.1",
"@angular/common": "^7.0.4",
"@angular/compiler": "^7.0.4",
"@angular/core": "^7.0.4",
"@angular/forms": "^7.0.4",
"@angular/http": "^7.0.4",
"@angular/material": "^7.2.1",
"@angular/platform-browser": "^7.0.4",
"@angular/platform-browser-dynamic": "^7.0.4",
"@angular/router": "^7.0.4",
"@auth0/angular-jwt": "^2.0.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@swimlane/ngx-datatable": "^14.0.0",
"angular-material-fileupload": "^2.0.0",
"angular-tslint-rules": "^1.12.1",
"core-js": "^2.5.4",
"hammerjs": "^2.0.8",
"jwt-decode": "^2.2.0",
"rxjs": "~6.3.3",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.12.0",
"@angular/cli": "^7.0.7",
"@angular/compiler-cli": "^7.0.4",
"@angular/language-service": "^7.0.4",
"@types/jasmine": "^2.8.12",
"@types/jasminewd2": "^2.0.6",
"@types/jquery": "^3.3.22",
"@types/jwt-decode": "^2.2.1",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "^3.1.6"
}
}

@maxma1411 Can you post your tsconfig file?

@nishantmc, tsconfig.json

Couldn't replicate the issue. Tried

ng new angular-cli-test18
changed deps and devdeps to what you mentioned above
imported angular-material-fileupload and used the component in html
ng serve --prod works without any issues, You can try these steps

Not sure whether you are hitting his issue https://github.com/angular/angular/issues/23609

Please refer #35


license?

Hi, what license is applied to this project?

there's no license, use it however and wherever you want

There's no license, use it however and wherever you want

Thanks! Perhaps for clarity to everyone who may be interested in this project of yours, you could thus add the "Unlicense license" to it?

aight, done! thanks for suggestion


Test: Collect any printed protobuf payload

Store any printed protobuf payloads in printedPayloads collection on invocations data
Fix issue where custom handling was not applied to trace payload if it was split into multiple messages

This looks good 👍 So I will probably just want to add more cases to the finalizePayload switch in my PR to support the dev mode payloads, or do you think I should just use the printedPayloads and parse out the data in the dev mode integration tests?

Either will be fine I think. If you feel it's more comfortable to have decoding configured in util it can go there (those payloads are not specific to dev mode)


Add stringIn1 parser

This parser builds a radix tree from non empty string alternatives.
Radix trees are interesting as they allow for efficient parsing of
string alternatives (e.g. enum names) without backtracking and require
only 1 character lookahead.
String alternatives are first sorted and then grouped by common non
empty prefix. Grouped string are then recursively grouped with the same
process. In the resulting tree, each group of substrings start with a
different character, which can be used to decide which alternative
branch to take.
This operator is inspired by fastparse stringIn one, and requires all
alternatives to be non empty.
Thank you for contributing to cats-parse!
This is a kind reminder to run sbt prePR and commit the changed files, if any, before submitting.

Is it ok to depend on scala-collection-compat to solve the cross-compilation problem with 2.12?

Codecov Report

Merging #110 (c2d6979) into main (bd8cef4) will decrease coverage by 0.34%.
The diff coverage is 98.07%.

@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
- Coverage   95.27%   94.92%   -0.35%
==========================================
  Files           6        7       +1
  Lines         740      808      +68
  Branches       59       79      +20
==========================================
+ Hits          705      767      +62
- Misses         35       41       +6

Impacted Files
Coverage Δ

core/shared/src/main/scala/cats/parse/Parser.scala
95.21% <95.83%> (-0.65%)
:arrow_down:

...e/shared/src/main/scala/cats/parse/RadixNode.scala
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd8cef4...c2d6979. Read the comment docs.

Thanks for the PR! This is something I have wanted to get to.
I'd like to make two suggestions:
1. Can we remove the stringIn1 API? It seems to me this can be an internal detail of how to combine Str parsers inside of oneOf much as we internally combine CharIn parsers.

The current implementation heavily relies of the fact that it takes strings and not parsers. I can see if I can internalize it in oneOf1 but it seems a bit different in semantics to me currently: there is no need for .backtrack when several alternatives share a common prefix. I fear that working below oneOf will hide this from us, but I can give it a try.

2. If you feel we should keep the stringIn API, I'm concerned that we don't seem to be deduplicating it anywhere. I'd rather accept Iterable, then make a distinct set and the if it has only one item just return Str. Also if we keep the API it should have a comment in particular describing the backtracking behavior of the method.

Deduplication happens implicitly when building the tree, but I can make it explicit first, before I sort. I modeled the pre-conditio after the one from oneOf but I can make it smarter to return a Str in case there is only one in the end.
I will document the (lack of) backtracking in the API

3. Since this is a performance improvement, can you add a benchmark? Users now have two ways to do this: oneOf + string1 or stringIn1, or if we don't want to expose the API internally we still need to choose. We need to show it is faster to use the tree. I suspect it will be in some cases, but maybe not all cases especially when there are few and distinct key words. But a benchmark will help us see. See the current benchmark directory for examples.

I will add those.

4. I have some suggestions on improving the performance of the matching loop but I'll wait till we have benchmarks so we can see if it is working.

Sure, let's see how it can be further improved.

Thanks for sending the PR.

Hello @johnynek,
I reworked this PR and made the following changes:

added a benchmark for the stringIn1 implementation
made the operator smarter in case there is only 0 or 1 alternatives
rewrote the radix tree implementation to use an array map, as the benchmark showed the Map was a big bottleneck (which I was supposing, but the benchmark showed it clearly)

I still didn't merge it with oneOf1 since the semantics of this parser is a bit different. The order of the string doesn't matter and it parses the longest match, and not the first match. I prefer not to mix them.
I still have a bug to fix though, and I will add tests that cover it.

The PR is now ready , I think. I ran the benchmarks and here are the results:
[info] Benchmark                         Mode  Cnt   Score   Error  Units
[info] StringInBenchmarks.oneOfParse     avgt   25  38,604 ± 3,312  ns/op
[info] StringInBenchmarks.stringInParse  avgt   25  22,861 ± 0,162  ns/op

I took your comments and feedback into account and pushed the new version. I kept the array based radix tree implementation due to the results of the benchmarks:
Arrays
Benchmark                         Mode  Cnt    Score   Error  Units
StringInBenchmarks.stringInParse  avgt   25  163,929 ± 4,582  ns/op

IntMap.get
Benchmark                         Mode  Cnt    Score   Error  Units
StringInBenchmarks.stringInParse  avgt   25  198,055 ± 3,762  ns/op

IntMap.contains + IntMap.apply
Benchmark                         Mode  Cnt    Score    Error  Units
StringInBenchmarks.stringInParse  avgt   25  231,887 ± 10,620  ns/op

oneOf
Benchmark                      Mode  Cnt    Score    Error  Units
StringInBenchmarks.oneOfParse  avgt   25  296,758 ± 22,775  ns/op

The IntMap implementation creates more objects (especially the Option for the result), or requires two lookups (contains+apply), which results in some overhead over the tree implementation.

after you add the laws and merge main, I'm ready to merge this.
Thanks.
Note #116 is a pretty big change you need to be a bit careful with (Parser1 became Parser and Parser became Parser0)

after you add the laws and merge main, I'm ready to merge this.
Thanks.
Note #116 is a pretty big change you need to be a bit careful with (Parser1 became Parser and Parser became Parser0)

I didn't have much time this weekend, I'll try to finish this tomorrow, and rebase everything properly.

I think I took all your comments into account. For the IntMap approach, see the benchmark results.

These are the latest results of the benchmark with the current code
Benchmark                         Mode  Cnt    Score   Error  Units
StringInBenchmarks.oneOfParse     avgt   25  325,339 ± 7,546  ns/op
StringInBenchmarks.stringInParse  avgt   25  154,768 ± 3,157  ns/op


connect-mongo error after updating to sails 0.10.0-rc8

Hi.
I just updated to version 0.10.0-rc8, and get the following error if I use mongo adapter as session store:
error: Could not load Connect session adapter :: connect-mongo

Error from adapter:
Error: Cannot find module '/nodejs/testApi/node_modules/connect-mongo/package.json'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Hook.Session.initialize (/usr/local/lib/node_modules/sails/lib/hooks/session/index.js:197:34)
    at Hook.bound [as initialize] (/usr/local/lib/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
    at /usr/local/lib/node_modules/sails/lib/hooks/index.js:124:33
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:425:17
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:419:17
    at Array.forEach (native)

Do you have the Connect session adapter installed in this project?
Try running the following command in your project's root directory:
npm install connect-mongo
(Note: Make sure the version of the Connet adapter you install is compatible with Express 3/Sails v0.10)

I am having this issue. I've created a brand new v0.10 project and later updated to v0.10.5. I have enabled/installed mongodb after the 0.10.5 update.

+1 for this! Having the same issues on Sails v0.10.5
For now im using the temporary fix mentioned above npm install<EMAIL_ADDRESS>and it's working but I have different Mongo configurations in env/development.js and env/production.js - Does anyone know the best way to configure sessions to use the different configurations?
At the moment in my config/session.js I have the following:
  adapter: 'mongo',
  url: process.env.MONGO_URL,
  collection: 'sessions',

This is working for my production setup but now local setup isn't working because I need to use:
  adapter: 'mongo',
  host: 'localhost',
  port: 27017,
  db: 'sails-dev',
  collection: 'sessions',

Appreciate any help anybody can offer.

Idk if anyone is still checking on here, but which version of connect-mongo is recommended to be using with sails and sails-mongo at v ^0.11? I can't find this info anywhere.

The latest connect-mongo on npm is 0.8.2, which should work. They also claim that the upcoming 1.x series will be compatible, so I think npm install connect-mongo --save should be all you need.

The latest connect-mongo 1.1.0 doesn't work.
Switching to "connect-mongo": "^0.8.2"    works.
Sails : v 0.11.4

@ram-you +1
I have exactly same situation. Thanks for the fix. 0.8.2 works.

The 0.8.2 fix crashes Heroku apps:
2016-01-14T14:15:38.355766+00:00 app[web.1]: > node app.js
2016-01-14T14:15:38.355766+00:00 app[web.1]:
2016-01-14T14:15:41.185732+00:00 app[web.1]: Could not load Connect session adapter :: connect-mongo
2016-01-14T14:15:41.178170+00:00 app[web.1]: Thu, 14 Jan 2016 14:15:41 GMT connect-mongo deprecated auto_reconnect option is deprecated. Use autoReconnect instead at node_modules/sails/lib/hooks/session/index.js:169:37
2016-01-14T14:15:41.185735+00:00 app[web.1]:
2016-01-14T14:15:41.185738+00:00 app[web.1]:     at new MongoStore (/app/node_modules/connect-mongo/lib/connect-mongo.js:114:19)
2016-01-14T14:15:41.185739+00:00 app[web.1]:     at Hook.SessionHook.initialize (/app/node_modules/sails/lib/hooks/session/index.js:169:37)
2016-01-14T14:15:41.185743+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:441:17
2016-01-14T14:15:41.185745+00:00 app[web.1]:     at Immediate.taskComplete (/app/node_modules/async/lib/async.js:440:13)
2016-01-14T14:15:41.185741+00:00 app[web.1]:     at /app/node_modules/sails/lib/hooks/index.js:74:14
2016-01-14T14:15:41.185746+00:00 app[web.1]:
2016-01-14T14:15:41.185742+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:451:17
2016-01-14T14:15:41.185745+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:383:17)
2016-01-14T14:15:41.185747+00:00 app[web.1]: Try running the following command in your project's root directory:
2016-01-14T14:15:41.185747+00:00 app[web.1]: Do you have the Connect session adapter installed in this project?
2016-01-14T14:15:41.185744+00:00 app[web.1]:     at _each (/app/node_modules/async/lib/async.js:46:13)
2016-01-14T14:15:41.185741+00:00 app[web.1]:     at Hook.bound [as initialize] (/app/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
2016-01-14T14:15:41.185749+00:00 app[web.1]:
2016-01-14T14:15:41.185749+00:00 app[web.1]: (Note: Make sure the version of the Connect adapter you install is compatible with Express 3/Sails v0.10)
2016-01-14T14:15:41.185736+00:00 app[web.1]: Error from adapter:
2016-01-14T14:15:41.185737+00:00 app[web.1]: TypeError: _.assign is not a function
2016-01-14T14:15:41.185748+00:00 app[web.1]: npm install connect-mongo
2016-01-14T14:15:41.182572+00:00 app[web.1]: A hook (`session`) failed to load!
2016-01-14T14:15:41.557171+00:00 app[web.1]: A hook (`orm`) failed to load!
2016-01-14T14:16:36.222217+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-01-14T14:16:36.222217+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-01-14T14:16:37.102017+00:00 heroku[web.1]: State changed from starting to crashed
2016-01-14T14:16:37.097839+00:00 heroku[web.1]: Process exited with status 137

@ram-you @frutality more info re: connect-mongo and the latest version of Sails here: https://github.com/balderdashy/sails/issues/3486
@parkeragee hmm - I'd suggest clearing the Heroku NPM cache (it looks like something could be going on with npm 3 and flattened deps, since it's trying to access a lodash method which doesn't exist, indicating it might be using a different version)  If you continue to see this, would you open a new issue?

Hi @mikermcneil , in the update https://github.com/balderdashy/sails-docs/commit/fdad9983f9cd1300886b66f4facb67af18a93fb0
you saied :

For example to use Mongo as your session store, you should use version 0.8.4 of connect-mongo.  First, run the following from your project's directory:

npm install<EMAIL_ADDRESS>--save

But there are neither 0.8.4 version of connect-mongo nor of sails-mongo
Thanks.


YubiHSM2 setup not working

Even if I install all packages still its saying
#dpkg -i yubihsm2-sdk/yubihsm-setup_1.0.1-1_amd64.deb
Selecting previously unselected package yubihsm-setup.
(Reading database ... 93214 files and directories currently installed.)
Preparing to unpack .../yubihsm-setup_1.0.1-1_amd64.deb ...
Unpacking yubihsm-setup (1.0.1-1) ...
dpkg: dependency problems prevent configuration of yubihsm-setup:
 yubihsm-setup depends on libyubihsm; however:
  Package libyubihsm is not installed.

dpkg: error processing package yubihsm-setup (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 yubihsm-setup

Can any one please advice !

The yubihsm-setup package depends on the libyubihsm package which is also part of the SDK. You'll have to install the provided package for libyubihsm first.
Closing as unrelated to this project - please see Yubico's YubiHSM2 documentation for questions about the device or the SDK.


Add London Support

This is a working branch for bringing London into the EVM.
In order to keep to do date with Ethereum upstream, we must actively keep up to date with its milestone updates. This is the hard fork following Berlin, and the London hard fork went live as of August 5th, 2021.
To track the progress of the ETH tests, go to the PR here: TODO!
NOTE: https://github.com/rust-blockchain/evm/pull/40 must be merged in first!
Todo

[x] EIP-3198: BASEFEE opcode

[x] Initial work
[x] Reviewed and final

[x] EIP-3529: Reduction in refunds

[x] Initial work
[x] Reviewed and final

[x] EIP-3541: Reject new contracts starting with the 0xEF byte

[x] Initial work
[x] Reviewed and final

Other EIPs relating to London are not relating to the evm.

Will do this soon. Sorry for the delay!


fix(refactor): Replacing problematic _this with this

:tada: This PR is included in version 3.4.7 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Fix backspace when selecting multiple blocks in the same cell

This PR fixes #77.

I just added two tests to check it's working as expected.
I also simplified the first condition


Figure out why CodeClimate is unhappy

https://codeclimate.com/github/how-is/how_is/builds/1

Is this now closable?

yup! thanks.


Handle pre-saved (exists only on Atom) buffer

Some of the reported bugs might be caused by this.

+1
I get this error a lot, same steps as @richrace


Search Across All Fields of a Collection

Currently following forms of HTTP GET  Requests are supported:
GET api/heroes/42       // the character with id=42
GET api/heroes?name=^j  // 'j' is a regex; returns heroes whose name starting with 'j' or 'J'

To mock a Search Component, it would be preferable to find across any fields, in a given Collection. Something like:
GET api/heroes?search=^j  // 'j' is a regex; returns heroes seen in **any** of the fields starting with 'j' or 'J'

A solution might be to provide a function that takes a collection input,  an [ optional ] searchKey and returns a modified collection that contains an additional array property searchKey .  This searchKey array property will contain all keywords pertinent to that record :
//
function searchAnything( collection: heroes[] , searchKey = "search") {
  return  heroes.map( hero => {
    hero[ searchKey ] = // parse keywords from *hero* record

    return hero;
 } );
}

For example to make Heroes search anything, usage would look like :
import { InMemoryDbService } from 'angular-in-memory-web-api';

export class InMemHeroService implements InMemoryDbService {
  createDb() {
    let heroes = [
      { id: '1', name: 'Batman', movies: ['The Dark Knight'] },
      { id: '2', name: 'Bond', movies: ['Casino Royale']  }
    ];

   let villians = [
    { id: '1', name: 'Joker', movie: ['The Dark Knight'] }
   ];
    return { searchAnything( heroes ), villians };
  }
}

Great question! I'm here to ask about advanced searches also. I was thinking that we should be able to:
1: send a regex to the root in order to check for matches in any collection. (general matching)
2: send a regex to an endpoint (omitting property) in order to check for matches within any properties in that collection.
3: send a regex to search two (or more) collections for matches.
This could mock backend search and be much more fun! Any ideas how to accomplish this?


Add rust version of directory method

Excellent @mrageh Can you add some tests to verify the behavior is the same as the built in method in weird situations?  Like the A, B, C tests in the chop_basename test.  Also we've just switched away from includes to modules mod.  So if you could change that I'll verify this and merge it! :+1:

@mrageh you can borrow from there test cases

@danielpclark I've added the tests and moved over to use pub mod to include the method.

Awesome!  I think you're underselling the improvement.  On my Netbook I'm seeing 36% performance increase.  Would you like to change the number to this in the README?
bench_rust_directory?	 0.173023	 0.170350	 0.175760	 0.181842	 0.169162
 PASS (1.03s) :: bench_rust_directory?
bench_ruby_directory?	 0.277740	 0.272405	 0.285280	 0.272360	 0.272193
 PASS (1.54s) :: bench_ruby_directory?

Wow that's a huge improvement on your machine, on my mac the stats are different;
bench_rust_directory?    0.158879        0.158444        0.155209        0.156522        0.161104
 PASS (0.82s) :: bench_rust_directory?
bench_ruby_directory?    0.203498        0.209988        0.203260        0.201285        0.205856
 PASS (1.05s) :: bench_ruby_directory?

The way I calculated the performance was ((1.05 - 0.82) / 1.05) * 100

Yeah.  My netbook is slow and I haven't been running any other numbers on it.  But since it's a slower machine I guess Rust is just that much faster.

Great job on this btw!

Thanks this is the first time I've done something useful in Rust


Use filesystem paths overlays in file_roots to provide target pillar data (instead of symlinks in source repositories)

There is no need to create symlinks within source profile pillars repository ("overrides") and all other repositories ("commons" and "defaults"). This can be achieved using filesystem paths overlays by configuring file_roots in Salt master (or masterless minion) via configure_salt.py script.
The benefits are:

No noisy diff (or meld) output containing also target profiles during comparison.
Cleaner repositories (no symlinks automatically generated by configure_salt.py).

Make sure to update populate_initial_project_repositories.sh which will require no bootstrap subdirectories in all pillars.

Cross-reference to umbrella task #8.

It's done.
Commit a30bd34404869e5510d5311f3fdf440f56d91975 merges working Salt master auto-configuration (using configure_salt.py script) using filesystem overlays to provide bootstrap target profile.


Feat: TDD table hover to chart highlight interaction

Adds highlight/hover interaction to custom TDD charts when TDD table is hovered over.
Also moves some methods out of utils.ts

/review

AI Code Review is in progress (usually takes <10 minutes unless it's a very large PR).


work with salted WAMP-CRA too

Codecov Report

Merging #805 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #805      +/-   ##
==========================================
- Coverage   61.63%   61.62%   -0.02%
==========================================
  Files          49       49
  Lines       10883    10886       +3
  Branches     1850     1851       +1
==========================================
  Hits         6708     6708
- Misses       3618     3621       +3
  Partials      557      557

Impacted Files
Coverage Δ

autobahn/asyncio/wamp.py
45.11% <0%> (-0.35%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2874d7d...dd7b0f6. Read the comment docs.

nice! so the component alternative is really coming


“Linkers and Loaders” contains only dead links

Language Agnostic → Compiler Design → “Linkers and Loaders - John R. Levine” points to https://www.iecc.com/linker/ but the latter contains only dead links.

Should be removed. Can you submit a PR?

No

@dilyanpalauzov I think you should be use a proxy to visit the ebook link

@dilyanpalauzov I think you should be use a proxy to visit the ebook link

Actually some ref links are dead link(tet, rtf file link), but the html link can be redirect to the site which  looks nomarl.

Some links indeed work, but most of them are dead.  E.g. https://www.iecc.com/linker/linker01.html works and https://www.iecc.com/linker/linker02.html is invalid.  Under these circumstances referencing the source is not good — the user has to click a lot only to find out, that most of the information is missing.


fix: initialization of Prime calculator form + add comments

Changes

fix Prime calculator form initialization
add comments

I'd also recommend decoupling the Form index file a bit, using hooks for example. Finally, we'll need to add tests to cover all the other scenarios added when the form was wired up.

Nice job, this looks very good 👍
I can't approve since I opened the PR, but feel free to approve and merge.


Add global search capabilities

I am interested if we can add the ability to programatically search (like cmd/ctrl + p) through all block. I checked and there is a specific API call (https://www.notion.so/api/v3/searchBlocks) that is used, although the output is a little more puzzling on how it narrows down to the shown content.
It would be neat to some how surface the block's title/type and the content (much like how the search modal works now).

Wish (finally) granted! Will be part of upcoming release via https://github.com/jamalex/notion-py/pull/83


Not found any node for islb

DEBUG: Recivied data: {"response":true,"id":2462221,"ok":false,"errorCode":500,"errorReason":"Not found any node for islb."}
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: {code: 500, error: Not found any node for islb.}

I am getting the above error after 2 or 3 days of the server running.
To fix this again I have to do docker-compose up.

this error occur again. maybe you can find error in biz and islb log

Okay. How can I fix this issue? I am using v0.4.6

What platform are you running the node on?

Digital Ocean (Docker)

yes, same issue here, I have to re composed to fix this

Please take a look at your cpu usage when error occur

Okay, Thank you, I will do that and share a pic. I am using a $20 plan on the digital ocean for testing and I got this error during testing like only 2 peers where connected on the call.
Any suggestion like 4GB | 2vCPUs can handle how many users at a time?

Ran into this and I'm curious if this is the culprit https://github.com/cloudwebrtc/nats-protoo/blob/master/protoo.go#L49
When the nats connection dies, a "close" event is emitted on nats-protoo that doesn't seem to be handled in the node process

+1.  At times, "Service node [sfu] not found" errors are encountered. Had to docker-compose up again to rectify. Need fix for this. Raises reliability issues. Any idea on how I can handle them apart from re composing docker? (I use digitalocean for hosting the server.)


Removed console.log

Just removed the annoying console.log.

Thanks. Updated directly so that no other file changes take place.

Perfect. Thanks!


lib.customisation.makeScope: Make overrideScope consistent with makeScopeWithSplicing

Right now converting makeScope to makeScopeWithSplicing is not transparent to users and requires adding a warning for overrideScope' in the set itself.
Warning and overrideScope' were added in 2018 b9dce11712d2bfc8cd367df5a7f737a5cec1e252 and there should be no users left after 5 years.
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Please don't self-merge when the PR is actively being reviewed and commented on..

Please don't self-merge when the PR is actively being reviewed and commented on..
(My approval happened at the exact same second as the merge, did you enable auto-merge?)

Yes enabled auto merge

I see, I think that's okay then, though I still think self-merges should be avoided when possible (in this case I would've merged it for you)

Thanks for the reviews

Yeah, this was the first PR I saw it in and decided to try it.


Improve component tests with ComponentState

Fixes #777

PR Checklist

[x] Tests
[ ] Documentation
[x] Added entry to CHANGELOG.md
[ ] Tried the feature on a public network

I'm also debating whether we should document the testing pattern in CONTRIBUTING. Maybe it's simple enough to follow without documenting it. What do you think?

IMO is simple enough


Retrieval via triplestore

Added the option for retrieving instances via triplestore #290

The following arguments use_triplestore and triplestore_address  are added to reasoner and KB constructor.
Added documentation for that and how to set up a jena-fuseki server for launching a triplestore.
Added example for using the triplestore feature.

Added example for benchmarking #273
The newly added script examples/concept_learning_evaluation.py will generate the following result (may slightly differentiate on each execution because of the randomness) :
                 LP         EvoLearner               CELOE                OCEL
0                     F1, Acc, RunTime    F1, Acc, RunTime    F1, Acc, RunTime
1              Aunt  0.99, 1.0, 2.8754   0.81, 0.8, 5.0038   0.8, 0.78, 5.0042
2           Brother   1.0, 1.0, 0.3405       1.0, 1.0, 0.0    1.0, 1.0, 0.0015
3            Cousin   1.0, 1.0, 2.5095  0.79, 0.78, 5.0238   0.72, 0.73, 5.005
4     Granddaughter   1.0, 1.0, 0.3125    1.0, 1.0, 1.1924  0.91, 0.91, 5.0099
5             Uncle   1.0, 1.0, 1.5328   0.9, 0.89, 4.9546  0.89, 0.88, 5.0265
6  Grandgrandfather    1.0, 1.0, 0.299    1.0, 1.0, 0.1452    1.0, 1.0, 0.6274

Added some test cases for KB and quality metrics
Made some documentation corrections

That is great! Thanks a lot!


tests: distributed testing

Distribute Invenio testsuite and overlay testsuites on multiple hosts to speed up testing.
Work is already ongoing on creating docker base containers for Invenio, that can be used to speed up the initial build of the VM image. That will already shave off a considerable amount from the build. To further speed up the build process, we should allow our testsuite to be distributed over multiple hosts.
Possible options include e.g. http://pytest.org/latest/xdist.html#xdist as well as https://pypi.python.org/pypi/distributed-nose/0.1.2

see also #2986 by @crepererum

Please check http://docs.pytest.org/en/latest/xdist.html for Invenio 3 packages.


Feed Validation

Hi,
according to Feed Validation Service, we have some issues with our feed xml.
-> https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fribice.ba%2Findex.xml
Can open a PR if you like.
Cheers and happy easter
midzer

A PR would be great.


release-20.1: cli: statement-diag command now shows all times in UTC

PR: https://github.com/cockroachdb/cockroach/pull/51457
From release notes:

The statement-diag command now shows all times in UTC. [#51457][#51457] {% comment %}doc{% endcomment %}

Closing, as this doesn't need to be documented.


Follow Rust idioms

This includes:

Default derive Eq
Use if let instead of if is_some, etc.
Remove unnecessary explicit into_iter
Deriving Default instead of a manual implementation
Removing unnecessary lifetimes
Refactoring the remove_times method to be cleaner/more idiomatic
Adding tests for remove_times

With these changes, there are no clippy lints for multiset.rs except
the use_self lint, which suggests using Self instead of
HashMultiSet in several places.

Thanks, I've been meaning to go back and make this more idiomatic.
I'd be happy to accept changes to conform to clippy's use_self lint too if you'd like to add that. Oddly I wasn't able to reproduce this lint warning on either stable nor nightly-2019-10-17 (most recent clippy build).
Nightly clippy raised a few other lint warnings, but no pressure to patch those in this PR.
$ rustup run nightly-2019-10-17 cargo clippy
    Checking multiset v0.0.5 (/mnt/tank/sync/s/1/multiset)
warning: needlessly taken reference of left operand
  --> src/multiset.rs:48:16
   |
48 |             if &self.duplicate_index >= count {
   |                ---------------------^^^^^^^^^
   |                |
   |                help: use the left value directly: `self.duplicate_index`
   |
   = note: `#[warn(clippy::op_ref)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref

warning: redundant clone
   --> src/multiset.rs:399:27
    |
399 |         let mut ret = self.clone();
    |                           ^^^^^^^^ help: remove this
    |
    = note: `#[warn(clippy::redundant_clone)]` on by default
note: this value is dropped without further use
   --> src/multiset.rs:399:23
    |
399 |         let mut ret = self.clone();
    |                       ^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone

The use_self lint is under pedantic, which is by default "allowed" (i.e. not warned). It will only appear if you either run it with cargo clippy -- -W clippy::pedantic or add the line #[deny(clippy::pedantic)] to the file.
I hadn't thought to check nightly clippy, good call.
Honestly, I feel like there are a lot of places where using Self would make it less readable, not more. But that's a personal call. I'll leave it to you.
I made a few more changes to things I missed on the first round, see what you think!

TIL about the pendantic clippy lints. Thanks for explaining that.
I'm not going to be a stickler about the Self thing. Over time I'm sure the style conventions for this particular crate will get clearer, but for now taking hints from clippy and current idioms is great.
My only hesitation to merge this now is what I commented on inline about the Add/Sub signature changes.

Glad the tip about pedantic lints helped!
See my comments on the Add trait. Would you prefer me to add an Add/Sub implementation for &HashMultiSet<T> here or in a different pull request?

I went ahead and merged this as moving from self to mut self (no reference) is not a signature change and this PR has been pending for a month.


feature: EXPIRE or TTL command can support the keys of hash type?

EXPIRE or TTL command can support the keys of hash type?

is this going to happen? it's impossible to delete hash keys....

@felixsanz You can either

delete the whole hash by hclear name,
or delete a key-value tuple from the hash by hdel name key.

@ideawu yes but none of those work with redis client

@felixsanz I have submit an issue on phpredis's Issue List: https://github.com/phpredis/phpredis/issues/905 You can ask the author to support this feature in that issue.


Inconsistent behavior in webkit-based browsers

REF https://github.com/Canutin/svelte-currency-input/issues/40


Raster query grid bounds

[ ] I added an entry to CHANGELOG.md if knowledge of this change could be valuable to users.

Here is a brief summary of what I did:

This PR changes the QueryRectangle struct to combine a temporal and a spatial query.
VectorQueryRectangle use the same components as before just different composition.
RasterQueryRectangle now use a GeoTransform and GRidBounds in Pixels. TODO: remove GeoTransform. Get origin from source operators!
All QueryRectangles are now created using a static constructor method.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1785 of 1881 (94.9%)  changed or added relevant lines in 74 files are covered.
24 unchanged lines in 10 files lost coverage.
Overall coverage decreased (-0.04%) to 87.984%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

operators/src/mock/mock_raster_source.rs
22
23
95.65%

operators/src/processing/neighborhood_aggregate/tile_sub_query.rs
23
24
95.83%

operators/src/util/raster_stream_to_geotiff.rs
80
81
98.77%

services/src/api/model/operators.rs
1
2
50.0%

operators/src/processing/interpolation/mod.rs
23
25
92.0%

operators/src/processing/temporal_raster_aggregation/first_last_subquery.rs
5
9
55.56%

operators/src/processing/meteosat/mod.rs
6
12
50.0%

services/src/handlers/plots.rs
5
13
38.46%

operators/src/adapters/sparse_tiles_fill_adapter.rs
0
9
0.0%

operators/src/processing/rasterization/mod.rs
87
99
87.88%

Files with Coverage Reduction
New Missed Lines
%

operators/src/processing/temporal_raster_aggregation/first_last_subquery.rs
1
67.53%

services/src/datasets/external/gbif.rs
1
96.37%

services/src/datasets/external/nature40.rs
1
84.76%

services/src/handlers/datasets.rs
1
79.52%

services/src/pro/contexts/postgres.rs
1
94.79%

services/src/pro/handlers/drone_mapping.rs
1
95.12%

services/src/datasets/external/netcdfcf/mod.rs
2
85.74%

datatypes/src/primitives/query_rectangle.rs
4
86.49%

datatypes/src/raster/tiling.rs
5
89.22%

operators/src/source/gdal_source/loading_info.rs
7
97.75%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
90541

Relevant Lines:
102906

💛  - Coveralls


auto-stop-idle scripts sometimes not working.

I've tried these scripts on both code editor and jupyter lab apps. Yesterday they were working. Today, the scripts seem to be started as indicated by the last log in the LifecycleConfigOnStart
JupyterLab/default/LifecycleConfigOnStart
+ echo */2 * * * * /bin/bash -ic '/opt/conda/bin/python /var/tmp/auto-stop-idle/sagemaker_studio_jlab_auto_stop_idle/auto_stop_idle.py --idle-time 300 --hostname <IP_ADDRESS> --port 8888 --base-url /jupyterlab/default/ --ignore-connections True --skip-terminals False --state-file-path /var/tmp/auto-stop-idle/auto_stop_idle.st >> /var/log/apps/app_container.log'

/CodeEditor/default/LifecycleConfigOnStart
echo */2 * * * * /bin/bash -ic '/opt/conda/bin/python /var/tmp/auto-stop-idle/sagemaker_code_editor_auto_shut_down/auto_stop_idle.py --time 300 --region eu-central-1 >> /var/log/apps/app_container.log'

then:
the last few JupyterLab/default logs only show:
[I 2024-03-28 15:13:50.675 ServerApp] Client connected. ID: b897bf3a043b44db9b39988623623653
[I 2024-03-28 15:13:54.440 ServerApp] Client disconnected. ID: b897bf3a043b44db9b39988623623653

repeated several times with different IDs, instead of the usual logs where the last activity's time in the JupyterLab is tracked.
The /CodeEditor/default logs weren't shown yesterday at all. Funny enough, the script was working as intended.
Today, however, they are showing, just now outputting anything useful. And the script is also not working.
2024-03-28 15:05:53,228 INFO success: codeeditorserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[15:05:53] Extension host agent started.
[15:06:26] [<IP_ADDRESS>][ad61f395][ManagementConnection] New connection established.
[15:06:26] [<IP_ADDRESS>][dabd5c36][ExtensionHostConnection] New connection established.
[15:06:27] [<IP_ADDRESS>][dabd5c36][ExtensionHostConnection] <310> Launched Extension Host Process.

Have you experienced something like this? I find it odd, that it's suddenly behaving like this without any apparent reason.

UPDATE
Apparently this might have to do with a new Sagemaker Distribution image. Yesterday, the latest Sagemaker Distribution image was 1.5. Today 1.6 seems to be the newest one. I tried this with the 1.5 version and it worked again. Then again with the 1.6 version and it doesn't work. This might be worth investigating to make sure the LCC works with the newest Sagemaker Distribution images

Thanks a lot! Not sure if I did something wrong, but for me, in version 1.6 this was working great, but the LCC was exiting with non zero status in version 1.5. To fix this, I changed one line in your code to this:
status="$(dpkg-query -W --showformat='$${db:Status-Status}' "cron" 2>&1)" || status="not-installed"
this prevents the non-zero exit while the logic stays the same. Just in case someone else comes across this issue.

Is there an analogous update for the code editor as well that someone can post?


Fix pgm lists

@dwightguth please review.
I've cleaned up a bit the list generation mechanism.
From the user specification of Es ::= List{E,","} I first generate three productions which can be used directly in rules:
Es ::= Es "," Es [right, userList, klabel(...)]
Es ::= ".Es"     [userList, klabel(...)]
Es ::= E         [userList]

For programs though these don't work so well, so I'm detecting these productions and generate a different pattern:
Es#Terminator ::= "" [klabel('.Es)]
Ne#Es ::= E "," Ne#Es [klabel('_,_)]
Ne#Es ::= E Es#Terminator [klabel('_,_)]
Es ::= Ne#Es
Es ::= Es#Terminator // if the list is *

I'm sure there are ways to improve this, but it makes sense for the tests we have right now. I'm expecting this to evolve once the implementation gets more complete.

I haven't looked at this too closely, but I propose you move the production-modifying code into any module that imports a module in kast.k called "LIST-EPSILON"

@dwightguth please review.
This ended up being a lot more involved than I anticipated.
I had to change a bit how we create parsers and how we handle them when we consider caching.
Right now I'm using the seed module, which imports all the modules which will generate the desuggared productions. Each time I want to recreate this module, I use the RuleGrammarGenerator class to regenerate the final grammars, since is pretty cheap to do so.

@bmmoore please review.
I've been discussing this pull request with @dwightguth, and we reached the conclusion that it's not the perfect solution, but is something that can work for now. Please have a look at this and maybe suggest some improvements.
The problem was that I had to add specific productions to the grammar in order to parse different inputs. For example parsing lists in programs requires something different than rules and configurations. To fix this, I created the concept of a seed module, which contains the original module, and some marker imports. These marker imports, tell the parser how and how to generate productions. Another problem is that those productions may not be to any use to the user. A good example here is rewriting the grammar to support priorities. This will add new sorts, which we don't want to interfere with variable type inference for example. This is why I create two different modules: one for disambiguation, and one for parsing. I use the parsing module to generate the AST and eliminate some ambiguities related to priorities/associativity, and I use the disambiguation module for the subsort lattice and other information that are visible to the user.
@dwightguth please add other things that I forgot in my comment above.

I reviewed the design of this with Radu, and I think we need only a little change.
The "parsing module" is already completely encapsulated inside the parser implementation, so no code outside of the parser has to know or care that the information is kept in kore data structures, or ever deal with that object as if it was a module that was part of the definition.
The "disambiguation module" is currently exposed through a public acessor, but we saw it is used in only two places and seems to be used incorrectly (radu may need dwight's help to fix this). So, it can be changed to also be completely encapsulated, and then I will care very little about the contents of the module. The only remaining concern is that because it's used for various disambiguation calculations, we might get confusing bugs if the generated disambiguation module isn't faithful to the user's syntax declarations - I think the best we can do there is check that the code copies most productions over unchanged, which I'll check when I read the code after further changes from Radu.
A little more detail on the contents of the disambiguation module:
there are only two things in the generated productions that later compiler passes might need to deal with, which are the productions for the loose versions of cells, and for semantic casts.
The cells are already represented in parse results by using a constant number of reserved labels, including #cells and #dots. Existing passes handle these just by looking at the strict versions of the cell productions. The semantic casts are currently represented by a family of labels like #semanticCastToInt, but I think the current code uses an ugly String.startsWith() test to recognize them instead of properly lookup up productions in the disambiguation module, and there are tons of alternative representations we could use.

I obviously don't know what you guys discussed in your recent meetings, due to my (overly-extended) travel, but I just want to remind ourselves what we discussed in our meetings before I left, which should still be valid: List{Sort,Separator} is just syntactic sugar in Full K, which the frontend desugres differently in different generated KORE modules.  The generated KORE modules will have no List{Sort,Separator} anymore, but just normal productions, and they are used for generating different parsers for different tasks.  What @radumereuta said in his original message is a reasonable start.  It should be easy to change that if needed.  What I did not see there were rules in the semantics making use #rewrite(Module,Term) to translate the K terms generated by the program parser into K terms recognizable by the semantics; for example, you may have different KLabels for the program lists vs the semantics lists.

I just commited the modifications we've discussed earlier today, so @bmmoore @dwightguth please review.
@grosu what I ended up with, is something similar. I start from a module that the user specified, and then from that one I generate modules for different purposes.
For parsing rules, I take all the included syntax, and generate a module specialized for that purpose. To parse programs, I may take the same module and build a different module which is more appropriate for parsing programs.
After all this, I have a few constants:

each module contains a single parser associated with it. Note that to parse rules, programs and configurations I may need something else, derived from what the users specified, so I generate internally these modules.
the implementation is clean, since all the modifications are done using only KORE. The parser generator takes as input a module and returns a parser object.

Regarding lists and labels. After a few days discussing with Dwight and Brandon we come up with a solution where I'm actually using two modules. One is the parser module, and I'm using it to generate the internal states of the parser (and that's it). The other one, called the disambiguation module, is used to disambiguate the AST. The parser will produce nodes only in this second module. The first one can have extra sorts, and extra productions that may come from rewriting the grammar to account for priorities/associativity or other transformations, but the disambiguation module is a simple extension that can be used to easily filter and analyze the AST.
I hope I'm making sense since this is a recent result, and we're still working on it.

okay, I am done reviewing for now, but I'm going to have to do another pass once some of the crufty changes in this diff are reverted.

Looks much better but there is still some small stuff I'd like to see fixed.

That test worked because I was using the configuration parser, which had the .Ids token.
I changed it to program parser, and renamed groundParser to configParser.

Just delete the getConfigParser method you created. It doesn't seem to be used anywhere except TestTiny which is commented out anyway because it doesn't correctly handle the new strictness.

Done.

Merge if tests pass.


Default value for ngModel

The fix for initial value is perfect, but the [(ngModel)] do not reflect the display value when the model is changed manully

I think we need ngOnChanges implementation.

This has been fixed and released with 0.7.0. Please verify the change and close it.


Apt-Update and packages.microsoft.com, Clearsigned

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/debian9/runtime-current
Operating System: Linux Debian 9 - x64
When doing an apt-update found the following issue
E: Failed to fetch https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/dists/stretch/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
This is occurring with any apt get function from packages.microsoft.com

Duplicate of https://github.com/dotnet/core/issues/3598


Switch to Grafana 6

Grafana 6 is out, we should switch to it

Is these dashboards support on grafana 6 ?

We didn't test it with Grafana 6, so it's not officially supported, but I expect it would work fine.

Just now I have tested with grafana v6.1.4, it is working fine. Thanks

I encounter a problem in grafana 6:
https://github.com/grafana/grafana/issues/17684
I'm waiting with the new grafana version


[Source compatibility suite] BricBrac fails to build tests using swift package on Linux

Describe the bug
The source compatibility suite project https://github.com/glimpseio/BricBrac/commit/92447f2c02b62c373f60d8e76e684a645fcd570a is failing to build when --build-tests is passed to the invocation used to build the swift package on Linux.
Steps To Reproduce
Steps to reproduce the behavior:

Checkout https://github.com/glimpseio/BricBrac/commit/92447f2c02b62c373f60d8e76e684a645fcd570a
Run xcrun swift build --build-tests -Xswiftc -enable-testing

The output will contain
/build/swift-source-compat-suite/project_cache/BricBrac/Tests/LinuxMain.swift:5:28: error: type 'BricBracTests' has no member 'allTests'
    testCase(BricBracTests.allTests),

Expected behavior
Expecting the project to build correctly
Environment (please fill out the following information)
Apple Swift version 5.8-dev (LLVM 6060385d2e829e0, Swift dc033557ccaed64)
Target: x86_64-apple-macosx10.15.4

https://ci.swift.org/job/swift-source-compat-suite-ubuntu-2004/77/artifact/build/swift-source-compat-suite/FAIL_BricBrac_5.3_BuildSwiftPackage.log

Xfailed project on linux here: https://github.com/apple/swift-source-compat-suite/pull/748

The project is no longer XFAILed.


[JsonPatch] Add test operation support

Test operation in code today does not compare anything. Removing the TODO from code. Pasting code snippet for reference.
var conversionResultTuple = PropertyHelpers.ConvertToActualType(
                typeOfFinalPropertyAtPathLocation,
                operation.value);

            // conversion successful
            if (conversionResultTuple.CanBeConverted)
            {
                // COMPARE - TODO
            }
            else
            {
                throw new JsonPatchException<T>(operation,
                    string.Format("Patch failed: provided value is invalid for property type at location path: {0}",
                        operation.path),
                    objectToApplyTo);
            }

@kirthik Do we currently return a 400 level error response if someone tries a test operation?

No. We don't. It does nothing today.

This issue was moved to aspnet/JsonPatch#1


error deploying to heroku

Postdeploy exit code was not 0
heroku build log:
Operations to perform:
  Apply all migrations: stream_twitter, admin, sessions, auth, sites, socialaccount, contenttypes, account
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying account.0001_initial... OK
Applying account.0002_email_max_length... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying sessions.0001_initial... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Applying socialaccount.0001_initial... OK
Applying socialaccount.0002_token_max_lengths... OK
Applying socialaccount.0003_extra_data_default_dict... OK
Applying stream_twitter.0001_initial... OK
Installed 116 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/init.py", line 350, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/init.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/app/pytutorial/management/commands/after_deploy.py", line 17, in handle
tweet.delete()
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 862, in delete
return collector.delete()
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/deletion.py", line 316, in delete
sender=model, instance=obj, using=self.using
File "/app/.heroku/python/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 192, in send
response = receiver(signal=self, sender=sender, **named)
File "/app/.heroku/python/lib/python2.7/site-packages/stream_django/managers.py", line 77, in activity_delete
result = feed.remove_activity(foreign_id=instance.activity_foreign_id)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/feed.py", line 106, in remove_activity
url, signature=token, params=params)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 225, in delete
return self._make_request(self.session.delete, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 170, in _make_request
return self._parse_response(response)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 115, in _parse_response
self.raise_exception(parsed_result, status_code=response.status_code)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 207, in raise_exception
raise exception
stream.exceptions.ApiKeyException: api_key is invalid

This should be fixed now by https://github.com/GetStream/django_twitter/commit/63f78d2257f3c807de66a3118cc0ba23198df745
Please reopen if it is still broken.

Build succeeded this time, about 40 minutes later, but url returns Server Error (500).

@wondersoftheworld could you be more specific on how you get the error?

Sure @tbarbugli.
I deployed on heroku. It took a very long time for the build to complete (about 40 minutes). Once deployment was completed,  when I checked the website (twito.herokuapp.com), I got the 500 server error. I hope this is clear.

weird, can you append the output of heroku logs?

-----> Python app detected
-----> Installing python-2.7.12
$ pip install -r requirements.txt
Collecting dj-database-url==0.3.0 (from -r requirements.txt (line 1))
Downloading dj_database_url-0.3.0-py2.py3-none-any.whl
Collecting Django==1.9 (from -r requirements.txt (line 2))
Downloading Django-1.9-py2.py3-none-any.whl (6.6MB)
Collecting gnureadline==6.3.3 (from -r requirements.txt (line 3))
Downloading gnureadline-6.3.3.tar.gz (2.5MB)
Collecting gunicorn==19.2.1 (from -r requirements.txt (line 4))
Downloading gunicorn-19.2.1-py2.py3-none-any.whl (110kB)
Collecting ipython==2.4.1 (from -r requirements.txt (line 5))
Downloading ipython-2.4.1-py27-none-any.whl (2.8MB)
Collecting Pillow==2.7.0 (from -r requirements.txt (line 6))
Downloading Pillow-2.7.0.tar.gz (7.4MB)
Collecting psycopg2==2.5.4 (from -r requirements.txt (line 7))
Downloading psycopg2-2.5.4.tar.gz (682kB)
Collecting pytz==2014.10 (from -r requirements.txt (line 8))
Downloading pytz-2014.10-py2.py3-none-any.whl (477kB)
Collecting requests==2.5.1 (from -r requirements.txt (line 9))
Downloading requests-2.5.1-py2.py3-none-any.whl (464kB)
Collecting six==1.9.0 (from -r requirements.txt (line 10))
Downloading six-1.9.0-py2.py3-none-any.whl
Collecting stream-django==1.3.1 (from -r requirements.txt (line 11))
Downloading stream-django-1.3.1.tar.gz
Collecting stream-python==2.3.8 (from -r requirements.txt (line 12))
Downloading stream-python-2.3.8.tar.gz
Collecting whitenoise==1.0.6 (from -r requirements.txt (line 13))
Downloading whitenoise-1.0.6-py2.py3-none-any.whl
Collecting autopep8 (from -r requirements.txt (line 14))
Downloading autopep8-1.2.4-py2.py3-none-any.whl (41kB)
Collecting django-allauth==0.25.2 (from -r requirements.txt (line 15))
Downloading django-allauth-0.25.2.tar.gz (408kB)
Collecting rollbar (from -r requirements.txt (line 16))
Downloading rollbar-0.13.6.tar.gz (46kB)
Collecting pyjwt==1.3.0 (from stream-python==2.3.8->-r requirements.txt (line 12))
Downloading PyJWT-1.3.0-py2.py3-none-any.whl
Collecting httpsig==1.1.2 (from stream-python==2.3.8->-r requirements.txt (line 12))
Downloading httpsig-1.1.2-py2.py3-none-any.whl
Collecting pep8>=1.5.7 (from autopep8->-r requirements.txt (line 14))
Downloading pep8-1.7.0-py2.py3-none-any.whl (41kB)
Collecting python-openid>=2.2.5 (from django-allauth==0.25.2->-r requirements.txt (line 15))
Downloading python-openid-2.2.5.tar.gz (301kB)
Collecting requests-oauthlib>=0.3.0 (from django-allauth==0.25.2->-r requirements.txt (line 15))
Downloading requests_oauthlib-0.7.0-py2.py3-none-any.whl
Collecting pycrypto (from httpsig==1.1.2->stream-python==2.3.8->-r requirements.txt (line 12))
Downloading pycrypto-2.6.1.tar.gz (446kB)
Collecting oauthlib>=0.6.2 (from requests-oauthlib>=0.3.0->django-allauth==0.25.2->-r requirements.txt (line 15))
Downloading oauthlib-2.0.0.tar.gz (122kB)
Installing collected packages: dj-database-url, Django, gnureadline, gunicorn, ipython, Pillow, psycopg2, pytz, requests, six, pyjwt, pycrypto, httpsig, stream-python, stream-django, whitenoise, pep8, autopep8, python-openid, oauthlib, requests-oauthlib, django-allauth, rollbar
Running setup.py install for gnureadline: started
Running setup.py install for gnureadline: finished with status 'done'
Running setup.py install for Pillow: started
Running setup.py install for Pillow: finished with status 'done'
Running setup.py install for psycopg2: started
Running setup.py install for psycopg2: finished with status 'done'
Running setup.py install for pycrypto: started
Running setup.py install for pycrypto: finished with status 'done'
Running setup.py install for stream-python: started
Running setup.py install for stream-python: finished with status 'done'
Running setup.py install for stream-django: started
Running setup.py install for stream-django: finished with status 'done'
Running setup.py install for python-openid: started
Running setup.py install for python-openid: finished with status 'done'
Running setup.py install for oauthlib: started
Running setup.py install for oauthlib: finished with status 'done'
Running setup.py install for django-allauth: started
Running setup.py install for django-allauth: finished with status 'done'
Running setup.py install for rollbar: started
Running setup.py install for rollbar: finished with status 'done'
Successfully installed Django-1.9 Pillow-2.7.0 autopep8-1.2.4 dj-database-url-0.3.0 django-allauth-0.25.2 gnureadline-6.3.3 gunicorn-19.2.1 httpsig-1.1.2 ipython-2.4.1 oauthlib-2.0.0 pep8-1.7.0 psycopg2-2.5.4 pycrypto-2.6.1 pyjwt-1.3.0 python-openid-2.2.5 pytz-2014.10 requests-2.5.1 requests-oauthlib-0.7.0 rollbar-0.13.6 six-1.9.0 stream-django-1.3.1 stream-python-2.3.8 whitenoise-1.0.6
$ python manage.py collectstatic --noinput
73 static files copied to '/app/static', 73 post-processed.
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 52.8M
-----> Launching...
Released v5
https://twito.herokuapp.com/ deployed to Heroku

Hmmm, the output seems fine. Could you try deploying a new one and see if that has the same problem. When I deploy one it just work, it also takes only +-2 minutes to deploy for me.
If that still doesn't help can you send some of the logs of the app?

Sure let me give it another shot. Thanks for your prompt responses.


The uploaded file was only partially uploaded.

Never mind.

I got the same message, please give me your checkpoint!


geojson not working

Hello there, I am being able to get some geojson to run on flutter_map.
Since isolate is gone on dart2 for web and there is no other alternative form dart, I am trying to get your geojson example to run with the config: noIsolate: true [1].
Here is the log from a web run on the example:
Launching lib/main.dart on Chrome in debug mode...
Syncing files to device Chrome...
Debug service listening on ws://<IP_ADDRESS>:51030/qpXF4lT_5lk=
Debug service listening on ws://<IP_ADDRESS>:51030/qpXF4lT_5lk=
Loading geojson data
From geojson {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"scalerank":9,"type":"small","name":"Sahnewal","abbrev": [..]
FEAT SINK Instance of 'GeoJsonFeature<GeoJsonPoint>' / GeoJsonFeatureType.point
[..]
FEAT SINK Instance of 'GeoJsonFeature<GeoJsonPoint>' / GeoJsonFeatureType.point
Closing
Application finished.

Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (4 weeks ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)

But there is no geojson on the map. Please help out if you can spare some time.
1: https://github.com/synw/map_controller/blob/71a0a6001d7adce16457b4b944ce5952d0292ba6/lib/src/controller.dart#L234
See also: https://github.com/synw/iso/issues/3

geojson/multiPolygon
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "stroke": "#555555",
        "stroke-width": 2,
        "stroke-opacity": 1,
        "fill": "#eb0a0a",
        "fill-opacity": 0.5
      },
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [
                -71.015625,
                53.4357192066942
              ],
              [
                -105.64453124999999,
                1.9332268264771233
              ],
              [
                -28.828124999999996,
                -15.623036831528252
              ],
              [
                -1.0546875,
                46.195042108660154
              ],
              [
                -71.015625,
                53.4357192066942
              ]
            ]
          ]
        ]
      }
    }
  ]
}

geojson/polyline
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "stroke": "#555555",
        "stroke-width": 2,
        "stroke-opacity": 1,
        "fill": "#fa0505",
        "fill-opacity": 0.5
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -113.5546875,
              46.800059446787316
            ],
            [
              -65.390625,
              -13.410994034321702
            ],
            [
              3.1640625,
              18.979025953255267
            ],
            [
              11.6015625,
              53.4357192066942
            ],
            [
              -113.5546875,
              46.800059446787316
            ]
          ]
        ]
      }
    }
  ]
}

geojson tested with http://geojson.io

I have same problem and I found that all geojson features need unique "name" properties. Just try that.

@berkayoruc Thank you. It helped


Ability to customize font for fieldLabel and textField

Just as the title explains :)

PR 40 exposes both of these properties, so they can be styled
https://github.com/clusterinc/CLTokenInputView/pull/40


Binding to non-const method which returns const reference

Thank you for the library! ❤
Apologies if this has been asked before, and maybe this is more of a C++ question than a CXX question.
I'm trying to write bindings to OpenCascade (CAD kernel) and have run into a small issue I'm not sure how to resolve.
Here's a simplified version of the header file:
// BRepBuilderAPI_MakeEdge.hxx
class BRepBuilderAPI_MakeEdge  : public BRepBuilderAPI_MakeShape
{
public:
  Standard_EXPORT BRepBuilderAPI_MakeEdge();

  ...

  //! Returns the constructed edge.
  //! Exceptions StdFail_NotDone if the edge is not built.
  Standard_EXPORT const TopoDS_Edge& Edge();

  //! Returns the first vertex of the edge. May be Null.
  Standard_EXPORT const TopoDS_Vertex& Vertex1() const;
};

and the corresponding bridge code (ignoring the constructor)
// src/lib.rs
#[cxx::bridge]
pub mod ffi {
    unsafe extern "C++" {
        type BRepBuilderAPI_MakeEdge;
        type TopoDS_Vertex;
        type TopoDS_Edge;

        pub fn Edge(self: &BRepBuilderAPI_MakeEdge) -> &TopoDS_Edge;
        pub fn Vertex1(self: &BRepBuilderAPI_MakeEdge) -> &TopoDS_Vertex;
    }
}

I can bind to Vertex1() no problem, because the function is marked const (the trailing const defined in the header).
However I can't bind to Edge() because it's not marked as const. I get the following build output:
cargo:warning=/Users/brian/projects/opencascade/target/release/build/opencascade-sys-640032f072ecacd8/out/cxxbridge/sources/opencascade-sys/src/lib.rs.cc:121:53: error: cannot initialize a variable of type 'const ::TopoDS_Edge &(BRepBuilderAPI_MakeEdge::*)() const' with an rvalue of type 'const TopoDS_Edge &(BRepBuilderAPI_MakeEdge::*)()': different qualifiers ('const' vs unqualified)
  cargo:warning=  const ::TopoDS_Edge &(::BRepBuilderAPI_MakeEdge::*Edge$)() const = &::BRepBuilderAPI_MakeEdge::Edge;
  cargo:warning=                                                    ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=1 error generated.
  exit status: 1

The following code gets generated:
const ::TopoDS_Edge *cxxbridge1$BRepBuilderAPI_MakeEdge$Edge(const ::BRepBuilderAPI_MakeEdge &self) noexcept {
  const ::TopoDS_Edge &(::BRepBuilderAPI_MakeEdge::*Edge$)() const = &::BRepBuilderAPI_MakeEdge::Edge;
  return &(self.*Edge$)();
}

Now let's imagine I can modify the original source code. I simply add const at the end of the functions and all is well. Maybe I'll do that, but I'd like to avoid maintaining a fork.
Is there a way I can write a wrapper function such that this type check passes while still generating safe code? I tried that as well but got similar complaints about the wrapper function not being const, but it seems like I can't mark free-standing functions in C++ as const.

It sounds like you are asking how to write a non-const reference in a C++ signature? That is &mut T (for shared types) or Pin<&mut T> (for opaque C++ types).
        pub fn Edge(self: Pin<&mut BRepBuilderAPI_MakeEdge>) -> &TopoDS_Edge;

There shouldn't need to be any wrapper involved.

Pin<&mut T> (for opaque C++ types).

Ohhhhhhh, that's it! I'm really happy I opened this issue, I think I would have come up with something much more verbose.
Thanks for your help, and for CXX!

I had the same issue which lead me here but if I replace I still can't make this work. I replaced
type Foo;
fn new_Foo() -> UniquePtr<Foo>;
fn Initialize(&self, path: &str) -> bool;

class Foo
{
public:
	Foo();
    ~Foo();
    bool Initialize(rust::Str path) const;
};

with
type Foo;
fn new_Foo() -> UniquePtr<Foo>;
fn Initialize(self: Pin<&mut Foo>, path: &str) -> bool;

and removed the const from the cpp header and impl but that gave me.
no method named `Initialize` found for struct `UniquePtr<Foo>` in the current scope

If I used a pimpl pattern I can work around calling the const function but I think this would be a little cleaner (and less code).
Did something change since the last answer or have I missed something?

I ran into the same issue. The solution is to save your pin as mutable, access the pin with .as_mut().unwrap(), and then you can operate on your object.
For example:
let mut foo = ffi::new_Foo();
foo.as_mut().unwrap().Initialize("my/path");


subsys: fs: fcb: struct flash_sector usually const

Generally, the flash_sector array is known at compile time and is immutable, therefore developers may like to store it in ROM. The only function that requires a mutable struct flash_sector seems to be flash_area_get_sectors(), allowing the developer to store a mutable sector definition in persistent RAM rather than ROM.  An example of this approach is in setting_fcb.c.

I am able to reproduce the CI error on local:
./scripts/coccicheck --mode=report --cocci=scripts/coccinelle/same_identifier.cocci | grep fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_last_of_n.c:13:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_append.c:59:23-26: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_append.c:120:30-33: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_append.c:39:34-37: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_append.c:14:61-64: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_empty_walk.c:13:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_append_too_big.c:12:14-17: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_rotate.c:12:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_multiple_scratch.c:12:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_append_fill.c:12:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_init.c:13:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_walk.c:15:25-28: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/tests/subsys/fs/fcb/src/fcb_test_reset.c:12:13-16: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_rotate.c:12:23-26: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_getnext.c:108:24-27: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_getnext.c:14:34-37: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_getnext.c:43:31-34: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb
/home/jp/repos/zephyrproject/zephyr/subsys/fs/fcb/fcb_getnext.c:33:58-61: WARNING: Violation to rule 5.7 (Tag name should be unique) tag: fcb

But not sure how to improve!


MatDialog breaks JIT compilation in ivy<EMAIL_ADDRESS>

JIT compilation breaks when change something in dialog component.
Reproduction files
Reproduction instructions:
npm install
npm run start
enter in ~/src/app/dialog/component.ts and change something, after compilation you will receive error in browser.
Node - v12.13.0
npm - 6.12.0
OS - Ubuntu 16.04
angular - 9.0.0-rc.0
material - 9.0.0-rc.0

Can't bind to 'ngForOf' since it isn't a known property of 'p'.
| warnAboutUnknownProperty | @ | core.js:14269
-- | -- | -- | --
| elementPropertyInternal | @ | core.js:14151
| ɵɵproperty | @ | core.js:23930
| AppComponent_Template | @ | app.component.html:1
| executeTemplate | @ | core.js:13684
| refreshView | @ | core.js:13543
| refreshComponent | @ | core.js:14828
| refreshChildComponents | @ | core.js:13280
| refreshView | @ | core.js:13597
| renderComponentOrTemplate | @ | core.js:13658
| tickRootContext | @ | core.js:14992
| detectChangesInRootView | @ | core.js:15027
| detectChanges | @ | core.js:16555
| tick | @ | core.js:42409
| _loadComponent | @ | core.js:42460
| bootstrap | @ | core.js:42383
| (anonymous) | @ | core.js:41978
| _moduleDoBootstrap | @ | core.js:41974
| (anonymous) | @ | core.js:41929
| invoke | @ | zone-evergreen.js:365
| onInvoke | @ | core.js:40986
| invoke | @ | zone-evergreen.js:364
| run | @ | zone-evergreen.js:124
| (anonymous) | @ | zone-evergreen.js:851
| invokeTask | @ | zone-evergreen.js:400
| onInvokeTask | @ | core.js:40964
| invokeTask | @ | zone-evergreen.js:399
| runTask | @ | zone-evergreen.js:168
| drainMicroTaskQueue | @ | zone-evergreen.js:570
| Promise.then (async) |   |
| scheduleMicroTask | @ | zone-evergreen.js:553
| scheduleTask | @ | zone-evergreen.js:389
| scheduleTask | @ | zone-evergreen.js:211
| scheduleMicroTask | @ | zone-evergreen.js:231
| scheduleResolveOrReject | @ | zone-evergreen.js:841
| then | @ | zone-evergreen.js:967
| bootstrapModule | @ | core.js:41959
| ./src/main.ts | @ | main.ts:11
| webpack_require | @ | bootstrap:79
| 0 | @ | main.ts:12
| webpack_require | @ | bootstrap:79
| checkDeferredModules | @ | bootstrap:45
| webpackJsonpCallback | @ | bootstrap:32
| (anonymous) | @ | main.js:1

I'm not able to reproduce this with the repo provided in the ZIP file. I've pushed the changes from the ZIP file plus some minor clean up to https://github.com/Splaktar/mat-dialog-ivy-17644. It looks like this was either fixed by a few minor changes (see my commit) or the latest RC versions.
I'm going to close this, but please feel free to open a PR to the above repo to help provide a reproduction if this is still and issue. Then I will reopen this issue if we can identify a bug.

With repo above. And with a bigger project it gets worse

So you have to make a change to the source code while ng serve is running in order to see the error?

Yes

That looks and sounds a lot like these

https://github.com/angular/angular/issues/32214
https://github.com/angular/angular-cli/issues/16036


Set passwords for bulk user import

With the bulk user import option (from CSV) the password is always set to undefined (classic Javascript! I had to read the source to learn this).
Suggested solution:

Default password should be blank, not undefined (check for === undefined).
Add a password field to the CSV - in the downloaded sample they should be blank.

@Timmmm thank you for reporting.

Fixed.


Increase connection retry timeout from 1 to 30 seconds

This is to avoid flooding logs with connection errors

Any release planned for this change ?
My HA instance crashed again this morning

@Antexa A new version v0.0.6 has just been released


Remove mongodb support

Also:

refactor and simplify database-wrapper code
rename manualSendToMongo script to manualSendToDb

(This PR is stacked on top of #23 one to avoid merging issues, only the last commit is relevant)

Merging this.


Added a ValidateProject method to build tools

XRTK - Mixed Reality Toolkit Pull Request
Overview

Better project validation for CI/CD tools

Why is this better/useful? An invalid project will lead to a failed build just as a failed build step does.

Why is this better/useful? An invalid project will lead to a failed build just as a failed build step does.

Because it's ensuring all the symbolic links are setup correctly. I'm having some issues with other external projects that utilize this functionality. The symlinks aren't getting validated bc the xrtk is a package and the assemblies aren't getting loaded in time.

Because it's ensuring all the symbolic links are setup correctly. I'm having some issues with other external projects that utilize this functionality. The symlinks aren't getting validated bc the xrtk is a package and the assemblies aren't getting loaded in time.


Disambiguate PERL6LIB in search with categories

A fix for https://github.com/Raku/doc/issues/3199
I didn't check it is fine locally, please do before merge.

Updated files pass 'make xtest'

Closing as it's useless without search categories established.


Fix Android build

Hello @diordache ,
Thanks for pointing out the missing parameter in the shareSheet call.
However, you must still wrap runOnUiThread() in to the shareSheet method, to avoid bottleneck with the Webview Activity. So I've submitted #110 to address this issue.
Cheers,
Rene

Closing for #110 and putting in a fix for the argument count issue.


training error about default config "experiment=gschnet_qm9"

Dear author,
This is great work which i want to follow. However, i have a problem when i follow the readme to start training with default config.
The output is like:
[2023-11-06 21:14:40,431][root][INFO] - Parse xyz files...
Error executing job with overrides: ['experiment=gschnet_qm9']
Traceback (most recent call last):
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/schnetpack/cli.py", line 158, in train
trainer.fit(model=task, datamodule=datamodule, ckpt_path=config.run.ckpt_path)
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 545, in fit
call._call_and_handle_interrupt(
......
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/schnetpack_gschnet/datasets/qm9.py", line 218, in prepare_data
self._download_data(tmpdir, dataset, uncharacterized=uncharacterized)
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/schnetpack_gschnet/datasets/qm9.py", line 288, in _download_data
irange = np.arange(len(ordered_files), dtype=np.int)
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself.
I noticed that the error happened when downloading the training data.  Compared to demo cli , I just use ”cp -r“ to create a new config directory.
I was confused why it use a remote package with the same name called schnetpack_gschnet in "python3.10/site-packages/schnetpack_gschnet" rather than call the func from my local project which i cloned from this repo.
I do not know what this remote pack work for and how can it influence the program.
Now i want to debug but i have to change the remote pack rather than local program.
It seems like unreasonable. And i do not know what mistake i made.
I would appreciate it if you can help me about this.
Looking forward to your reply.
Many thanks.

The actual mistake is that  i did not download the data correctly.
File "/home/jijinglong/anaconda3/envs/sch116/lib/python3.10/site-packages/schnetpack_gschnet/datasets/qm9.py", line 288, in _download_data
irange = np.arange(len(ordered_files), dtype=np.int)
The  len(ordered_files)  is a int number or ampty. Am i right?
But i checked the tmp files and they are downloaded correctly in the tmp directory. What should i do?

Hi @sxy759334746 ,
thank you for reporting this issue! You were not doing anything wrong.
We were still using the deprecated type np.int in our download script. I replaced it with int in my last commit which should fix the problem.
Please pull the newest version of the repository and re-install the package in your environment (or delete the old environment and follow the instructions in the readme from the beginning to create a new one). Let me know if this does not work!
Best regards,
Niklas