conda - /lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found

Hello,
I reinstalled scib within my conda environment scib-pipeline-R4
If I enter my environment
conda activate scib-pipeline-R4
cd /home/users/allstaff/mangiola.s/PostDoc/covid19pbmc/thirdparty_software/scib-pipeline

And execute
conda run -n scib-pipeline-R4 python scripts/metrics/metrics.py -u data/pbmc_simplified.h5ad -i /stornext/Bioinf/data/bioinf-data/Papenfuss_lab/projects/mangiola.s/PostDoc/covid19pbmc/thirdparty_software/scib-pipeline/data_pbmc/run_pbmc/integration/scaled/full_feature/scgen.h5ad          -o /stornext/Bioinf/data/bioinf-data/Papenfuss_lab/projects/mangiola.s/PostDoc/covid19pbmc/thirdparty_software/scib-pipeline/data_pbmc/run_pbmc/metrics/scaled/full_feature/scgen_full.csv -m scgen          -b batch -l celltype --type full          --hvgs 0 --organism human --assay expression -v

I get the below error. How can I make python 3.7 in this environment to find all GLIBCXX it needs? Thanks!
(my IT support says it's all about the conda environment and not something they can fix from outside).
Isolated labels F1...
Isolated labels ASW...
Graph connectivity...
kBET...
cLISI score...
using precomputed kNN graph
Convert nearest neighbor matrix and distances for LISI.
Compute knn on shortest paths
call /home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/knn_graph/knn_graph.o /tmp/lisi_5z873agj/graph_lisi_input.mtx /tmp/lisi_5z873agj/graph_lisi 90 1 50
LISI score estimation

/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/knn_graph/knn_graph.o: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/knn_graph/knn_graph.o)
/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/knn_graph/knn_graph.o: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/knn_graph/knn_graph.o)
Traceback (most recent call last):
  File "scripts/metrics/metrics.py", line 263, in <module>
    trajectory_=trajectory_
  File "/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/metrics/metrics.py", line 433, in metrics
    verbose=verbose,
  File "/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/metrics/lisi.py", line 151, in clisi_graph
    verbose=verbose,
  File "/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/metrics/lisi.py", line 299, in lisi_graph_py
    n_neighbors=n_neighbors,
  File "/home/users/allstaff/mangiola.s/.conda/envs/scib-pipeline-R4/lib/python3.7/site-packages/scib/metrics/lisi.py", line 408, in compute_simpson_index_graph
    if os.stat(index_file).st_size == 0:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/lisi_5z873agj/graph_lisi_indices_0.txt'

Hello, I was wondering if you have any advice on this.

I was wondering if you had any advice

Hi,
This error is likely related to the following issue. Try to install scib from github manually into the environment. That way it should be compiled on your system and work.


Integration

Not sure, if I'm doing this pull request right, but this functionality makes the pages names in the datasources and events-page collapsable

Probably obsolete in favor of https://github.com/symphonycms/symphony-2/pull/956


I'm facing the exact same issue. Mazda6 2017

I'm facing the exact same issue. Mazda6 2017

Originally posted by @jeshuranpaul in https://github.com/thekirankumar/carstream-android-auto/issues/242#issuecomment-586207600

You have to unselect "CarStream Player" on Android Auto App (on your cellphone) -> Settings -> Customize Launcher. You should mark "CarStream" as checked.
It will make CarStream work again but It doesn't work running on the background. If you switch to google maps your video will stop playing AND your car player controls won't work as well. You'll have to use the screen controls to change videos, play, pause, etc.


documentation: bounded_stream example incorrect

This is also safe:
doc = json.load(req.stream)

should be
This is also safe:
doc = json.load(req.bounded_stream)

Fixed by #940


Support for Govee Indoor/Outdoor Hygrometer (B5178)

Please explain your feature request in a one or two sentences.
Adding support for the Govee Indoor/Outdoor Hygrometer B5178

Is your feature request related to a problem? Please describe.
Additional support for a device.

Any particular Govee devices that this relates to?
Govee B5178
https://www.amazon.com/Govee-Bluetooth-Humidity-Temperature-Sensor/dp/B0872ZPQSJ

Anything else?
the logs of home bridge provide the following information:
[11/01/2022, 23:07:25] [Govee] [Common Area Thermomete] is not currently supported, do create a Github issue with the following info:
{"device":"D9:E8:A4:C1:38:E4:1C:48","deviceName":"Common Area Thermomete","model":"B5178","httpInfo":{"groupId":1648963,"device":"D9:E8:A4:C1:38:E4:1C:48","sku":"B5178","spec":"","versionHard":"1.00.01","versionSoft":"1.00.08","deviceName":"Common Area Thermomete","deviceExt":{"lastDeviceData":"{"tem":2220,"hum":4080,"lastTime":1637981700000}","deviceSettings":"{"ic":0,"ic_sub_1":0,"address":"A4:C1:38:E4:1C:48","temWarning":false,"wifiLevel":0,"humMax":10000,"groupOrder":0,"fahOpen":false,"gatewayId":0,"humMin":0,"pactCode":0,"netWarning":false,"groupRole":1,"battery":100,"temMax":6000,"humWarning":false,"temMin":-2000,"pactType":0,"temCali":0,"ic_sub_2":0,"bleName":"B51781C48","header":0,"humCali":0,"uploadRate":0,"deviceName":"Common Area Thermomete"}","extResources":"{"skuUrl":"https://d1f2504ijhdyjw.cloudfront.net/img/4c860fe1586d072171b1f12a63059e1c-add_list_type_device_b5178_1.png\",\"headOnImg\":\"\",\"headOffImg\":\"\",\"ext\":\"\",\"ic\":0}"},"goodsType":14},"isAPIDevice":false}
[11/01/2022, 23:07:25] [Govee] [Outdoor Thermometer] is not currently supported, do create a Github issue with the following info:
{"device":"D9:E8:A4:C1:38:E4:1C:48_1","deviceName":"Outdoor Thermometer","model":"B5178","httpInfo":{"groupId":0,"device":"D9:E8:A4:C1:38:E4:1C:48_1","sku":"B5178","spec":"","versionHard":"1.00.00","versionSoft":"1.00.00","deviceName":"Outdoor Thermometer","deviceExt":{"lastDeviceData":"{"tem":350,"hum":7600,"lastTime":1640125920000}","deviceSettings":"{"ic":0,"pDevice":"D9:E8:A4:C1:38:E4:1C:48","ic_sub_1":0,"address":"A4:C1:38:E4:1C:48","temWarning":false,"wifiLevel":0,"humMax":10000,"groupOrder":1,"fahOpen":false,"gatewayId":0,"humMin":0,"pactCode":0,"netWarning":false,"groupRole":2,"battery":89,"temMax":6000,"humWarning":false,"temMin":-2000,"pactType":0,"temCali":0,"ic_sub_2":0,"bleName":"B51781C48","header":0,"humCali":0,"uploadRate":0,"deviceName":"Outdoor Thermometer"}","extResources":"{"skuUrl":"https://d1f2504ijhdyjw.cloudfront.net/img/e57571028831ecb45811f1ef23022d6b-add_list_type_device_b5178_2.png\",\"headOnImg\":\"\",\"headOffImg\":\"\",\"ext\":\"\",\"ic\":0}"},"goodsType":14},"isAPIDevice":false}

Hi @philliml74
Is this a wifi device? Or bluetooth only?

Since it's bluetooth only, you may find that the other govee plugin works - have you tried homebridge-plugin-govee?
This is a plugin for bluetooth-only govee sensors.

I will try it out to see if it provides the info.


add an abbreviate command

this is a command i used to use with aenea, and i find it useful if i am not thinking of the alphabet fast enough

This is very handy, thanks!


[intlify] Not found 'nav.home' key in 'en' locale messages.

You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
How to fix this?

any progress ?

fixed at 9.2.0-beta.32 so far.


setCanFilterMask

I tested setCanFilterMask with mask 0x7F80000.
But some how it is not filtering the incomming messages.
Could you provide me correct filter for OBDII or explain how does it works? ( 0x7E8, 0x7E9, 0x7EA, 0x7EB, 0x7EC, 0x7ED, 0x7EE, 0x7EF )

I found a way to make it as i expected.
Changed CanDriver.hpp
 virtual void setCanFilterMask(const int32_t mask, const int32_t filterId);

And CanDriver.cpp
void CanDriver::setCanFilterMask(const int32_t mask, const int32_t filterId) {
  if (_socketFd < 0)
    throw InvalidSocketException("Invalid socket!", _socketFd);

  unique_lock<mutex> locky(_lock);
  can_filter canFilter;

  canFilter.can_id = filterId;
  canFilter.can_mask = mask;

  if (setsockopt(_socketFd, SOL_CAN_RAW, CAN_RAW_FILTER, &canFilter,
                 sizeof(canFilter)) == -1)
    throw CanInitException(formatString(
        "FAILED to set CAN filter mask %x on socket %d! Error: %d => %s", mask,
        _socketFd, errno, strerror(errno)));

  _canFilterMask = mask;
}

Now it works as expected. But still not supports multiple can filters.
Im thinking implement later something like this
std::vector<can_filter> filters;
for (uint32_t id : _responseCanIds) {
    can_filter filter;
    filter.can_id = id;
    filter.can_mask = mask;
    filters.push_back(filter);
}

if (setsockopt(_socketFd, SOL_CAN_RAW, CAN_RAW_FILTER, filters.data(),
               filters.size() * sizeof(can_filter)) == -1)

Yes latest version of code:

void CanDriver::setCanFilters(const vector<pair<uint32_t, uint32_t>>& filters) {
  if (_socketFd < 0)
    throw InvalidSocketException("Invalid socket!", _socketFd);

  unique_lock<mutex> locky(_lock);
  can_filter canFilter[filters.size()];

  for (size_t i = 0; i < filters.size(); ++i) {
    canFilter[i].can_id = filters[i].first;
    canFilter[i].can_mask = filters[i].second;
  }

  if (setsockopt(_socketFd, SOL_CAN_RAW, CAN_RAW_FILTER, &canFilter,
                 sizeof(canFilter)) == -1)
    throw CanInitException("Failed to set CAN filters!");

  _canFilterMask = filters[0].second;
}

now it is able to set multiple filter at the same time.

Hi there!
Thanks for the bug report and fix!
I'll add this to the codebase.


Manage lock files more smoothly

Prerequisites

[x] I have read the Contributing guidelines
[x] I have read the Code of conduct and I agree with it

Description
We are currently saving both npm 5 and yarn lock files in github.
For sure it is not realistic to ask of contributors to think of updating both these files when adding or upgrading dependencies.
There is currently a discussion at yarnpkg/yarn#3614 about supporting npm 5 package-lock.json, which would be nice...
In the mean time, it seems there is no elegant way of dealing with this.
We could choose to keep only one of the lock files, but we can not make sure that contributors will use npm over yarn or yarn over npm.
Currently npm seems to suffer a minor drawback in comparison to yarn, related to unwanted updates to package-lock.json when switching between Linux (or Windows !) and Mac npm/npm#17722, in particular with fsevents which is a Mac specific dependency.
@frinyvonnick Have you used npm 5 and experienced unwanted package-lock.json updates on the project ?

Things are not moving very fast at npm, so for now we'll only support yarn.
package-lock.json will be removed and ignored.

In addition we'll probably use yarn workspaces with lerna


If the video playback speed exceeds 4.0, there will be no sound

If the video playback speed exceeds 4.0, there will be no sound

That's not an issue in media-kit but rather how mpv behaves by default.
Related: https://github.com/mpv-player/mpv/issues/12469
You can try to set max speed with setProperty("af", "scaletempo2=max-speed=8")


April 17 Changes

Figures can be found in Notebooks >> Merging The Data
I have also included the TeX file

@ayhncgty You should delete .virtual_documents directory. I believe its an internal file for your computer and should not be included in your commit.

Also put Cagatay sliedes under the `documents directory.

Also could you directly edit the slides_outline.tex file for your part of slides?


Return information on paths between origin and destination

In conjunction with the path summaries branch in the ui, this PR allows inspecting paths from the origin to the toLat toLon coordinates in the profile request.
The immediate impetus is debugging some suspect frequency entry generation. The paths in this example involve a ride on route 1, then a transfer to route 2, which runs every 20 minutes, and a 6-8 minute ride to the alighting stop. The numbers immediately following "Path:" are the number of minutes from alighting route 1 to alighting route 2. Note that most iterations imply the maximum waiting time (26 minutes), skewing the travel time distribution to be longer than expected.

For discussion purposes, this PR now has two main changes to record street modes in paths for Taui sites:

Access: in https://github.com/conveyal/analysis-backend/pull/264/commits/660b6acad3938b2cf61499841c88d2959974fc8c, TravelTimeComputer is modified so that it tracks which street mode is optimal to reach nearby transit stops. This tracking is parallel to the existing functionality of determining the minimum time required to reach nearby transit stops, iterating over requested access modes. PathWriter.recordPathsForTarget() can then use this map to determine which accessMode is used to reach the first stop of each path.
Egress: in https://github.com/conveyal/analysis-backend/pull/264/commits/7d9dfda6490512b0f1645c2b45695222a9924ec2, an extra step is added to propagation to record each path's egress mode.

Note that although the base branch was changed from worker-accessibility to dev, this PR still contains all the commits from worker-accessibility. The worker-accessibility branch will probably be revised before being merged, so this PR for saving and returning path info should probably be rebased onto dev (or merged into dev only after worker-accessibility is).

Looking at d42c906 I realize we're writing only two bytes here, which is breaking the 4-byte alignment of the file. All other values written to the file are a 4-byte integers or strings (or are intended to be 4 bytes -more on that later). If we read this as a typed array in Javascript, we will always be looking at 4-byte windows and interpreting them as numbers. Is this going to be a problem for reading the single byte codes? If we reserve two additional bytes e.g. for access and egress time, making an aligned 4-byte access/egress chunk, will it be straightforward to read those individual bytes out of that array position? @trevorgerhardt I'm not up to speed on the current state of typed arrays in JS, we should check into this.

@abyrd using JavaScript DataViews makes it relatively easy to access arbitrary chunks of binary data regardless of the size. From the client side, there's not much trouble there. But I agree we should ensure consistent charsets used to guarantee consistent byte sizes.

Ported to https://github.com/conveyal/r5/pull/634


Consider checking that the native-image binary exists

And log a message if it doesn't.

Also hit this one, you get some strange:
Cannot run program "native-image" (in directory ".../build/native-image"): error=2, No such file or directory

If you don't do gu install native-image


Design System > Components > Get Assistance > Default > Fill the required field. NEXT button is not enabled.

Describe the bug

Fill the required field. NEXT button is not enabled.
Label alignment issue.
Webhook Subscription - Fill the required field. SAVE button is not enabled.

Steps to reproduce bug
1.Go to 'https://stage.raaghu.ai/'
2. Navigate to 'Design System > Components > Get Assistance > Default'
Actual result-

Fill the required field. NEXT button is not enabled.
Label alignment issue.
Webhook Subscription - Fill the required field. SAVE button is not enabled.

Screenshots

Expected result-

Fill the required field. NEXT button should be enabled.
Label alignment should be proper.
Webhook Subscription - Fill the required field. SAVE button should be enabled.

Desktop (please complete the following information):
-OS: [Windows 10 Enterprise]
-Browser [ edge]
-Version [ 125.0.2535.92]

Fixed on stage


Bogus commit to see if Code Climate is listening.

Ignore…this is just to test the Code Climate webhook.

Coverage remained the same at 82.353% when pulling 1bb0f17504f4d16812cf76bfd3cf9adf6879993c on ryankennedy:master into 844b71047f6d70a2b507af416d7f1ad18d60b0dc on dropwizard:master.

It worked :tada:


Add CodeOfConduct-zh.md

What does this PR do?
Add CodeOfConduct-zh.md
For resources
Description
Add Chinese CodeOfConduct.
Why is this valuable (or not)?
This project don't have Chinese CodeOfConduct
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


[Package Issue]: DiskInternals.LinuxReader -  Installer hash does not match; v4.15.2

Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
(1/19) Found DiskInternals Linux Reader [DiskInternals.LinuxReader] Version 4.15.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://eu.diskinternals.com/download/Linux_Reader.exe
Installer hash does not match; this cannot be overridden when running as admin
Steps to reproduce
winget upgrade --all  --include-unknown
Actual behavior
Installer hash does not match; this cannot be overridden when running as admin
Expected behavior
update package
Environment
Windows: Windows.Desktop v10.0.19045.3636
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.2771.0

Screenshots and Logs
No response

Any progress here?


(not production ready too much bugs - waste of time)

i cant login
Steps i followed

bash <(wget -qO- get.krane.sh) public at redacted.com
ssh-keygen -t rsa -b 4096 -C<EMAIL_ADDRESS>-m 'PEM' -f $HOME/.ssh/krane
krane login redacted.com
Select a private key > krane
Error: unable to authenticate

i also tried my own private key which i use everywhere and also tried a key without a password
What am i doing wrong ?

Are you intending on running the krane host locally or in a remote machine? Note that step 1 should be done in the host running docker.
A common error when running the host locally on macOS is that krane will expect your public key to be under ./ssh/authorized_keys whereas usually for macOS it might be under known_hosts

@jalvarado91 im running it remote and my public key is under ./ssh/authorized_keys and my private under ./ssh
i am using id_ed25519 and id_ed25519.pub is inside  ./ssh/authorized_keys

Hey @kgnfth thanks for trying out Krane just to get some insight what kind of errors or bugs did you encounter? If you had specific bugs you want to report feel free to assign them to me and i'll take a look!


Updating Jan and Mar 2022 to truncate

I accidentally rounded rather than truncated the values for Jan and Mar. Updating

@besiler : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@MarkusVi - Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@MarkusVi  please approve this now that you're back :)

#sign-off


Mention build version for signature popup

Re: https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/279#issuecomment-124083731
Again, the reason for this change is that it's kind of tough to know what to search the text for, but it's easier to see visually what feature the signature popup is.
Hopefully that reason makes sense. If the wording of the change should be different, let me know.

Hi @joneshf, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

Thank you. This is useful.


Fix pretend mode quirks

One way to do this is to return a PretendConnection instance which would be built on top of a VFS flysystem


ci: deal with CentOS 7 EOL and disappearance of yum mirrors

This was breaking CI for us. Hard break for icc/icx tests, since those REQUIRED a yum install of the intel compilers. Softer undetected break for all the ASWF <= 2022 containers based on CentOS 7, which were not failing outright but were failing to install certain optional packages.
The solution (for now) is to configure yum to exclude the missing repo.

Hi Larry, I looked at the CI logs from the failing CI actions, and I do not see a failed yum installation message with icx. Is the failure you observe to do with how Centos is now managing repos or is that a missing icx license/repo?

We were getting failed yum actions, but I have it fixed now.

There's a totally different failure I'm chasing now...


The screen does not appear without any error

[ ] I have read the FAQ.
[ ] I have searched in existing issues.

Environment

OS: Windows 10
scrcpy version: 2.3.1
installation method: Windows Build 64bit
device model: samsung SM_G986N
Android version: 13

Describe the bug
The screen does not appear without any error
PS D:\python> scrcpy
INFO: ADB device found:
C:\adb\scrcpy-server: 1 file pushed, 0 skipped. 16.1 MB/s (66007 bytes in 0.004s)
[server] INFO: Device: [samsung] samsung SM-G986N (Android 13)
PS D:\python>

@lbuse Does it work better over USB?
If not, could you please try to run a "Hello world" as a java process on your device: https://blog.rom1v.com/2018/03/introducing-scrcpy/#run-a-java-main-on-android

Yes, USB is working, but over Wi-Fi, it doesn't.
The console app appears, but the screen never shows up, requiring me to force quit.
scrcpy --serial 93e56735 -Vdebug
scrcpy 2.3.1 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO:     -->   (usb)  93e56735                        device  ONEPLUS_A5000
INFO:         (tcpip)  <IP_ADDRESS>:5555              device  ONEPLUS_A5000
DEBUG: Device serial: 93e56735
DEBUG: Using server: /opt/homebrew/Cellar/scrcpy/2.3.1/share/scrcpy/scrcpy-server
/opt/homebrew/Cellar/scrcpy/2.3.1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 149.8 MB/s (66007 bytes in 0.000s)
[server] INFO: Device: [OnePlus] OnePlus ONEPLUS A5000 (Android 10)
[server] WARN: Audio disabled: it is not supported before Android 11
[server] DEBUG: Audio encoder stopped
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: metal
DEBUG: Trilinear filtering disabled (not an OpenGL renderer
DEBUG: Using icon: /opt/homebrew/Cellar/scrcpy/2.3.1/share/icons/hicolor/256x256/apps/scrcpy.png
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
WARN: Demuxer 'audio': stream explicitly disabled by the device
[server] DEBUG: Using video encoder: 'OMX.qcom.video.encoder.avc'
INFO: Texture: 1080x1920
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: Demuxer 'video': end of frames
DEBUG: Receiver stopped
[server] DEBUG: Controller stopped
[server] DEBUG: Device message sender stopped
WARN: Killing the server...
DEBUG: Server disconnected
DEBUG: Server terminated

Does adb shell work when connected over tcp/ip?

@rom1v
I found the reason, our company security policy block the adb.
I think there is no way to through it, Thank  you guys.

Yeah, I believe it is something similar for me. I was at the office where there is pfSense; now at home with OPNsense, it's working correctly.

closed


Figure update

Codecov Report

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

@@            Coverage Diff             @@
##           master     #465      +/-   ##
==========================================
- Coverage   86.91%   86.68%   -0.23%
==========================================
  Files          23       23
  Lines        1750     1750
==========================================
- Hits         1521     1517       -4
- Misses        229      233       +4

Flag
Coverage Δ

#unittests
86.68% <ø> (-0.23%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

lineage/tests/test_BaumWelch.py
96.00% <0.00%> (-4.00%)
:arrow_down:

lineage/tests/test_StateEstimation.py
96.00% <0.00%> (-4.00%)
: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 a7eac54...2f9ab8d. Read the comment docs.

@shak360 @Farnazmdi this PR is ready to be merged. I made the font in the figure 5 cartoon larger and made the figures larger horizontally so that the x axis is more legible. I also fixed the figure 3 cartoon and it's positioned correctly now

It looks grrreat! thanks JC!

Figure 6 still doesn't have the caption, not sure why. Maybe Shakthi nows how to fix that.

Figure 6 still doesn't have the caption, not sure why. Maybe Shakthi nows how to fix that.

I haven't added the caption for figure 6 in the manuscript yet. Is the figure 6 caption something different?

Yea I agree something is wrong with the Figure 6 caption, but we can fix that on a later branch.  Thanks for the work @jclagarde , great stuff.
A suggestion for the future: try to keep all the fonts Arial (anything sans script should do), but if Arial is available try to use that over other fonts.
I'll merge and delete the branch.


Make ryo-modal-key be able to use lambdas

I found out that defun returns the name of the function, making this change unnecessary:
(ryo-modal-key "Syb" (defun do-something () (interactive)
                            (message (number-to-string (emacs-init-time)))))
(ryo-modal-keys
`("Syb" ,(defun do-something () (interactive)
                (message (number-to-string (emacs-init-time))))))

I found out that my example only works in the case of the function and not on the macro, so I think this patch would be useful.


Design: Error Summary

TODO

[ ] Research guidance for error summary
[ ] Design for error summaries

Outcomes

Figma design page

Deliverables

Figma design page for error summaries

Estimated Effort

[ ] XS: 1 to 2 hours
[ ] S: half a day
[ ] M: 1-2 day
[ ] L: 1 week
[ ] XL: Move to an epic

Out of scope

The form builder team is looking for guidance around error summaries. They need to create useful error messages to tell the user how they can fix their mistake, rather than the majority pattern of “Please complete the required field to continue.”
Here is the card that outlines their current issues:
https://app.zenhub.com/workspaces/gcforms-60cb8929764d71000e481cab/issues/cds-snc/platform-forms-client/449


add "skip" option to mod button's error message

When using the mod button to do global actions, the action can fail for a number of reasons (lack of permissions in my case). If it fails for a subreddit, the script stops and asks

would you like to retry?

okay or cancel
if you press okay, then it retries that action in that subreddit. if you press cancel, then it aborts the global action even through it hasn't processed the action in the remaining subreddits. Please add a skip option so the script can continue in the rest of the subreddits.

Hrm, I was under the impression it showed that message last. Guess I need to look at the actual code.


The way of using EPro-PnP-6DOF

Hello, I want to know how to use EPro-PnP-6DOF to get the detailed position and pose infomation(like x y z r p y) instead of distribution map？
Thank you！

Hi! During test time, we solve the PnP optimization problem to find the exact pose. Ideally, this should be the optimal pose corresponding to the location with maximum distribution density.
https://github.com/tjiiv-cprg/EPro-PnP/blob/1545131fde2b47ec4c135776d575e11feeb0f7cd/EPro-PnP-6DoF/lib/test.py#L210-L211


(SublimeLinter3-next with SublimeLinter-contrib-eslint and SublimeLinter-jshint) Exception "SublimeLinter: error in SublimeLinter daemon" when opening any .js file

Continuance from https://github.com/SublimeLinter/SublimeLinter3/pull/666#issuecomment-347706188 as per https://github.com/SublimeLinter/SublimeLinter3/pull/666#issuecomment-347790210
Note: I don't have this problem on the regular release of SublimeLinter.
STR:

(Using ST3 3154 x64 (clean installation))
I download the ZIP for this commit or the latest one,
Inside the resulting SublimeLinter3-next.zip there's a folder SublimeLinter3-next with the content.
So, I copy it as SublimeLinter into C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages
I open: Preferences | Package Settings | SublimeLinter  -> Settings
and I add to the right  panel (User) an empty JSON {}.
Then, as I restart ST, I get no errors in console.
Then i install SublimeLinter-contrib-eslint 1.10.0 and SublimeLinter-jshint 1.3.0 (both via Package Control) and restart ST: initially, still no errors in console.
But, when opening a .js file (having either of them only enabled each time)
I get the following exception: (this is while using the ZIP from the former commit)

SublimeLinter: error in SublimeLinter daemon:
SublimeLinter: --------------------
SublimeLinter: Traceback (most recent call last):
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 57, in loop
    item = self.q.get(block=True, timeout=self.MIN_DELAY)
  File "./python3.3/queue.py", line 175, in get
queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 65, in loop
    self.lint(view_id, timestamp)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 111, in lint
    self.callback(view_id, timestamp)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 263, in lint
    Linter.lint_view(view, filename, code, hit_time, callback)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\linter.py", line 1008, in lint_view
    callback(cls.get_view(vid), linters, hit_time)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 316, in highlight
    highlights.draw(other_view)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 133, in draw
    all.draw(view)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 477, in draw
    icon = self.get_style("icon", style, error_type)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 184, in wrapper
    return persist.gutter_marks["icons"][error_type]
KeyError: 'warning'

SublimeLinter: --------------------

Well, my settings are just this:
{
    "linters": {
        "eslint": {}
    },
    "styles": [
        {
            "icon": "warning",
            "mark_style": "squiggly_underline",
            "priority": 1,
            "scope": "region.yellowish",
            "types": [
                "warning"
            ]
        },
        {
            "icon": "error",
            "mark_style": "squiggly_underline",
            "priority": 1,
            "scope": "region.redish",
            "types": [
                "error"
            ]
        }
    ]
}

... so that can't be it. I'm on a Mac though, so our setup is going to be pretty different other than perhaps the Sublime Text configuration.
Are you able to pass a .js file through eslint on the command line and get some feedback?

Are you able to pass a .js file through eslint on the command line and get some feedback?

Yes, eslint via command line completes ok (example screenshot)
I use a global .eslintrc.js file  (in C:\Users\Kostas), the following :
module.exports = {
    "env": {
        "browser": true,
        "greasemonkey": true,
        "jquery": true,
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "ecmaVersion": 8,
        "sourceType": "script",
        "ecmaFeatures": {
            "globalReturn ": true,
            "impliedStrict": true,
        }
    },
    "rules": {
        "eqeqeq": "warn",
        "func-style": "off",
        "indent": ["warn","tab"],
        "linebreak-style": ["warn","unix"],
        "max-len": "off",
        "max-statements-per-line": "off",
        "new-cap": "off",
        "no-extra-semi": "warn",
        "no-inline-comments": "off",
        "no-magic-numbers": "off",
        "no-mixed-spaces-and-tabs": "warn",
        "no-multiple-empty-lines": "off",
        "no-console": "warn",
        "no-alert": "warn",
        "no-unused-labels": "warn",
        "no-unused-vars": ["warn", {"vars": "all", "args": "after-used"}],
        "no-useless-escape": "warn",
        "no-tabs": "off",
        "padded-blocks": "off",
        "quotes": ["warn", "single", { "allowTemplateLiterals": true }] ,
        "require-jsdoc": "off",
        "semi": ["warn","always"],
        "space-before-function-paren": "off",
        "unicode-bom": ["warn", "never"]

    }
};

And, @braver, if it wasn't clear, I've tried your settings, and the issue still occurs.

@darkred @braver This issue is not linter specific.
Likely it is a minor logic bug in the icon fetcher.
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 184, in wrapper
    return persist.gutter_marks["icons"][error_type]

I am going to have a look into this. and hope to have it fixed by the weekend.

I can not reproduce that error any more on the most recent build.
The underlying code has undergone a major revision in the meantime.
I am closing this issue so far.
@darkred
Our beta will be out soon.
If you still encounter that bug with the beta version, feel free to reopen it.


Not updated in 3 years?

Hi guys, is this repo still actively maintained?

Hi Sam,
Yes we maintain the repo, but haven't had much to do to it recently.  We'll take a look at your issues today.
Cheers

Thanks mate, much appreciated.


BLET-27 upgrades

Upgrade everything reported by mvn versions:display-dependency-updates to the current latest stable version.
Follow Bouncycastle's api changes.

@david-lshift I have just added the "pre-normalisation"


Wait for document.readyState on search-related smoke tests on Preview

https://trello.com/c/xD6lS5Io/376-stop-smoke-tests-going-off-for-obsoletenode-error
Observation: search result pages for G-Cloud and DOS seem more susceptible to ObsoleteNode errors than other pages (looking at recent smoke, smoulder and functional test failures).
Hypothesis: explicitly checking whether a search result page has finished loading before attempting to click will reduce the likelihood of Capybara being unable to find a link element.
What I've tried:

Insert a new step 'wait for the page to load' on scenarios where we're clicking directly on search results (i.e. not after using filters/live search - we already have a separate async handler for waiting for Ajax requests to finish)
The page checks for the document.readyState property to be 'complete' (see https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState). Even though we're not waiting for Ajax requests, these pages are slow to load (see analytics info on the ticket).
The step will wait until the maximum dm_custom_wait_time (currently 5s) before giving up
Only applied to the two Preview smoke test scenarios at present - we can experiment by merging several apps at once (a known trigger for ObsoleteNode errors) and see we have fewer failures.

What if ... you left both variants enabled for preview while we're testing it... so that we can see when one fails and one passes on the same run?

@risicle don't see why not.

I think this will work.
I'm torn thinking this should be implemented on all page loads:
https://github.com/alphagov/digitalmarketplace-functional-tests/blob/9b644d774960f6261394bd481aef66cf9120573d/features/support/env.rb#L172

If I had found that checking document.readyState worked well enough, do you think I would have gone to all the bother digging in to the specifications for obscure APIs like window.performance.timing for that line?
There's only one way to find out though...

If I had found that checking document.readyState worked well enough, do you think I would have gone to all the bother digging in to the specifications for obscure APIs like window.performance.timing for that line?

My theory is that it's two different problems - the existing synchronize code should ('should') mitigate the async issues we had around live search. I hope that this change will help pages that aren't 'async' as such, merely slow-loading.


Documentation not being generated for models from NuGet packages

I have some models exposed in my APIs that come from NuGetPackages.
While those types are properly documented (I can see the doc in intellisense), they have no documentation in the generated OpenApi spec.
This does not happen on netcoreapp2.1, but does happen on netcoreapp3.1.
To highlight this issue, please see this repro:
3.1 branch :
https://github.com/jeremyVignelles/TestNSwagNetCoreApp/blob/repro/doc-external-models/TestNSwagNetCoreApp/Hello.cs#L42
2.1 branch:
https://github.com/jeremyVignelles/TestNSwagNetCoreApp/blob/repro/doc-external-models-netcoreapp2.1/TestNSwagNetCoreApp/Hello.cs#L42
I used a type from the NSwag NuGet package to highlight the issue.

Looks like .net core 3 uses another way to reference dlls in packages so that xml docs files cannot be found.
We need to repro and fix this here:
https://github.com/RicoSuter/Namotion.Reflection

@RicoSuter Is there a workaround for that in the meantime? This is pretty painful for us. Too late to go back to .net core 2.x unfortunately.


ESP32-S3 dual CAN (IDFGH-12055)

ESP32-S3 have only one CAN controller ?
only ESP32-C6 have two ?

@GeorgeNegret  Sadly, S3 really have only one. C6 have 2, and coming P4 have 3, I guess P4 meet your high perform and more TWAI instant. Or use S3 plus C6 :face_in_clouds:

@wanckl Is it possible to create two CAN nodes with one CAN controller?

@bobkim938
What you mean a BUS, a physical H/L bus?
CAN is type of async communication, basically, different bus have only baud rate different.
TWAI peripheral self actually is able to config/switch baud rate dynamically, Of course, it have time cost and will loss data during switching.
How ever the point is, if you connect different buses, one baud rate transfer will lead another baud rate node/devices into BUS_ERROR, then you need an extra switch hardware for H/L line or CAN TX/RX line.
Or even simulate a sw_can by CPU software
Theoretically they are all doable, but no need to. So, impossible!

@wanckl Thanks!!


Add SkipVectorize IR pass

For some use cases, it's helpful to disable loop vectorization (e.g., custom datatypes and the upcoming MicroTVM).
This PR adds the ability to configure TVM module building with a disable_vectorize option.  By default, the option is disabled.  To enable it for a build, do:
with tvm.build_config(disable_vectorize=True):
    # Build a module.
    ...

@gussmith23 @Mutinifni @wweic @tqchen

Wow, you totally read my mind, this is exactly what I needed right now. Thanks!

@gussmith23 Haha.  We needed it for MicroTVM stuff, and Tianqi mentioned that you would need it too.

Thanks, @gussmith23 @weberlo , this is now merged.


Default ES_HEAP_SIZE as a function of total memory

Would it be useful to others to to define this default as a function of total memory?  Something like the following is what I typically do but as I move more of my configuration to hiera, this kind of math is not possible:
$default_heap_size = floor($::memorysize_mb / 2)
$instance_init_defaults_main = {..., 'ES_HEAP_SIZE' => "${default_heap_size}M"}

I second this. I cannot find a way to set the HEAP_SIZE through this module on ubuntu. A parameter would be useful.

@jvehent You can define it via the instance's init_defaults parameter.  Hope that helps.

We'd find it very useful to be able to set the HEAP_SIZE on Ubuntu using a heap_size param. @jvehent, @erik-stephens - have either of you started a branch? I'd be happy to contribute.

@ajlanghorn Have you tried setting it via init_defaults?  It should work on Ubuntu as well.  I'm waiting for feedback from the maintainer(s) to confirm that it is a good idea before submitting a PR.

@erik-stephens Yes, we do exactly that, and I can confirm it works fine for us on 12.04 LTS.

@ajlanghorn Cool.  When you say "using a heap_size param", what does that look like?  Is it a percentage?

@erik-stephens Yes, pretty much. We set the total heap size allocation to be a percentage of the total RAM on the machine. Elasticsearch have some documentation on best practice guidelines to use for your heap size, and from memory, they suggest using 50% of your available RAM at most. If I can find a link, I'll fire it your way.

Hi guys.
The 50% of avail memory is correct but we also advise not to use more then 31GB of heap.
Adding all this kind of automatic calculations might confuse people on the long run so i'm not sure yet If this is something i would like to implement but i do appreciate the thought and discussion.

Hi guys,
gave this some more thought and decided not to implement such an option.
Mainly because it would be 'magic' and can fail in some cases where it might select the wrong amount of memory ( and then cause all kind of weirdness )
As a solution you can always build some kind of wrapper or role class that can define the memory to the ES class in the way you want it.
thank you though for the idea!

No problem and thanks for the consideration.  People look to Puppet modules to provide opinionated defaults based on best practices.  Allow me to try to clarify/summarize what is being proposed since I don't see it as magical or implicit.  I propose adding a new parameter heap_size_percent.  By default, it is undef which keeps the behavior as it is now.  If it is defined, then we do something like:
$instance_init_defaults_main['ES_HEAP_SIZE'] = floor($::memorysize_mb * $heap_size_percent / 100)

Could be a pretty simple patch - I'd be willing to submit a PR.  It does add complexity in the form of one more parameter to document and extra cases to test.  Also, I can see some complexity with handling when a user defines both init_defaults['ES_HEAP_SIZE'] and heap_size_percent.
Again, no worries if still think it un-wise.  Sometimes less is more.

Hi @erik-stephens thank you for the clarification.
My main concern is that we might end up with several settings for defining the heap space size.
Also the 50% rule for example states that it shouldn't be more then 31GB, so we will need to check for that as well.
What should we do when we are over the 31GB? fail the whole run or just log a warning?
And indeed conflicting settings, which one will rule then?

Hi guys.
I will be closing the issue. Gave it more thought in the last few days and decided not to implement this due to several reasons.
Thank you though for the contribution!

@electrical Are those reasons those you outlined above, or are there others? If there are others, could you just put them in this PR for completeness? Thanks!

@ajlanghorn only the reasons i've mentioned above indeed.


Apotheosis is crashing my game over and over again!

Apotheosis is crashing my game over and over again! exit code 1
and this is the mod pack i am using:
good modpack.zip

You need to provide a crash report or a log file.

goodmodpack.zip

That is neither.  Closing as you seem unwilling to provide the debug information in the proper form.

latest.log
wait do you mean this

That would be it, but that log seems truncated (cut off early), you'll need to find a crash report or the completed log.

do you mean this
2023-03-17-1.log.gz
2023-03-17-2.log.gz
2023-03-17-3.log.gz
2023-03-17-4.log.gz
2023-03-17-5.log.gz
2023-03-17-6.log.gz
2023-03-17-7.log.gz
latest.log


[BUG] Subnet requirement in a VPC

What is the bug?
When deploying the required resources such as MSK during cdk deploy step, deployment fails with subnet requirement during following cases:
-> There cannot be subnets spanning more than 3 AZs.
-> There has to be both Public and Private subnets in a VPC.
How can one reproduce the bug?
Simply use a VPC with more AZs and only public subnets or private subnets to deploy the migration tools.
What is the expected behavior?
There should be customized behavior of choosing subnets using flags or options to support the deployment.
What is your host/environment?
Using CFN launch template from documentation.
Do you have any screenshots?
NA
Do you have any additional context?
Error: Lambda Functions in a public subnet can NOT access the internet. If you are aware of this limitation and would still like to place the function in a public subnet, set `allowPublicSubnet` to true
    at NodejsFunction.configureVpc (/opensearch-migrations/deployment/cdk/opensearch-service-migration/node_modules/aws-cdk-lib/aws-lambda/lib/function.js:1:21161)
    at new Function (/opensearch-migrations/deployment/cdk/opensearch-service-migration/node_modules/aws-cdk-lib/aws-lambda/lib/function.js:1:11323)
    at new NodejsFunction (/opensearch-migrations/deployment/cdk/opensearch-service-migration/node_modules/aws-cdk-lib/aws-lambda-nodejs/lib/function.js:1:1669)
    at new MSKUtilityStack (/opensearch-migrations/deployment/cdk/opensearch-service-migration/lib/msk-utility-stack.ts:128:37)
    at new StackComposer (/opensearch-migrations/deployment/cdk/opensearch-service-migration/lib/stack-composer.ts:325:35)
    at Object.<anonymous> (/opensearch-migrations/deployment/cdk/opensearch-service-migration/bin/app.ts:22:1)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module.m._compile (/opensearch-migrations/deployment/cdk/opensearch-service-migration/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Object.require.extensions.<computed> [as .ts] (/opensearch-migrations/deployment/cdk/opensearch-service-migration/node_modules/ts-node/src/index.ts:1621:12)

Thanks for the ticket, agree that VPC requirements should be called out in documentation and even better a validation stage in the CDK to call out detected mismatches for a provided VPC. Here is the associated JIRA for tracking: https://opensearch.atlassian.net/browse/MIGRATIONS-1496

This issue should be resolved with the merging of this PR: https://github.com/opensearch-project/opensearch-migrations/pull/533
We now call out in documentation that the VPC used must have at least two private subnets that span at least two AZs. We have introduced more VPC validations during the synthesis stage to catch these issues earlier, and are also able to handle more than 2 AZs if provided and we need to select a subset.


Update manage-search-schema.md

Added a new table with variants on RefinableString. I chose to more closely follow the format of the UI for the Managed property characteristics rather than the way the table above works, since the characteristics don't match the wording or the order in the UI.
AFAIK, these variants aren't documented anywhere else, as Bingling for "RefinableStringFirst" (for example) returns zero hits.

Done, @JohanFreelancer9. This test is copied directly from the UI. Not sure how I de-capitalized the "i".

Mentioning @wobba for awareness.

@JoanneHendrickson @JohanFreelancer9 - @wobba and I have discussed a couple more changes to the table in the Default unused managed properties section. I'd like to add those before you publish the changes above.
We're going to improve the first table to better match the UI and combine the two tables into one. Some of the RefinableString variants - specifically those with Internal in their name - will be hidden, and thus should not be in this doc.

The changes by @sympmarc aligns with an internal discussion we had in the product group.

@wobba @JoanneHendrickson @JohanFreelancer9 - I've merged the two tables and added "footnotes" in a column on the right headed Notes. I'm not sure what the convention should be with this additional information, but it doesn't fit very well inline.

I switched from footnotes to asterisks after input from @tomresing and @daisyfell.
I think this is good to go from my end!

Hmm, I can't seem to add the 'sign off' label... @SerdarSoysal or @MikePlumleyMSFT, sorry to bug but can you? A lot of do si do on this one. <=)

@pamgreen-msft that label isn't used in the public repo. I think we'd just merge it, which I could do after one further clarification.
@sympmarc what order is this table sorted in? It seems like it's grouped by the first column, but then I'd probably expect it to be sorted by the second column, either ascending or descending by number within the group.

I left the original rows in the order they were in originally. I added the new rows at the bottom, and I believe they are sorted in the order they display in the UI.


Lint tooltip doesn't work when editor is in shadow dom

Specifically, this logic always hides the lint tooltip after 400ms.
var poll = setInterval(function() {
  if (tooltip) for (var n = node;; n = n.parentNode) {
    if (n == document.body) return;
    if (!n) { hide(); break; }
  }
  if (!tooltip) return clearInterval(poll);
}, 400);

As the for loop travels up the tree, it hits the shadow dom boundary (document fragment), which doesn't have a .parentNode. I can make a reduced case if that helps.
It works for me commenting those lines out, but I'd like to make a fix that takes what this logic is supposed to do into account. What is it there for?

This is used to automatically remove the tooltip when the relevant node is no longer in the document. I have very little experience with shadow DOM. Does .contains see through shadow DOM boundaries? If so, we could use that instead here.

Doesn't look like it:

Here's a reduced CodeMirror-in-Polymer case:
<!doctype html>

  <meta charset="UTF-8">
  <title>polymer + codemirror lint tooltip autohide bug</title>

  <link rel="stylesheet" href="./bower_components/codemirror/lib/codemirror.css">
  <link rel="stylesheet" href="./bower_components/codemirror/addon/lint/lint.css">

  Bug: codemirror/CodeMirror#3039

<polymer-element name="code-mirror">
  <template>
    <link rel="stylesheet" href="./bower_components/codemirror/lib/codemirror.css">
    <link rel="stylesheet" href="./bower_components/codemirror/addon/lint/lint.css">

  </template>
</polymer-element>

Does the attached patch work? It tries to continue through the element's root property when it hits a shadow root node.

At that point, n is #shadow-root with native implementations and ShadowRoot with webcomponents.js polyfill. The line should be:
if (n && n.nodeType == 11) n = n.host;

This works for native (Chrome). You probably don't want to worry about Polymer's polyfill morass, but this is needed for it to work everywhere:
    if (n && n.nodeType == 11) {
      n = n.host;
      if (typeof unwrap == "function") n = unwrap(n);
    }

Thanks. I adjusted the property name in 34622a2 (not sure where I got root from -- I was looking at the spec which clearly says host).


bevy_reflect: Fix apply method for Option<T>

Objective
#5658 made it so that FromReflect was used as the bound for T in Option<T>. However, it did not use this change effectively for the implementation of Reflect::apply (it was still using take, which would fail for Dynamic types).
Additionally, the changes were not consistent with other methods within the file, such as the ones for Vec<T> and HashMap<K, V>.
Solution
Update Option<T> to fallback on FromReflect if take fails, instead of wholly relying on one or the other.
I also chose to update the error messages, as they weren't all too descriptive before.

Changelog

Use FromReflect::from_reflect as a fallback in the Reflect::apply implementation for Option<T>

I just added a test which subsequently alerted me of another bug which has been fixed as well.

bors r+


Why is your TD-error increasing?

Hey @awjuliani, thank you for your github repo about successor representations. Currently working on my master thesis and it help me a lot! However, I got one question: Why is your td-error increasing? Shouldn't it be decreasing?

Hello, @SaifAlDilaimi,
I am glad the repository has been helpful to you. Because of the bootstrapping involved in the successor target during the update as well as the fact that the policy used to update the SR is random, you should expect the error to increase, as values continue to be propagated throughout the environment. I believe it is the case that if you ran the algorithm long enough, and used a deterministic policy, it should eventually converge to zero TD-error.

You definitely have the right intuition. One thing to ensure is that whatever you use for your goal vector must enable the reward/value function to be a linear function of the successor matrix and the goal vector. This is typically accomplished by either learning the goal vector online, or by hand-crafting a goal which satisfies that criteria.

Oh, that was fast! I'm I right that a "handcrafted" goal vector would be the state representation of the goals position in the environment? At least in your example?

That is correct.


Automatic PR from RestAPI-PR596

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/596

Coverage decreased (-0.001%) to 55.727% when pulling 210c42f1cf9e1aec93125e334e4b30f0351f5054 on AutorestCI:RestAPI-PR596 into e101e6253082040e00255acce936fcaefe52923e on Azure:dev.

Coverage decreased (-0.001%) to 55.727% when pulling 210c42f1cf9e1aec93125e334e4b30f0351f5054 on AutorestCI:RestAPI-PR596 into e101e6253082040e00255acce936fcaefe52923e on Azure:dev.

@lmazuel, can this PR be merged?


Error While Running transcription = stt.transcribe("audio.wav")

ValueError: You are trying to return timestamps, but the generation config is not properly set. Make sure to initialize the generation config with the correct attributes that are needed such as no_timestamps_token_id. For more details on how to generate the approtiate config

@nayeem01 Can you reproduce the error? If so, how?

@shhossain Whenever I try to run normally, it fails.

@nayeem01 downgrade transformers version for now. i will try to solve it when i get time.

Same issue as @nayeem01
Repro:
=> New python project (venv with Python 3.10.11)
=> pip install banglaspeech2text
from banglaspeech2text import Speech2Text
stt = Speech2Text()
transcript = stt.recognize(path_to_audio_file)

The error message directed here:
https://github.com/huggingface/transformers/issues/21878#issuecomment-1451902363
Full Traceback:
Traceback (most recent call last):
File "project\cli.py", line 41, in
transcript_file_path = transcribe.transcribe(audio_path)
File "project\transcribe.py", line 70, in transcribe
transcript = stt.recognize(temp_file_path)
File "project.venv\lib\site-packages\banglaspeech2text\speech2text.py", line 451, in recognize
return self.pipeline(data, *args, **kw)["text"]  # type: ignore
File "project.venv\lib\site-packages\transformers\pipelines\automatic_speech_recognition.py", line 283, in call
return super().call(inputs, **kwargs)
File "project.venv\lib\site-packages\transformers\pipelines\base.py", line 1294, in call
return next(
File "project.venv\lib\site-packages\transformers\pipelines\pt_utils.py", line 124, in next
item = next(self.iterator)
File "project.venv\lib\site-packages\transformers\pipelines\pt_utils.py", line 269, in next
processed = self.infer(next(self.iterator), **self.params)
File "project.venv\lib\site-packages\transformers\pipelines\base.py", line 1209, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "project.venv\lib\site-packages\transformers\pipelines\automatic_speech_recognition.py", line 515, in _forward
tokens = self.model.generate(
File "project.venv\lib\site-packages\transformers\models\whisper\generation_whisper.py", line 533, in generate
timestamp_begin = self._set_return_timestamps(
File "project.venv\lib\site-packages\transformers\models\whisper\generation_whisper.py", line 1216, in _set_return_timestamps
raise ValueError(
ValueError: You are trying to return timestamps, but the generation config is not properly set. Make sure to initialize the generation config with the correct attributes that are needed such as no_timestamps_token_id. For more details on how to generate the approtiate config, refer to https://github.com/huggingface/transformers/issues/21878#issuecomment-1451902363

@nayeem01 @aaqif-elo Apologies for the delay; I've been busy. I’ll look into the issue and get it fixed today.

@nayeem01 @aaqif-elo update to latest version and check if problem presists.
pip install BanglaSpeech2Text==1.0.9

Unfortunately, the issue seems to still be there.
I have updated to v1.0.9 and I can see the config added to speech2text.py
# set generation config
            generation_config_model = get_generation_model(self.raw_name)
            try:
                gen_config = transformers.GenerationConfig.from_pretrained(
                    generation_config_model
                )
                self.pipeline.model.generation_config = gen_config
            except Exception as e:
                pass

But I'm still getting the error
ValueError: You are trying to return timestamps, but the generation config is not properly set. Make sure to initialize the generation config with the correct attributes that are needed such as no_timestamps_token_id. For more details on how to generate the approtiate config, refer to https://github.com/huggingface/transformers/issues/21878#issuecomment-1451902363

@aaqif-elo which model are you using?

stt = Speech2Text()

I did not define a model so I am assuming it defaults to base
model: str = "base",


Permitted domains table

For this story: https://trello.com/c/8kMAKjT6
Once the rake task is run in production I'll open a separate PR to actually validate using this table rather than the config file.
@threedaymonk @jaikoo comments?

Squashed, updated structure.sql, and merged.


chore(translations): filling in a bunch of blanks (round 1)

SUMMARY

Sets the script to run 100 msgids and translate them into missing languages. These results might not be perfectly formatted, but are hopefully better than blanks? ¯\_(ツ)_/¯
FWIW, this cost $0.10 to generate:
Tokens Used: 60094
Prompt Tokens: 33490
Completion Tokens: 26604
Successful Requests: 99
Total Cost (USD): $0.10344300000000003
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Closing for now because the .po files are egregiously out of date


Support reload of systemd --user for non-zero UIDs

Pull Request (PR) description
This change increased the minimum required Puppet version to 6.24.0 or 7.9.0 PUP-5704 to support arrays to the command attribute of the exec type.
Support calling the systemd --user for a particular uid.
A uid must be used rather than the probably more convenient username since the $XDG_RUNTIME_DIR for the user must be known.
This change assumes that XDG_RUNTIME_DIR is /run/user/<uid> for all uids.
Example run:
notify{'junk':
 notify => Systemd::Daemon_reload['foobar'],
}

systemd::daemon_reload{'foobar':
  uid => 1000,
}

results in
Notice: Compiled catalog for fedora. in environment production in 0.05 seconds
Notice: junk
Notice: /Stage[main]/Main/Notify[junk]/message: defined 'message' as 'junk'
Notice: /Stage[main]/Main/Systemd::Daemon_reload[foobar]/Exec[systemd-foobar-systemctl-user-1000-daemon-reload]: Triggered 'refresh' from 1 event
Notice: Applied catalog in 0.17 seconds

and a journal (debug on) of
Feb 28 11:44:34 fedora systemd[1]<EMAIL_ADDRESS>Got notification message from PID 1877 (RELOADING=1, MONOTONIC_USEC=5874581103)
Feb 28 11:44:34 fedora systemd[1]<EMAIL_ADDRESS>Changed running -> reload-notify
Feb 28 11:44:34 fedora systemd[1]<EMAIL_ADDRESS>Installed new job<EMAIL_ADDRESS>as 6151
...

It is going to be a pain passing in the uid since you often do not know it.
Open to alternatives?
Having a fact that provides details on the running systemd --users seems bad with terrible race conditions.

@traylenator are you fine with this for now or should we wait for a solution to get the UID?

I am fine with this as is. It unlocks quite a few things for Podman in particular and if we can support a user attribute all of this is still correct.

It is going to be a pain passing in the uid since you often do not know it.

Would a deferred function to resolve a username to uid be possible?

You can certainly do a deferred inline template for the exec command - less sure about the user parameter. Will have a play after this.
A getpwnam  is a very generic function so would probably add it to extlib anyway.

I don't mind the array, but https://www.puppet.com/docs/puppet/7/types/exec.html#exec-attribute-command should really document that it was PUP-5704 that implemented it and you need at least Puppet 6.24.0 or Puppet 7.9.0.
Because of that we should raise the minimum version in metadata.json.

min puppet version bumped.

getpwnam  is a very generic function so would probably add it to extlib anyway.
Wrong function:
It would be
https://github.com/wcooley/puppet-name_service_lookups/blob/master/lib%2Fpuppet%2Fparser%2Ffunctions%2Fgetpwuid.rb
of course.

@traylenator oh having those in extlib would be awesome! (and maybe be converted to the modern API :eyes: )

Almost feels generic enough to belong in stdlib.

Rebased - since we crossed the backwards incompatible threshold - would be good.

the code looks fine to me. But is it actually a backwards-incompatible change?

Only for exec.command = Array , so increase in puppet version.

I made the mistake at looking at this again:
machinectl shell<EMAIL_ADDRESS>/usr/bin/systemctl --user daemon-reload

ran as root avoids the need the UID and knowing where things are.

#443 is a much better solution and avoids all the user -> uid hassles.

Thanks for all the reviews - I've hopefully taken over all the comments to the new one.


add  tmpOnTmpfs feature from https://github.com/NixOS/nixpkgs/issues/23912

Motivation for this change
wanted this feature already, implemented it now.
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

A few points:

I don't really like overloading the type of options (i.e. either bool string). Why not just add a separate size option, like boot.devShmSize?

We really should continue to use the upstream unit to prevent getting out of sync with systemd. The upstream unit also has several options omitted here (e.g. Description, Conflicts, After, etc.). It would be better to use systemd's override mechanisms, e.g.

systemd.mounts = [ { where = "tmp"; options = [...]; } ];

or even better
systemd.mounts."/tmp".options = [...];

but that will require changing systemd.mounts into an attrset, like systemd.services.

@edolstra:

I wanted to keep the interface unchanged for people who already have set this option, otherwise i'd make two options: boot.tmpOnTmpfs.enable and boot.tmpOnTmpfs.size.
can you give me any pointers how to tackle this? this would be a major refactoring, if i understand correctly.

Should converting systemd.mounts to an attrset be part of the effort? I cannot think of a way to do this in a backwards compatible way.

For the author, reviewers, and committers: this PR was scanned and appears to add a use of the deprecated types.string, which emits a warning as of #66346. Before merging, please change this to another type, possibly:

types.str for a single string where merging does not make sense, or cannot work
types.lines for multi-line configuration or scripts where merging is possible
types.listOf types.str for a mergeable list of strings


something wrong when we use Multiple NICs

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

I find many ansible_default_ipv4.address in roles  tasks.
Currently , our machine are all with Multiple NICs , when   ansible_ssh_host  is not default ip address， using  ansible_default_ipv4.address  , many config will be wrong ,
such as, https://github.com/kubernetes-incubator/kubespray/blob/383d582b4753f4e3d23ee305ef95b09007bd424b/roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2#L29
so, should we replace ansible_default_ipv4.address with ansible_ssh_host ?
If it is ok ,I want to fix it.
Environment:

Cloud provider or hardware configuration:
bare metal
OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):

Linux 3.10.0-514.el7.x86_64 x86_64
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Version of Ansible (ansible --version):

ansible <IP_ADDRESS>
 config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

Kubespray version (commit) (git rev-parse --short HEAD):
Network plugin used:
flannel
Copy of your inventory file:
[all]
host.1    ansible_ssh_host=<IP_ADDRESS>    ansible_ssh_port=22
host.2    ansible_ssh_host=<IP_ADDRESS>    ansible_ssh_port=22

[k8s-cluster:children]
kube-node
kube-master

[kube-master]
host.1

[kube-node]
host.1
host.2

[etcd]
host.1

Command used to invoke ansible:
ansible-playbook --ssh-extra-args "-o StrictHostKeyChecking=no" -u root -b --become-user=root -i inventory/inventory.cfg cluster.yml

you can set the ip variable for each host

Thanks , I close it


Add 2, update 2, ai dev new templates to allow use of OpenAI JS library, use of OpenAI.com keys, and Assistants API

Updated these ai dev new templates (now uses OpenAI JS library, can use OpenAI.com or AOAI connection info)

openai-chat-streaming-js
openai-webpage-js

Added these ai dev new templates (uses OpenAI JS library, can use OpenAI.com or AOAI connection info)

openai-chat-w-asst-w-streaming
openaiwhat-w-asst-webpage

These are the most important changes I had related to JavaScript and Node.js convention/practices


Use timestamp and date in image name for domain in image tests

Use timestamp and date in image name for domain in image tests
delete unused properties file
Full test suite - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-quicktest/1118/ - failures are existing intermittent failures

I don't know of any code that deletes images from machines local Docker repositories; however, we do have a global retention policy on OCIR that deletes images not pulled in the last 45 days.

Domain in image tests delete the domain images from the local repository at the end of the test. We don't have any script or cron job to delete the images from the remote k8s cluster nodes.


Prevent disabling of binlog

refs: https://github.com/cybozu-go/moco/issues/638

I'm currently using the operator with single DB instances and explicitly disabling binary logging as I don't need replication but a very lightweight implementation.
Is it possible to maintain this behavior?

I'm afraid not.
Even a single cluster needs binlogs for MOCO because we allow users to add replicas later, which needs binlogs.

What if there was a CRD level option that would allow for this, provided that the number of replicas is 1? That would be easier to validate.

@masa213f @d-kuro thoughts?

@vsliouniaev @ymmt2005
Can _includ be used?
https://cybozu-go.github.io/moco/usage.html?highlight=_inc#opaque-configuration

yup, that should work.

Thanks that's very helpful!


Multiprocessing

Turn on use_multiprocessing and look into workers parameter

https://github.com/tilayealemu/MelaNet/commit/11be7af6c8a153f801403572b41d7b1a03c21ffc#diff-8e557b35b9582915bb19aa9646977b4e


undefined

Do you have to be implicit if the function returns nothing/undefined?
IMO you should not have to add anything. In the case that you do wanna be explicit about it I would use : void because void always returns undefined (unlike undefined which wasn't readonly before ES5).

Done. Want to write a sample for the doc?


Fixes #400, #653, #685, #686,

Fixes
#400 Kafka -> HBase pipeline
#653 Start services in Yarn Application Master and register it's URL and the trackingURL
#685 Pipeline: Fix runtime classpath and fat jar assembly to take advantage of jars on target node
#686 Pipeline: Define all schema using upickle._

Note - @clockfly @huafengw  I'm am testing the fixes but wanted to make the PR available

I will resubmit based on new branch to simplify things. Sean I'll incorporate any comments that still apply.


[WIP] Training with on-the-fly feature extraction

This is how on-the-fly feature extraction would look like. The main differences are that:

the cuts (speech and noise) are mixed and padded in the time domain, not fbank domain
there is no lilcom compression
[not in this PR yet] speed perturbation could be applied stochastically; instead of creating 3x larger epochs, we can have 3x more epochs and apply perturbation with a given probability

I think I will revert 'inputs' key back to 'features' in batches, and replace max_frames everywhere with max_duration (the relationship is simple - multiply duration by 100 and you have the num_frames). I'll also add option to prepare.py not to extract features.
Preliminary results are actually worse for on-the-fly variant, but I haven't figured out why yet. I'll have to inspect the batches more carefully to understand that.
Baseline WER (pre-computed features + feat-domain mixing):
2021-03-12 22:46:33,175 INFO [mmi_att_transformer_decode.py:330] %WER 6.82% [3587 / 52576, 512 ins, 284 del, 2791 sub ]
On-the-fly WER:
2021-03-16 09:27:06,059 INFO [mmi_att_transformer_decode.py:330] %WER 7.01% [3684 / 52576, 512 ins, 284 del, 2888 sub ]

One note: there is a useful function in torchaudio that's called bg_iterator, it starts a background thread that's reponsible for prefetching the batches from dataloader processes, it makes a significant difference for on-the-fly computation (without it there's 200-300ms delay, with it it's practically the same as the pre-computed variant).

Great!!
There is a small random variation in results.  That 0.1% absolute difference, I would not treat as reliable.

OK - I made last changes for consistency, and I'm merging now. Please update your Lhotse to the latest upstream version after that.

I'll still look into whether there are any differences between precomputed and on-the-fly batches, just later.


How to set max distance when recording on D455

| Camera Model | { D455 } |
| Firmware Version | <IP_ADDRESS> |
| Operating System & Version | MacOS |
| Platform | Mac|
| SDK Version | <IP_ADDRESS> |
| Language | C++ |
| Segment | Ply, RGBD, Recording |
Hi,
I'm wondering if it is possible to set the max distance in the realsense-viewer when recording.
I've already set the max distance to a value I want

But after I extra depth information from the bag file (i.e: a ply file), the object out of that distance is still recorded. Below is an example:
RGB image: The toy was about within 0.5m from the camera, and the wall has at least 1.5M away

Visualise the Ply: everything behind 1M was still included

Here is a scaled depth image extract from the bag file

I wish only to record the toy, i.e: within 1M, and ignore everything out of that distance. Is there any setting in the realsense-viewer to achieve this?
Cheers.

Hi @Jonapple   The Histogram Equalisation option alters how color is rendered.  To set depth rendering distance limits you should use the Threshold Filter post-processing filter that can be found under the Post-Processing category of the Stereo Module options.  The Threshold Filter is set to a maximum distance of 4 meters by default.
It should be noted though that a bag file is a recording of raw, unprocessed camera data.  Once a bag file is loaded into memory, then post-processing can be performed on the data in real-time, such as changing the maximum distance of depth information that is displayed.  You can then go into 3D point cloud mode to export a ply file.

Hi @Jonapple  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.

Hi @Jonapple Do you require further assistance with this case, please? Thanks!

Sorry for the late reply, the problem is sloved. Thank you for mention the bag file could be reloaded and post-process, saved my life in data collecting.

Great news that you were successful @Jonapple - thanks very much for the update!


[ci,doc] CMDGEN error can be a bit confusing

Description
From https://github.com/lowRISC/opentitan/pull/18782#issuecomment-1573705361

Full error output from CMDGEN tool, as seen in CI output.
Starting: Check CMDGEN Blocks
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.214.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
Script contents:
ci/scripts/check-cmdgen.sh
========================== Starting Command Output ===========================
/usr/bin/bash /home/vsts/work/_temp/99541db1-d037-4930-902c-8deab2f4f4dd.sh
INFO:__main__:util/tlgen/README.md:L56: `util/selfdoc.py tlgen` output the following error messages:
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']

INFO:__main__:hw/ip/aes/doc/interfaces.md:L2: Generated content needs updating.
##[error]Documentation generated using CMDGEN blocks is not up to date.
Update blocks with: ./util/cmdgen.py -u '**/*.md'
##[error]Bash exited with code '1'.
Finishing: Check CMDGEN Blocks

I found the error output from CMDGEN check failing in CI to be a bit confusing. This mostly comes down to the tool checking all blocks in the codebase, then reporting stderr from other blocks as well as reporting which block caused the CI failure.
(...)
========================== Starting Command Output ===========================

INFO:__main__:util/tlgen/README.md:L56: `util/selfdoc.py tlgen` output the following error messages:
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']

INFO:__main__:hw/ip/aes/doc/interfaces.md:L2: Generated content needs updating.
##[error]Documentation generated using CMDGEN blocks is not up to date.
Update blocks with: ./util/cmdgen.py -u '**/*.md'

(...)

In the except above, the first three lines are unrelated to the failure in the bottom three lines. At a glance, this caused (me) confusion.
Suggestions:

Re-arrange the output of the tool to make it easier to follow. For example :

========================== Starting Command Output ===========================
##[info] Running CMDGEN tool....
##[error] Documentation generated using CMDGEN blocks is not up to date.
Update all blocks with: ./util/cmdgen.py -u '**/*.md'

##[info] The following CMDGEN blocks caused the failure:
INFO:__main__:hw/ip/aes/doc/interfaces.md:L2: Generated content needs updating.

##[info] While executing, the following CMDGEN blocks produced the following stderr:
INFO:__main__:util/tlgen/README.md:L56: `util/selfdoc.py tlgen` output the following error messages:
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']
ERROR:root:['list of group', 'comma separated group of key:value enclosed in `{}` the second entry of the list is the sub group format']

https://github.com/lowRISC/opentitan/pull/19330

@hcallahan-lowrisc was there more to be fixed here, or does #19330 solve the problem?


Fix Ubuntu Python 2.7 multi-workspace tests on GitHub Actions

Related to #9968
GHA run: https://github.com/kimadeline/vscode-python/actions/runs/61614453

Nevermind, we can track them all in #9968


Add API docs generation

On branch api-docs-generation
Changes to be committed:
modified:   .github/workflows/website.yml
modified:   .gitignore
new file:   docs/gen_ref_pages.py
modified:   mkdocs.yml
modified:   poetry.lock
modified:   pyproject.toml
Close #83
This PR includes the following changes:

Update dependencies as discussed here
Add generation file as discussed in the same comment
Update mkdocs.yaml
Update site-workflow by including all the dependencies (see commentary in the code)

I made a deployment from my fork and it looks like this:
https://semyonsinchenko.github.io/pyspark-ai/reference/SUMMARY/

@gengliangwang This PR is ready for review. Please, make a look, when you have time! Tnx in advance!

@SemyonSinchenko Thanks for the work. However, the API references from https://semyonsinchenko.github.io/pyspark-ai/reference/SUMMARY/ are not the ones we expect to show to users. We only want to expose the APIs with the df.ai. prefix.

@gengliangwang I can reduce the scope of exposed API. You may check the updated link: https://semyonsinchenko.github.io/pyspark-ai/reference/SUMMARY/
But df.ai is a runtime magic, I don't think we can 100% automate it...
Btw, do I understand correctly, that you want to see in API docs methods in form DataFrame.ai.XXX? Or it is enough to expose the actual classes (SparkAI, AIUtils, etc.) but limit the scope?

you want to see in API docs methods in form DataFrame.ai.XXX?

Yes, we only want users to use df.ai.... Exposing other methods will confuse users.
Thanks for updating https://semyonsinchenko.github.io/pyspark-ai/reference/SUMMARY/. But it seems making the doc a bit more complicated.


NER Finetuning- TypeError: join() argument must be str or bytes, not 'NoneType'

It worked for me when I added extra argument to argvec. '--train_lang'.
It was working without this parameter some days ago.

Thanks for reporting this.
Can you provide the full set of commands you ran or a sample colab link to reproduce this issue?
Once we reproduce this, will add a fix.


"Murder Mystery" quest

Quest helper jumps to the "finishing up" step, skipping a bunch of steps and not directing what to do or where to go.

Should be fixed with https://github.com/Zoinkwiz/quest-helper/commit/70ce053116a357a885407dd5b38cb093bc80ac28


Test failures with aeson <IP_ADDRESS>

Failures:

  test/Data/Aeson/Config/FromValueSpec.hs:85:9:
  1) Data.Aeson.Config.FromValue.fromValue, with a record, fails on invalid field value
       expected: Left "Error while parsing $.age - expected Int, encountered String"
        but got: Left "Error while parsing $.age - parsing Int failed, expected Number, but encountered String"

  To rerun use: --match "/Data.Aeson.Config.FromValue/fromValue/with a record/fails on invalid field value/"

  test/Data/Aeson/Config/TypesSpec.hs:23:11:
  2) Data.Aeson.Config.Types.fromValue.List, when parsing single values, returns error messages from element parsing
       expected: Left "Error while parsing $ - expected Int, encountered String"
        but got: Left "Error while parsing $ - parsing Int failed, expected Number, but encountered String"

  To rerun use: --match "/Data.Aeson.Config.Types/fromValue/List/when parsing single values/returns error messages from element parsing/"

  test/Data/Aeson/Config/TypesSpec.hs:33:11:
  3) Data.Aeson.Config.Types.fromValue.List, when parsing a list of values, propagates parse error messages of invalid elements
       expected: Left "Error while parsing $[1] - expected Int, encountered String"
        but got: Left "Error while parsing $[1] - parsing Int failed, expected Number, but encountered String"

  To rerun use: --match "/Data.Aeson.Config.Types/fromValue/List/when parsing a list of values/propagates parse error messages of invalid elements/"

  test/EndToEndSpec.hs:282:9:
  4) EndToEnd.hpack.defaults fails on parse error
       expected: Left "defaults/sol/hpack-template/2017/defaults.yaml: Error while parsing $ - expected Object, encountered Array"
        but got: Left "defaults/sol/hpack-template/2017/defaults.yaml: Error while parsing $ - expected Object, but encountered Array"

  To rerun use: --match "/EndToEnd/hpack/defaults/fails on parse error/"

  test/EndToEndSpec.hs:341:9:
  5) EndToEnd.hpack.version rejects other values
       expected: Left "package.yaml: Error while parsing $.version - expected Number or String, encountered Object"
        but got: Left "package.yaml: Error while parsing $.version - expected Number or String, but encountered Object"

  To rerun use: --match "/EndToEnd/hpack/version/rejects other values/"

  test/EndToEndSpec.hs:1360:11:
  6) EndToEnd.hpack.when, when parsing conditionals with else-branch, rejects invalid conditionals
       expected: Left "package.yaml: Error while parsing $.when.else - expected Object, encountered Null"
        but got: Left "package.yaml: Error while parsing $.when.else - expected Object, but encountered Null"

  To rerun use: --match "/EndToEnd/hpack/when/when parsing conditionals with else-branch/rejects invalid conditionals/"

  test/EndToEndSpec.hs:1369:11:
  7) EndToEnd.hpack.when, when parsing conditionals with else-branch, rejects invalid conditionals
       expected: Left "package.yaml: Error while parsing $.dependencies[1] - expected Object or String, encountered Number"
        but got: Left "package.yaml: Error while parsing $.dependencies[1] - expected Object or String, but encountered Number"

  To rerun use: --match "/EndToEnd/hpack/when/when parsing conditionals with else-branch/rejects invalid conditionals/"

  test/Hpack/ConfigSpec.hs:676:9:
  8) Hpack.Config.fromValue, with Cond, rejects other values
       expected: Left "Error while parsing $ - expected Boolean or String, encountered Number"
        but got: Left "Error while parsing $ - expected Boolean or String, but encountered Number"

  To rerun use: --match "/Hpack.Config/fromValue/with Cond/rejects other values/"

  test/Hpack/Syntax/DefaultsSpec.hs:152:11:
  9) Hpack.Syntax.Defaults.fromValue, when parsing Defaults, with neither Object nor String, fails
       expected: Left "Error while parsing $ - expected Object or String, encountered Number"
        but got: Left "Error while parsing $ - expected Object or String, but encountered Number"

  To rerun use: --match "/Hpack.Syntax.Defaults/fromValue/when parsing Defaults/with neither Object nor String/fails/"

  test/Hpack/Syntax/DependenciesSpec.hs:126:11:
  10) Hpack.Syntax.Dependencies.fromValue, when parsing Dependencies, with a mapping from dependency names to constraints, rejects invalid values
       expected: Left "Error while parsing $.hpack - expected Null, Object, Number, or String, encountered Array"
        but got: Left "Error while parsing $.hpack - expected Null, Object, Number, or String, but encountered Array"

  To rerun use: --match "/Hpack.Syntax.Dependencies/fromValue/when parsing Dependencies/with a mapping from dependency names to constraints/rejects invalid values/"

  test/Hpack/Syntax/DependenciesSpec.hs:213:15:
  11) Hpack.Syntax.Dependencies.fromValue, when parsing Dependencies, with a mapping from dependency names to constraints, when the constraint is an Object, with a version key, rejects objects
       expected: Left "Error while parsing $.foo.version - expected Null, Number, or String, encountered Object"
        but got: Left "Error while parsing $.foo.version - expected Null, Number, or String, but encountered Object"

  To rerun use: --match "/Hpack.Syntax.Dependencies/fromValue/when parsing Dependencies/with a mapping from dependency names to constraints/when the constraint is an Object/with a version key/rejects objects/"

Randomized with seed 743723074

Finished in 0.2105 seconds
469 examples, 11 failures, 3 pending
Test suite spec: FAIL
Test suite logged to: dist/test/hpack-0.31.2-spec.log
0 of 1 test suites (0 of 1 test cases) passed.

There's a commit fixing this as part of #345. In the meantime, feel free to ignore those failures - hpack is just being fussy about the specific spelling of failure messages, and aeson changed those lately.

Thanks. I didn't find the PR with a simple search :)

I guess this is fixed now?


[BUG]: stuck at initialization and no error message

🐛 Describe the bug
When parallel is set to pipeline=4 and tensor=dict(mode='2d', size=4), the program will get stuck on initialization and no error message will be output.
Environment
2*8 A100

Same bug at tp2pp4

same bug, looking forward a solution...

which example is related to this bug?

which example is related to this bug?

gpt2 for the initial issue.

We have updated a lot. This issue was closed due to inactivity. Thanks.


"TypeError: Packer is not a constructor" ?

I'm using binpacking in a create-react-app application with node 10 and getting the following error:

Uncaught TypeError: Packer is not a constructor

import binpack from 'binpacking'

const Packer = binpack.Packer

console.log(binpack)

const packer = new Packer(30,20)

The offending line is const Packer = binpack.Packer
The main file for the NPM package is (in its entirety)
exports.GrowingPacker = require('./packer.growing.js').GrowingPacker;
exports.Packer = require('./packer.js').Packer;

When I console log binpack I see that both GrowingPacker and Packer are undefined.
I'm at a loss here -- I'm sure it's something to do with requires or imports, but I'm lost.  I tried using 'require' in my file in place of 'import', but it changed nothing.

got any luck on this ?


Fix broken reindexed due to change in operator precedence (v0.15)

Fix broken reindexed
This fixes broken reindexed due to PR #4033 in the purescript compiler for the upcoming v0.15 release. Thx to @nwolverson for pointing out how to fix this.

Checklist:

[ ] Added the change to the changelog's "Unreleased" section with a link to this PR and your username
[ ] Linked any existing issues or proposals that this pull request should close
[ ] Updated or added relevant documentation in the README and/or documentation directory
[ ] Added a test for the contribution (if applicable)

Mind updating the changelog?

Mind updating the changelog?

Done


constrain reason string; fix api for so that new client does not rely on ack

Pull Request Test Coverage Report for Build 3615

4 of 5 (80.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 69.589%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core/src/main/java/com/netflix/conductor/service/ExecutionService.java
2
3
66.67%

Totals

Change from base Build 3609:
-0.004%

Covered Lines:
11025

Relevant Lines:
15843

💛  - Coveralls


Query Parser: Add query script ability

Add a new reserved word/symbol that allows the user to pass a script to elastic search per the built in script portion of the query engine. Something like:
Possible reserved words symbols:
foo=true AND SCRIPT("doc['maxCost'] - doc['minCost'] < 100")

foo=true AND #("doc['maxCost'] - doc['minCost'] < 100")

foo=true AND %("doc['maxCost'] - doc['minCost'] < 100")

The contents of the script would not be parsed, just packaged and sent to elastic search.

All of the fields inside the doc  must be part of the root document? Is there an option to make terms aggregation on scripted field which is a combination of 2 nested fields, for example?


Discord Rich Presence extension because it depends on the 'Git' extension

The extension stopped working out of nowhere and is giving this error. I don't know what it could be since git is loading normally

Had the same issue, you can downgrade the extension temporarily until there's a fix for it:

Press Ctrl + Shift + X to open the Extensions sidebar.
Search for “Discord Rich Presence”.
Click on the extension.
Click on the arrow next to “Uninstall”.
Select “Install Another Version”.
Choose v5.2.10.
Restart your VS Code / development container.

This seems like a vscode issue. Got should always bw a lodes extension as it comes woth vscode.

This seems like a vscode issue. Git should always bw a lodes extension as it comes woth vscode.

Not sure I agree, as downgrading the extension fixes it.

Git not being present caused other issues. We made it a dependency so vscode would force start vscode.git. This is shipped by default with VSCode (see #320)

Try enabling the extension manually. You should be able to view the inbuilt extensions by running Extensions: Show Built-in Extensions from the command available
What Version of vs code are you running?
Are you developing with the remote extension?

@Therkelsen it worked, thanks! 😄

@nick22985 I've just revert your commit and release a patch version. We can investigate further why it doesn't work for everyone.

@leonardssh I am almost certain this bug with vscode or an extension that currently does not have support
https://github.com/microsoft/vscode/issues/85177 - was the issue I found on vscode but was closed and made on the extension repo. Issues on that repo are here:
https://bitbucket.org/atlassianlabs/atlascode/issues/278/cannot-activate-the-extension-because-it
https://bitbucket.org/atlassianlabs/atlascode/issues/169/unhandled-dependency-issue-during-ssh
Which links back to the main issue with discussion in it: https://bitbucket.org/atlassianlabs/atlascode/issues/112/support-for-vs-code-remote-development
there is also this where it was an issue for a certain version of insiders build of vscode: https://bitbucket.org/atlassianlabs/atlascode/issues/279/cannot-activate-the-jira-and-bitbucket
The only thing I can think of is that it is because the remote extension is being used but this works for me without issue. So if they are running it in remote, we might need to add support for remote extension, which the link above does say how to do but needs more info.