Incorrect FID-VID and FVD

Thanks for great work. @Wangt-CN
I tried to reproduce the results using "gen_eval.sh," but I noticed that the FID-VID and FVD do not match the results reported in the paper. Can you help me with this issue? Is it possible that I am using the incorrect checkpoints?

download checkpoints:
pth ： TikTok Training Data (FID-FVD: 18.8)
FID-VID：resnet-50-kinetics.pth : "https://github.com/yjh0410/YOWOF/releases/download/yowof-weight/resnet-50-kinetics.pth"
FVD: i3d_pretrained_400.pt : "https://drive.google.com/file/d/1mQK8KD8G6UWRa5t87SRMm5PVXtlpneJT/edit"

which checkpoint did you use to evaluate？

this one: https://storage.googleapis.com/disco-checkpoint-share/checkpoint_ft/tiktok_cfg/mp_rank_00_model_states.pt @zhangtao22

this one:https://storage.googleapis.com/disco-checkpoint-share/checkpoint_ft/tiktok_cfg/mp_rank_00_model_states.pt @zhangtao22

@Fanghaipeng 谢谢

exp_folder=$1
pred_folder="${2:-${exp_folder}/pred_gs3.0_scale-cond1.0-ref1.0}"
gt_folder=${3:-${exp_folder}/gt}
what did assign these parameters when you executed gen_eval.sh?How do them correspond to that checkpoint?

Hi, I have a similar problem.
I run the evaluation using this script (with More TikTok-Style Training Data (FID-FVD: 15.7)):
AZFUSE_USE_FUSE=0 NCCL_ASYNC_ERROR_HANDLING=0 python finetune_sdm_yaml.py --cf config/ref_attn_clip_combine_controlnet/tiktok_S256L16_xformers_tsv.py  --eval_visu --root_dir run_test   --local_train_batch_size 32  --local_eval_batch_size 32  --log_dir exp/tiktok_ft   --epochs 20 --deepspeed  --eval_step 500 --save_step 500  --gradient_accumulate_steps 1  --learning_rate 2e-4 --fix_dist_seed --loss_target "noise"  --train_yaml /root/autodl-tmp/DisCo/data/composite_offset/train_TiktokDance-poses-masks.yaml  --val_yaml /root/autodl-tmp/DisCo/data/composite_offset/new10val_TiktokDance-poses-masks.yaml  --unet_unfreeze_type "all"  --refer_sdvae  --ref_null_caption False  --combine_clip_local --combine_use_mask  --conds "poses" "masks"   --eval_save_filename outputs/  --guidance_scale 1.5 --pretrained_model /root/autodl-tmp/DisCo/checkpoints/moretiktok_cfg/mp_rank_00_model_states.pt
and perform the fvd calculation using sh gen_eval.sh run_test/exp/tiktok_ft/outputs
exp_folder=$1 pred_folder="${2:-${exp_folder}/pred_gs1.5_scale-cond1.0-ref1.0}" gt_folder=${3:-${exp_folder}/gt}
the outputs are:
{"FID": 28.28052071476202} {"FVD-3DRN50": 20.343344017827633, "FVD-3DInception":<PHONE_NUMBER>513131} {"L1": 0.00036944843636224373, "SSIM": 0.6731481792654774, "LPIPS": 0.2868661347549863, "PSNR": 29.18716913133768, "clean-fid": 28.280520714758126}
FID/L1/SSIM/LPIPS/PSNR are similar, but FVD-3DRN50 (FID-VID) and FVD-3DInception (FVD) are different. (DISCO † (w/. HAP, CFG))
Also, let me attach some gifs generated for FVD, to check whether the generated results are correct.

BTW, I found that the gif generation using imageio at 3fps (gen_eval.sh) will cause tbr as 24.25, so when ffmpeg change it to video, the origin 16 frame gif will turn into 128 frame video.
I try to change the 3fps to 25fps in gen_eval.sh, the results become more wierd: {"FVD-3DRN50": 96.4811157462753, "FVD-3DInception":<PHONE_NUMBER>752218}
I kind of not understand sample_duration=16 when dealing with 16-frame gif, does it mean...nothing? Just use the total 16 frame-video for evaluation? Or the correct version should be the original 128-frame video and split it into 8?

I meet the similar issue!
I try this script (with More TikTok-Style Training Data (FID-FVD: 15.7)). But I cannot get the satisfactory results in the paper!
How to generate the similiar videos provided in the project?

I can not aslo reproduce the results using "gen_eval.sh" by FID-VID: 18.86 provided by the official implementation. When using the default guidance scale 3.0, my result is {'FVD-3DRN50': 21.664065154647858, 'FVD-3DInception':<PHONE_NUMBER>260626}. And, using the optimal guidance scale 1.5 as reported in the paper, my result is {'FVD-3DRN50': 23.933738779128873, 'FVD-3DInception':<PHONE_NUMBER>158875} compared to the paper result FID-VID  18.86 and FVD 393.34.

Dear all, so sorry for the delay since I cannot achieve the computing resources for this project after the end of my internship in July. A few days ago, I successfully got the temporal access and I try to revisit this codebase. I used a totally new env to make sure that this codebase can be reproduced under most situations.

For Image evaluation metric, it seemed that there is no confusion (btw, for FID, we use the pytorch-FID package to report the results).

For Video metric, first of all, I can successfully reproduce our paper results (I use DisCo but not DisCo+ model and I will further verify the DisCo+ model) [@Fanghaipeng @linziqu @Yongssss]:

Metrics
FID-FVD
FVD

Paper
18.86
393.34

Reproduce
19.28
385.93

And we use this resnet-kinetics and i3d checkpoint model (under eval_fvd). I think the different results may due to the different checkpoint model which I forgot to sync from the corporation storage.

Moreover, after checking @fwbx529's comments (thanks @fwbx529 !), we found current gif generation process is indeed sub-optimal and different video format may cause totally different results. (But note that we used this computing script for all the models so it is still fair). To solve this possible issue, we revise the code and follow mvcd to directly use frames (but not generate additional video file) for the FVD computing evaluation. Here are the brief new results:

Metrics
FID-FVD
FVD

Dreampose
80.51
551.56

DisCo
59.90
292.80

DisCo+
55.17
267.75

We can see that for both baseline and our model, we got better FVD but higher FID-FVD. (Ps: we use the same generated frames for calculating the previous metric in paper and this new metric). We plan to use this new metric calculation to avoid confusion and have updated the evaluation code in the latest commit (Note: if you want to check the reproduction of the previous results, do not pull the latest commit and just download the fvd pretrained model).  We will update the paper ASAP.
If you meet any further problems about the reproduction, please comment here.

I can not reproduce the results with the checkpoint(TikTok Training Data), using the updated evaluation code and the provided vision model for achieving fvd metric.
I use the following command to inference and compute the metric:
NCCL_ASYNC_ERROR_HANDLING=0 python finetune_sdm_yaml.py \
--cf config/ref_attn_clip_combine_controlnet/tiktok_S256L16_xformers_tsv.py \
--eval_visu --root_dir DisCo-main/ --local_train_batch_size 128 --local_eval_batch_size 128 \
--log_dir exp/tiktok-cfg \
--epochs 20 --deepspeed --eval_step 500 --save_step 500 --gradient_accumulate_steps 1 \
--learning_rate 2e-4 --fix_dist_seed --loss_target "noise"  \
--train_yaml TSV_dataset/composite_offset/train_TiktokDance-poses-masks.yaml \
--val_yaml TSV_dataset/composite_offset/new10val_TiktokDance-poses-masks.yaml \
--unet_unfreeze_type "null" --guidance_scale 1.5 --drop_ref 0.05 --refer_sdvae --ref_null_caption False \
--combine_clip_local --combine_use_mask --conds "poses" "masks" \
--pretrained_model pretrained_model/tiktok-cfg.pt \
--eval_save_filename tiktok-cfg-check

sh gen_eval.sh exp/tiktok-cfg/tiktok-cfg-check
And the result is:
{"FVD-3DRN50": 95.92242708773176, "FVD-3DInception":<PHONE_NUMBER>5101624}

Hi, we can try to find the issue. There are actually 2 steps to get the results (a. generate the images; b. get the metric).

Here is the generated images (pred folder) that I try to reproduce. Could you please download it and try to run gen_eval.sh on this prediction and see if can get 60 FVD results?
Then we will know if the issue is with the generation process or the evaluation process. Btw, do you follow the repo installation to install the packages?

Sorry for the late reply. I have tried the image you gave me and got the correct result:
{"FVD-3DRN50": 60.145482643211295, "FVD-3DInception":<PHONE_NUMBER>686153}.
It seems that some factors in the generation process affect the result. I took some time to find the reason. Here are some results that I obtained：

When I use 4 GPUs, I can get a result that's relatively close to 60. I don't have a way to test the result with 8 GPUs, or maybe you've tried running inference with fewer than 8 GPUs? The number of GPUs seems to affect the test result, but I haven't found the reason why the number of GPUs affects the test result. Maybe it's because of MPI runtime? I'm not very sure.

@fwbx529 Hi would you mind providing the link to the evaluation data 201/202/203? I can not find it on TikTok dataset.

@Wangt-CN
In the context of the paper, was the FVD metric computed for video reconstruction tasks or image animation tasks? Based on the surrounding context, it seems that the FVD metric was evaluated in the context of image animation tasks. My question pertains to the absence of ground truth in image animation tasks. How is the comparison of feature distribution distance between generated and real videos handled in the absence of ground truth? Specifically, if the generated videos are created by driving source frames with a pose sequence, where are the corresponding real videos obtained? Are they directly sourced from the videos corresponding to the source frames?

Hi, we can try to find the issue. There are actually 2 steps to get the results (a. generate the images; b. get the metric).

Here is the generated images (pred folder) that I try to reproduce. Could you please download it and try to run gen_eval.sh on this prediction and see if can get 60 FVD results?
Then we will know if the issue is with the generation process or the evaluation process. Btw, do you follow the repo installation to install the packages?

When I used a 4 NVIDIA A100 batch_size=2 and  nframe=16  , and ran gen_eval_tm.sh, I obtained results similar to @asdasdad738 : "FVD-3DRN50'': 95.32, "FVD-3DInception'': 409.01. Additionally, when I used the "pred folder'' provided by @Wangt-CN, I got the correct results: "FVD-3DRN50'': 60.16, "FVD-3DInception'': 294.88. Therefore, I suspect that this issue might be caused during the generation process. Can you help me solve this problem? @Wangt-CN .


Sequence component widget

I'm thinking about a subclass of ipygany.Component, which would provide:

an attribute that holds a list of arrays (or a nd-array)
an integer attribute used to index that list (or slice the nd-array)

The value of the array attribute would be the array that correspond to the current index value in the list of arrays (or the current slice of the nd-array).
This would be very useful to create responsive and/or smoothly animated ipygany scenes, especially in conditions of low bandwidth. This way we could send the whole data at once before playing the animation.
There's a similar suggestion in https://github.com/vidartf/ipydatawidgets/issues/8, but I'm not sure what would be the best place to implement this.

I agree, I think it's a great idea

We can implement this fully in ipygany, not changing GanyJS, it should actually not be too much work.


Add test compound to COMPOUND_COLORS

The test compound being run in the Barcelona practice sessions is marked TEST-UNKNOWN in the API response. Added that to plotting.COMPOUND_COLORS or else using the dictionary for these practice sessions will throw a keyerror. Color sourced from F1 timing website.

Thanks for noting and fixing this. PRs (or at least reports) like this are very important, because I don't actually have time to "use" FastF1 myself 😅So I very often do not notice problems like this.


[OPENJDK-2009] let JAVA_OPTS override all tuning parameters (ubi8)

https://issues.redhat.com/browse/OPENJDK-2009
An adaptation of OPENJDK-78 for UBI9: make JAVA_OPTS override all tuning parameters.

CI doesn't look happy about this :(

This seems to be because JAVA_OPTS gets touched (and defined as empty as opposed to undefined) in the s2i run script, as part of the prometheus/jolokia configuration stuff (which are absent on ubi9). Working on it

Observation/subtlety: the CMD for the builders is /usr/local/s2i/run (where this patch is operating) but for the runtime images its /opt/jboss/container/java/run/run-java.sh.
The runtime images will eventually get /usr/local/s2i/run  as part of OPENJDK-2063.

Observation/subtlety: the CMD for the builders is /usr/local/s2i/run (where this patch is operating) but for the runtime images it's /opt/jboss/container/java/run/run-java.sh.

That suggests the test should be tagged builder only for now and enabled as part of the runtime images changes. Thoughts?

That suggests the test should be tagged builder only for now and enabled as part of the runtime images changes. Thoughts?

Agree with the first part: for the second, I might see if we can ensure we never support JAVA_OPTIONS for those.


Motion csv import ignores motions which contains style attributes

This motion csv example shows and imports the test2 line only. test1 is ignored.
identifier;title;text;reason;submitter;category
;test1;"foo bar";;Max;
;test2;"foo bar";;Max;

@FinnStutzenstein Any idea why?

Oh, now I see... The semikolon is the seperator, so this is split up wrong.. (underline**;**)

Ah, right...

@emanuelschuetze Closed.


Incorporate direct FHIR Search into a FASP workflow

See direct FHIR Search examples using the NCPI FHIR Server which were explored in a Nov 2020 codeathon here .
Some Resources on that server can return DRS ids which could be resolved to URLs by the Kids First DRS Server.

Brought the code in from the codeathon and renamed. Checking status of the production NCPI server.

Brought the code in from the codeathon and renamed. Checking status of the production NCPI server.

This notebook contains a FASP workflow  using a FHIR search followed by use of DRS ids. It requires access to controlled access data to complete the WES step.

Addressed in FHIR Kids First Leukemia notebook


._get() should cache the content of file in memory

If a lookup happens inside a loop, this can severely affect the performance of the loop, compared to if the lookup was happening on environment variable.

@amitu
ping.

Not yet. I am planning to work on this over the weekend.


Choose which folders affect unread number

I'm using Nova Launcher and Tesla Unread in conjuction with K9. I have folders these folders set up via Rackspace email and they are in K9 on my phone. A, B, C, and D are just folders I created and use to organize my emails, but sometimes I like to leave them unread for later viewing. However, I would like those emails in those particular four folders to not impact the unread message count. I have tried changing the folder settings so that they were 2nd Class or none in the display, sync, push, and notification class as well as changing the notification setting to 1st class folders only, but that did not help. An unread message in the Spam folder does not affect the unread badge count. Does anyone know how I can get the unread count to reflect just the unread messages in the Inbox?
Inbox
Sent
Deleted Messages
Drafts
Spam
Folder A
Folder B
Folder C
Folder D
K-9 Mail version: 5.010
Android version: 6.0.1
Account type (IMAP, POP3, WebDAV/Exchange):
IMAP via Rackspace

I would even go further: I would like to be able to define, which folder is triggering a notification.
May use case is that I have one folder which is collecting messages from a chat channel, and I want only that one showing numbers of unread messages and blinking.

Duplicate of #1266


No amounts in subscribeTransactions for each dest address

Background
When call subscribeTransaction gRPC command (https://api.lightning.community/#subscribetransactions) and receive any transaction there is list of dest addresses, but there is no amount for each address. Such amount would be very helpfull, as for now it is hard to detect if wallet received on-chain payment on expected address with expected amount.
Your environment

version of lnd: 0.5.2-beta commit=v0.5.2-beta
which operating system: Linux lnd-tst-02 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
version of bitcoind: Bitcoin Core RPC client version v<IP_ADDRESS>-g4b4d7eb255
proto built for Java

Steps to reproduce
Call subscribeTransaction gRPC command and receive some transaction.
Expected behaviour
Transaction do not contain amount for each dest address.
Actual behaviour
Transaction should contain amount for each dest address.

The documentation is only tracking the master branch at the moment, not the v0.5.2 release.

But documentation also do not contain amounts for each dest address

You can easily map the address to each output script in the response. All the necessary data is already returned.

What response and output script do you mean? Do I need to call some additional method after receive new Transaction?

According to gRPC specification, this is all the data returned (Transaction) after SubscribeTransaction:
tx_hash | string | The transaction hash amount | int64 | The transaction amount, denominated in satoshis num_confirmations | int32 | The number of confirmations block_hash | string | The hash of the block this transaction was included in block_height | int32 | The height of the block this transaction was included in time_stamp | int64 | Timestamp of this transaction total_fees | int64 | Fees paid for this transaction dest_addresses | array string | Addresses that received funds for this transaction
Where is output script that I could mach with address?

I think you need to query your full node for the amounts. Agreed that this would be useful, and it would be quite simple to add.
Reopening as feature request.


error raised as following when fine-tuning is completed

val: epoch 100:  48/ 49: 22.4 (22.4) Hz objective: 0.519 top1error: 0.127 top5error: 0.028
val: epoch 100:  49/ 49: 22.4 (20.3) Hz objective: 0.521 top1error: 0.128 top5error: 0.028
Subscripted assignment between dissimilar structures.

Error in dagnn.DagNN/addParam (line 414)
      obj.params(p) = struct(...

Error in dagnn.Layer/attach (line 236)
        net.addParam(char(param)) ;

Error in dagnn.DagNN/addLayer (line 34)
obj.layers(index).block.attach(obj, index) ;

Error in cnn_imagenet_deploy>dagMergeBatchNorm (line 127)
    net.addLayer(playerName, ...

Error in cnn_imagenet_deploy (line 20)
  dagMergeBatchNorm(net) ;

Error in MPN_COV_main_ft (line 123)
net = cnn_imagenet_deploy(net) ;

Error in run (line 96)
evalin('caller', [script ';']);

So will this error influence the model and why it occured? Thank u!

will this error influence the model
No.
why it occured?
When the training is finished, the function 'cnn_imagenet_deploy.m' will convert the original model(E.g 'net-epoch-100.mat') to 'deployed model' . It's not a important issue, but I'll check and fix it

Thank you for the reply.


vendor/github.com/stellar/go/support/log/entry.go:125:14: cannot use hook.Entries (type []logrus.Entry) as type []*logrus.Entry in return argument

I am using glide for dependency management, today running make fails with following error:
github.ibm.com/gftn/api-service/vendor/github.com/stellar/go/support/log
vendor/github.com/stellar/go/support/log/entry.go:125:14: cannot use hook.Entries (type []logrus.Entry) as type []*logrus.Entry in return argument

@bartekn if you can you please take a look at this issue, this error is happening due to new changes that went to github.com/sirupsen/logrus lib, looks like support package needs a minor update to fix this issue.


Functionality to analyse players and teams by clusters

Clustering now supported including automatic KMeans model estimation with optimal k estimated


Add setpoint_high, set_point_low for anna with cooling

I have added back the schedule-processing for the Anna with cooling capability to be able to determine the setpoint_high and setpoint_low values.
Also, in the Anna with cooling case, the setpoint sensor is replaced by the setpoint_high and setpoint_low sensors.
Testing code and userdata are updated/adapted where needed.

@CoMPaTech please re-review. I think I have now covered all the required changes related to the Anna-with-cooling scenario's.


[Course Certification Task] Course Certification Task  demo of rule

[Course Certification Task] Course Certification Task  demo of rule

/assign @vincentgoat

/assign @vincentgoat


Operations on multiple tasks broken for non-english localizations

The workaround for #129 is to match on innerText, which will only work for english.  This issue tracks doing something better than this hack, once Todoist adds disambiguating attributes to the elements (they're working on it!).

Since most functionality is now broken for non-english Todoist, consolidating this into #137


[Bug]: Scrolling certain packs causes "RageBitmapTexture: Couldn't load : Too many open files"

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
You can reply here or get my attention faster on twitter @zhu346p
Version Info
Latest available release
What operating system are you seeing the problem on?
macOS
Bug Behavior
Tested on MacOS both 11.6 and 12.3 (other OS versions untested) with Apple Silicon M1 translated with rosetta2
If a pack contains video assets, scrolling through of them will cause a "Too many open files" prompt to come up and keep recurring. On version 0.71.1 you may crash to the crash handler but I have not gotten this on 0.71.2 yet.
For some reason crashing to the crash handler on MacOS didn't give me a crashlog text file. Despite this happening numerous times in the past few months testing it out my crash folder is empty.
Expected Behavior
You should be able to scroll normally without encountering error popups, regardless of whether the pack contains videos or not.
Reproduction Steps

Run the game
Select a pack that contains songs that have video assets
Scroll through the list of songs for about a minute
The errors will start popping up

Refer to this video for the reproduction steps.
Both tests done with the same pack.
Folder titled "Crash" has all the video assets like a normal download would.
Folder that is titled normally has all video assets (.mp4, .avi) removed and does not crash regardless of how long I scroll the list.
Here are the logs from the runs in the video:
2022_04_08-10_44_36.log
2022_04_08-10_48_38.log
Anything else?
I have done a lot of testing over the last few months to determine what causes this. If you delete mp4 files but keep avi files, it still returns the issue. Same happens if you only delete avi files.
In general there seems to be something weird with the handling of video on macOS. Not sure if this is apple silicon specific but the reason this test is done with 'Til Death is because if you try this with Rebirth and the pack thumbnail is a .mp4, the folder icon containing a mp4 thumbnail causes a crash that bypasses the crash handler, and returns you an OS crash dump (segfault). (Obviously a separate issue but still both tests lead me to believe that video files are the issue here)

@zhulov3rz could you recommend a specific pack to reproduce this crash with?

@zhulov3rz could you recommend a specific pack to reproduce this crash with?

In the video I used https://forums.etternaonline.com/t/6k-the-idolm-ster-cinderella-girls-solo-project-iii/3486 as it is a nice pack bundled with a lot of video resources.

Thanks @zhulov3rz !
I tested on windows, and while the crash itself does not happen, I can reproduce the problem. Here's a screenshot of the file handles open after scrolling through the pack a couple times:

(Obtained using Process Hacker )
It's clear that the ".avi" files are open multiple times. The files were not closed even after reloading metrics, scripts, etc, or even when changing themes. I'll see if I can figure out a fix now that I can repro.

Sent https://github.com/etternagame/etterna/pull/1176 with a fix for the leak I saw on windows, which I'm assuming is the cause for the crash on macOS.
@zhulov3rz Could you test that patch to see if it fixes the crash on mac? In ~20 minutes the .dmg should be available for download at https://github.com/etternagame/etterna/actions/runs/2393397108 at the bottom under "Artifacts" with the name "Etterna - macOS x64 "

@nico-abram Thanks for the patch. I've tested it and I haven't gotten a crash since even after many minutes of scrolling. It seems to have properly resolved that file leak as far as I can tell.

Thanks for testing it


Move styled-components outside the render function

Current styled components are declared inside the render function. Instead, they should be moved outside so they are better statically analyzable, thus reduces calculation times.
Basically everything explained here:
https://www.styled-components.com/docs/faqs#why-should-i-avoid-to-declare-styled-components-in-the-render-method
/cc @rradoychev

Moved to https://wvunited.atlassian.net/browse/WV-117


amd build doesn't remove steal-only code

When I check out the main repo and run grunt build on my local machine the build doesn't remove the steal-only code. I suppose it is meant to do this? The code I download from the site doesn't have this code still in there.
An example is line 715-734 from can/view.js:
//!steal-remove-start
	if (window.steal) {
...

I need to do my own build unfortunately to fix the canjs paths, as a path directive in my require.config completely kills any way to use loader plugins. Am I missing some grunt option to remove the code between those steal comments?

I just verified that with the new build system in 2.2 (which is now in master) dev code does get removed properly. 2.2 is about to land within the next two weeks.


Client error due to missing settings for allowed_protocols EAP-TLS stateless session resume

When configuration an Allowed Protocols list that includes enabling the EAP-TLS stateless session resume option, Terraform throws a Client Error due to missing required settings.
Example error:
│ Error: Client Error
│
│   with module.ise.ise_allowed_protocols.allowed_protocols["MAB_Dot1x"],
│   on .terraform/modules/ise/ise_network_access.tf line 1, in resource "ise_allowed_protocols" "allowed_protocols":
│    1: resource "ise_allowed_protocols" "allowed_protocols" {
│
│ Failed to configure object (PUT), got error: HTTP Request failed: StatusCode 400, Message: Validation Error - Mandatory fields
│ missing: [EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketTtl,
│ EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketTtlUnits,
│ EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketPrecentage], {
│   "ERSResponse" : {
│     "operation" : "PUT-update-allowedprotocols",
│     "messages" : [ {
│       "title" : "Validation Error - Mandatory fields missing: [EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketTtl, EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketTtlUnits, EapTlsEnableStatelessSessionResume is allowed but the following field is missing: EapTlsSessionTicketPrecentage]",
│       "type" : "ERROR",
│       "code" : "Application resource validation exception"
│     } ],
│     "link" : {
│       "rel" : "related",
│       "href" : "https://ise32-3.ise.trappedunderise.com/ers/config/allowedprotocols/56bdbe30-c646-11ee-b966-ead89af9fdb3",
│       "type" : "application/xml"
│     }
│   }
│ }

Example code:
ise:
  network_access:
    policy_elements:
      allowed_protocols:
        - name: MAB_Dot1x
          description: MAB, EAP-TLS, and TEAP protocols
          process_host_lookup: true
          allow_pap_ascii: false
          allow_eap_md5: false
          allow_eap_tls: true
          eap_tls:
           enable_stateless_session_resume: true
          allow_eap_ttls: false
          allow_eap_fast: false
          allow_peap: false
          allow_teap: true
          teap:
            enable_eap_chaining: true
            eap_tls_auth_of_expired_certs: true

Additional info:
The TF provider includes objects for these settings, but the data model does not reference these options. There should be defaults and schema to modify these options.
  eap_tls_session_ticket_ttl                        = 5
  eap_tls_session_ticket_ttl_unit                   = "DAYS"
  eap_tls_session_ticket_percentage                 = 5

Confirmed that the issue is fixed in the latest branch


[Godot 2.1.4] can't scale the font size in the built-In script editor.

Operating system or device, Godot version, GPU Model and driver (if graphics related):
macOS 10.12.6, Godot 2.1.4 stable
Issue description:
In Godot 2.1.4 beta and the previous versions, you can press Cmd + = and Cmd + - to scale up and down the font size. However, in Godot 2.1.4 stable, this functionality is gone.
Steps to reproduce:
Open up the built-in script editor on Godot 2.1.4 on macOS. Press Cmd + =.

Is it working with Ctrl+Mouse wheel?

No it doesn't work either.

Godot 2.1.4 stable
Tested on macOS Sierra 10.12.6
Shortcuts work (Cmd + =, Cmd + - and Cmd + 0)
Only CMD + scroll on Magic Mouse doesn't work.

The 2.1 branch is no longer actively worked on by engine developers, unless critical fixes are needed for current games in production. As such we are now closing non-critical bug reports affecting only the 2.1 branch.
Please comment if this was incorrectly triaged and is still relevant in 3.x versions.


Small fix for Swift2.3

First thanks for the great work.
There is a small issue in Swift 2.3.
In BeaconsManager.swift in the function
@objc public func peripheralManagerDidUpdateState(peripheral: CBPeripheralManager) {
please change the line to
if peripheral.state == .PoweredOn {
Kind Regards
Graham

See in switch-2.3 branch for Swift 2.3 (https://github.com/malcommac/SwiftLocation/tree/feature/swift2.3)
It's already changed:
https://github.com/malcommac/SwiftLocation/blob/feature/swift2.3/src/BeaconManager.swift#L287

Thanks
Graham

On 09 Sep 2016, at 17:55, Daniele Margutti<EMAIL_ADDRESS>wrote:
See in switch-2.3 branch for Swift 2.3 (https://github.com/malcommac/SwiftLocation/tree/feature/swift2.3)
It's already changed:
https://github.com/malcommac/SwiftLocation/blob/feature/swift2.3/src/BeaconManager.swift#L287
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Switching the Database Connection used by Validator

I have multiple databases used by my application and found myself needing to validate against the non-default connection.  The problem was that the Validator class doesn't provide a way to switch the connection; it needs to be done in DatabasePresenceVerifier.
The DatabasePresenceVerifier is available through Validator but it is protected so I needed to extend the Validator Class and add this function that would allow passing the name of the connection to the object returned by Validator::make().
    public function setConnection($connection)
    {
        $this->presenceVerifier->setConnection($connection);
    }

This was easy enough  because of the built in resolver, but it took me a little while to figure out.
Should this be doable without extending the class?  Or did I miss some glaringly obvious way to do this.

How would you do this for form request validation?

'email' => 'unique:connection.users,email_address'

See: https://laravel.com/docs/5.1/validation


Add ability to save orientation for semi-permanent installations.

Good for tailwheel aircraft or those that don't sit approximately level.

Also allow user to specify forward direction in text.

Closed with 586d95158213babecbca67908e43e34f3e1114be.


Revert "[Feature] Support condition update for primary key"

Reverts StarRocks/starrocks#12159

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/planner/StreamLoadPlanner.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/load/loadv2/LoadingTaskPlanner.java
1
1
100.00%
[]

run starrocks_admit_test


COQL sample

Is there a working COQL sample anywhere? I've been trying to use it to query contacts to get around the index delay but I'm just getting empty result sets.
Adding logging into the SDK in various places I can see there's a response but then it looks like json_converter.isRecordResponse doesn't really know what to do as there's no moduleAPIName set?

export const getContactsByEmail = async (email: string): Promise<Contact[]> => {
  const contacts: Contact[] = []

  let queryOperations: ZOHOCRMSDK.Coql.CoqlOperations = new ZOHOCRMSDK.Coql.CoqlOperations()
  let bodyWrapper: ZOHOCRMSDK.Coql.BodyWrapper = new ZOHOCRMSDK.Coql.BodyWrapper()
  let selectQuery: string = `SELECT Email, Phone, Last_Name, Referred_By, Registered_user, Account_Name, First_Name, Role FROM Contacts WHERE Email = '${email}' LIMIT 200`
  bodyWrapper.setSelectQuery(selectQuery)
  let response = await queryOperations.getRecords(bodyWrapper)

  if (response != null) {
    console.log('Status Code: ' + response.getStatusCode())

    let responseObject: ZOHOCRMSDK.Record.ResponseHandler.MasterModel = response.getObject()
    if (responseObject != null) {
      if (responseObject instanceof ZOHOCRMSDK.Record.ResponseWrapper) {
        const records: ZOHOCRMSDK.Record.Record[] = responseObject.getData()
        // stuff
        return contacts
      } else if (responseObject instanceof ZOHOCRMSDK.Record.APIException) {
        throw new Error('Error getting contacts: ' + responseObject.getMessage().getValue())
      }
    }
  }

  return contacts
}

@ben-propflo Please get in touch with<EMAIL_ADDRESS>for further updates. We will follow up on this request, over there.
Thanks!


GeoSAM plugin fails to load ValueError

Hi - I am quite new to using python - so I probably don't have all the necessary details included in the first try - let me know what is missing.
Trying to load the plugin from the QGIS plugin manager gives following error:
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
I am using 3.34.10-Prizren and Python 3.9.5.
Hope someone can help :)

Hi @klara4390
Did you adhere to the installation steps on https://geo-sam.readthedocs.io/en/latest/installation.html? Besides, please share the full error message to help us diagnose the problem.

I did - Today QGIS is for some reason able to load the plugin, but the following error message is given when testing segmentation on the beiluhe image.
From "python error":
raceback (most recent call last):
File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/geo_sam_tool.py", line 403, in execute_segmentation
if not self.sam_model.sam_predict(
File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/SAMTool.py", line 94, in sam_predict
self.sample = self.test_features[query]
File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/torchgeo_sam.py", line 376, in getitem
tensor = torch.tensor(dest) # .float()
RuntimeError: Could not infer dtype of numpy.float32
From the "python warning":
2024-09-11T11:02:27     WARNING    warning:/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
         traceback: File "", line 1, in
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/pyplugin_installer/installer.py", line 284, in showPluginManagerWhenReady
          iface.pluginManagerInterface().showPluginManager(tabIndex)
          File "", line 1, in
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 391, in loadPlugin
          __import__(packageName)
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/__init__.py", line 7, in
          from .geo_sam_tool import Geo_SAM
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/geo_sam_tool.py", line 24, in
          from .tools.SAMTool import SAM_Model
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/SAMTool.py", line 12, in
          from torch.utils.data import DataLoader
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 972, in _find_and_load_unlocked
          File "", line 228, in _call_with_frames_removed
          File "", line 1007, in _find_and_load
          File "", line 972, in _find_and_load_unlocked
          File "", line 228, in _call_with_frames_removed
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/__init__.py", line 1477, in
          from .functional import * # noqa: F403
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/functional.py", line 9, in
          import torch.nn.functional as F
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 972, in _find_and_load_unlocked
          File "", line 228, in _call_with_frames_removed
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/nn/__init__.py", line 1, in
          from .modules import * # noqa: F403
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/nn/modules/__init__.py", line 35, in
          from .transformer import TransformerEncoder, TransformerDecoder, \
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/nn/modules/transformer.py", line 20, in
          device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),

2024-09-11T11:02:40     WARNING    warning:/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg/pyproj/init.py:91: UserWarning: Valid PROJ data directory not found. Either set the path using the environmental variable PROJ_LIB or with pyproj.datadir.set_data_dir.
warnings.warn(str(err))
         traceback: File "", line 1, in
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/pyplugin_installer/installer.py", line 284, in showPluginManagerWhenReady
          iface.pluginManagerInterface().showPluginManager(tabIndex)
          File "", line 1, in
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 391, in loadPlugin
          __import__(packageName)
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/__init__.py", line 7, in
          from .geo_sam_tool import Geo_SAM
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/geo_sam_tool.py", line 24, in
          from .tools.SAMTool import SAM_Model
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/SAMTool.py", line 13, in
          from .torchgeo_sam import SamTestFeatureDataset, SamTestFeatureGeoSampler
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/torchgeo_sam.py", line 21, in
          from torchgeo.datasets import unbind_samples, stack_samples, BoundingBox, RasterDataset, GeoDataset, IntersectionDataset
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torchgeo/datasets/__init__.py", line 6, in
          from .advance import ADVANCE
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torchgeo/datasets/advance.py", line 17, in
          from .geo import NonGeoDataset
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torchgeo/datasets/geo.py", line 19, in
          import pyproj
          File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 892, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg/pyproj/__init__.py", line 91, in
          warnings.warn(str(err))

And similar error when trying to encode an image:
Traceback (most recent call last):
File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/sam_processing_algorithm.py", line 527, in processAlgorithm
for current, batch in enumerate(ds_dataloader):
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 631, in next
data = self._next_data()
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 675, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/Users/klarasorensen/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/torchgeo_sam.py", line 485, in getitem
tensor = torch.tensor(dest) # .float()
RuntimeError: Could not infer dtype of numpy.int32
Execution failed after 9.70 seconds

This issue appears to stem from an incompatibility between certain versions of PyTorch and NumPy.
https://stackoverflow.com/questions/74722112/runtimeerror-could-not-infer-dtype-of-numpy-float32-when-trying-to-learn-ml-a
https://github.com/Unity-Technologies/ml-agents/issues/6010
Try to update or downgrade your NumPy version to see if it works.

Hi @klara4390
I encountered this issue on macOS as well. I was able to resolve it by updating the versions of numpy and pandas:
cd /Applications/QGIS.app/Contents/MacOS/bin

./pip3 install numpy pandas -U


Include Citrix logo for CPX adapter listing

Current Behavior
The CPX entry in the list of adapters is missing a logo.

Desired Behavior
The Meshery adapter for CPX should have a logo akin to that of the other adapters.

This issue is resolved by pr no #61 .
So, it needs to be closed.


Add stub API endpoint for user suggestion (api/v2/suggestions)

I'm testing Takahē with Elk now and fount "For you" tab always returns an error.
For you | Explore | Elk - https://elk.zone/takahe.social/explore/users

I'm not sure if Takahē will have this functionality or not yet, but I think returning an empty response would be nice to have to avoid errors for now same as the existing trends endpoint.

Yup, adding empty responses is defintely better than erroring - thanks!


Add process

TODO;

add test (V)
integrate in copy (V)
create process task (V)
add doc

fix #174
fix #171

Coverage decreased (-54.45%) to 45.55% when pulling c176fea777b5aebc21d4aeaf90ca8f136ff9432e on process into a464ac7fc8c02e73a4293932632eadf013c564b5 on master.


HDDS-5083. Bump version of common-compress

JIRA: https://issues.apache.org/jira/browse/HDDS-5083
What changes were proposed in this pull request?
This is similar to #1617. Based on my understanding Ozone is not affected by the reported CVE-2018-11771
But as it's very cheap to bump the version, it can be better to do it (and avoid the false-positive notification from the security scanners)
How was this patch tested?
Full CI test.

#1617 fixes a buffer overflow, I guess the PR number is wrong here :)

Ups, thanks for the notification. You are right, I mean #2131 (guava update)

so it may be removed from the license.

Good point. I am planning to create a simple check to void some mistakes. I think we can commit the current list of the jars and compare it during the build. (Similar to the proto dependency check).
Will create a PR soon based on this experiment: https://github.com/elek/ozone/commit/2dc476e418743af0eaafd5b667b076ea91495799 (if it works on the fork)

Merging it after the green build. Thanks the review @adoroszlai


Really helpful tutorial!  I noticed a minor copy/paste issue in unit test code I wanted to report.

I really appreciated this tutorial and it has helped me a lot in getting my feet with with Roslyn.  Thank you very much for putting it together!
I did notice one simple copy/paste issue within the "Add the final polish" section.  The code snippets for StringDeclarationUsesVar and StringDeclarationUsesVarFixedHasType have the same integer definitions from the section above instead of string definitions.  They can simply be changed respectively as:
var item = 4; --> var item = ""abc"";
const int item = 4; --> const string item = ""abc"";
Hope it helps and thanks again. :)

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

ID: 6e3fc905-7aa1-7f5e-9bfe-fbcef461ad5e
Version Independent ID: a286e20b-1e43-dc57-e0fb-5a9dee7ec3f6
Content: Tutorial: Write your first analyzer and code fix
Content Source: docs/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix.md
Product: dotnet-csharp
Technology: csharp-roslyn
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

I made a little PR to fix the sample, hope it helps. :)  https://github.com/dotnet/samples/pull/815


Benchmarks and results

@mcarmonaa update the library in different PRs if not is very hard to read the PR

Codecov Report

Merging #58 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   84.78%   84.78%
=======================================
  Files          16       16
  Lines         940      940
=======================================
  Hits          797      797
  Misses         84       84
  Partials       59       59

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 9de4d35...36c1d94. Read the comment docs.

@mcarmonaa please rebase once PR is approved

@mcarmonaa there're some conflicts, please rebase again :S


need to click on "Apply below configuration to my machines" to be able to enter facilty name in "Configure Syslog in the Azure portal"

In "Configure Syslog in the Azure portal" currently one first needs to click on "Apply below configuration to my machines" to be able to enter any facility names in the box below.  Either that's UI bug, or the documentation needs to be amended to reflect that behavior of UI

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

ID: 335e48e2-7265-ac6e-f931-3a5d406f3d23
Version Independent ID: 224b7842-f066-59da-07b3-9d70f856d8d0
Content: Collect and analyze Syslog messages in Azure Monitor
Content Source: articles/azure-monitor/platform/data-sources-syslog.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@mariuszo-at-microsoft-com - You are correct, the UX behavior changed since this article was originally written and needs to be updated to align with that behavior.  I'll create a work item and see about updating the article today since it's a quick fix. Thanks!   #please-close

@MGoedtel Thanks for the super quick response. :+1:


a simple todoapp make with JS

Simple todo app
Add task
Make a task finished
Delete task

Nice Work it's very simple ;)


Include build/compile of libevent along with libdogecoin build process.

Feature Request
Describe the Feature Request
Build libevent along with libdogecoin under various archs and platforms. This can either be through depends, an option flag, or defaulted; but it should be fairly easy for developers to include the libevent compilation from source in the build process.
Describe Preferred Solution
Leaning towards defaulting to build libevent along with, and include, as the standard build process.
Describe Alternatives
Alternately would build only with a make --depends configuration. I don't think this is ideal though; since there aren't really any other dependencies (by design)
Additional Context
Likely will have to have a separate build process for msvs/msvc.

Note as verified by @chromatic , libevent is BSD licensed and we should be fine including this in the build process so long as we attribute, which of course we will do.


INTMDB-587: New Feature: Backup Compliance Policy Support

Description
New Feature: Backup Compliance Policy Support
Link to any related issue(s):
Type of change:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Required Checklist:

[x] I have signed the MongoDB CLA
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added any necessary documentation (if appropriate)
[x] I have run make fmt and formatted my code

Further comments

@martinstibbe Lint is failing


proposal: Go 2: add "or err: statement" after function calls for error handling

I'd like to draft the following proposal for an expression used for error handling. I believe it achieved the following goals :

It reduces verbosity associated with error handling
It provides separation between business and error logic without hiding any
It is intuitive and should be easy to understand even without prior knowledge.
it clearly shows what is about to happen in any branch.
Useful in functions that do not return errors - such as http handlers.

For disclosure, while I do think the try proposal needs improvement, it is on the right track as it covers the first two of the aforementioned points. I also don't think this will get any traction, though I do hope for some discussion, to at least know it was considered.
Design
The draft introduces a new syntactic form: an optional or <identifier>: <Statement> expression added to the Return, Expression, Assignment and ShortValDecl statements.
Edit: after the first feedback, perhaps the grammar should be changed to or <identifier> <block> to better align with current syntax constructs.
This expression works similarly to try or check. If the preceding expression list produces one or more values, the last value is checked whether it is different than its zero value. If it is not, any previous values except it will be returned or assigned. If the last value is nonzero, it will be assigned to the identifier to be used in the scope of the following statement.
The now well known function can be rewritten as:
func CopyFile(src, dst string) error {
	r := os.Open(src) or err: return err
	defer r.Close()

	w := os.Create(dst) or err: return err
	defer w.Close()

	io.Copy(w, r) or err: return err

	w.Close() or err: return err
}

Edit:
func CopyFile(src, dst string) error {
	r := os.Open(src) or err {
              return err
        }
	defer r.Close()

	...
}

Since the trailing part is a statement in itself, it can be used to decorate errors, handle them (in a code block if needed), breaking and continuing from loops, etc. It also doesn't allow nesting of invocations, which would otherwise reduce readability IMHO.
Drawbacks
One obvious drawback is that it will be more difficult to implement and handle by various tools that a function.
It also may or may not be backwards compatible. Current keywords cannot be used as identifiers,
however this implementation could avoid defining or as another keyword. I do not have enough knowledge to know this if feasible.
Addendum
While everything is up for debate, I haven't so far restricted the last value to only be of the error type. This construct seems handy when obtaining a value from a map as well - either obtaining it or dealing with its absence.
Edit:
Example:
func A(m map[string]interface{}) {
    val := m["key"] or !ok {
        log.Println("Key not found")
        return
    }

   data := val.(MyType) or !ok {
       log.Println("Key value is not of MyType")
       return
   }

  ...
}

I don't think the syntax fits well with the rest of the language.  Currently an identifier followed by a colon is always a label or a case statement; here it is a variable declaration.  Currently any conditionally executed statement is always in a block delimited by curly braces; here it is standalone.

I put : since to me, it visually seems to fit well. One solution would be to do what the handle part of the previous draft did:
... or err {
}

I would have preferred if the braces were not mandatory, but I understand the sentiment.

Has come clear similarities to #32848, although it's not identical.

Indeed. While very similar, I'd prefer to keep the try/catch behavior of shifting the last value. And I really do think this construct has potential usability for not just error types.

While this idea is interesting, it doesn't reduce boilerplate that much, compared to:
func CopyFile(src, dst string) error {
	if r, err := os.Open(src); err ! = nil {
              return err
        }
	defer r.Close()
}

True, but if you look closely, your code will not compile. And it's also why I prefer it a block is not mandated on the right side

You're right, I made a mistake, it needs to be like this:
func CopyFile(src, dst string) error {
	if r, err := os.Open(src); err != nil {
              return err
        } else {
 		defer r.Close()
	}
	return nil
}

Admitted, an if with an initializer is a bit harder to read, and harder to write, but I don't think this proposal is such a significant improvement to warrant new syntax.

I have a very similar proposal https://github.com/golang/go/issues/33161 so I probably should have just collaborated with you in it.
My main concern with this proposal is that there isn't a visual cue at the beginning of the line that the function usually returns an error as its final parameter.
Questions:
Would you allow this in defer and go functions?
defer w.Close() or err {
    // handle
}

go  foo() or err {
    // handle
}

Could I use this with an ok?
a := foo.(assertionType) or !ok {

Could it be used inline?
foo{
    Val: strconv.Atoi(s) or err {
        return err
    },
}

Altering the defer and go statements could be useful, though it might make the implementation more difficult.
I do however prefer if this suffix works on any type, as stated in the addendum.
On the other hand, it's probably better if inlining isn't allowed. Your examples seems to reduce readability.

The || already means or in convention. It's not appropriate to use or to represent other things. I think I would consider another keyword.

This proposal introduces a new keyword or.  I don't think it would be possible to make it not be a keyword.
I think the (modified) syntax is something like
Expression 'or' Identifier '{' Block '}'

The Expression must have at least one value.  The Identifier is declared as the type of the last value of Expression.  Then the Expression is changed to remove the last value.  If the last value is not nil, then it is assigned to the newly declared variable, the Block is executed.  The scope of Identifier is only Block.
Can this construct be used outside of an assignment statement?  It would be awkward to have a block embedded in a larger expression.  But only permitting this in an assignment statement does not seem very orthogonal.
This is a little bit shorter than writing the standard if statement, because you only have to write the identifier once, and you don't have to write != nil.  But it's not all that much shorter.
This idea mixes together an assignment statement, an if statement, an implicit conditional test, and a variable declaration.  In general, in Go, individual concepts are isolated and can be used independently.  This is an odd hybrid of several different ideas.

Can this construct be used outside of an assignment statement? It would be awkward to have a block embedded in a larger expression. But only permitting this in an assignment statement does not seem very orthogonal.

I think that, in order to for this to be useful, it has to cover Return, Expression, Assignment and ShortValDecl statements. Which would, unfortunately, make the spec quite a bit more complex. That might be aleviated if the Expression 'or' Identifier '{' Block '}' was itself an expression, though I don't think that an expression can contain a statement.
In terms of length, I would still prefer that besides a Block, a simple statement should also be allowed for simple handlers.

As noted above, this is an hybrid of different ideas.  And it requires a new keyword, which while not impossible, is a higher bar for a language change.  It also introduces yet another assignment form.  Therefore, this is a likely decline.  Leaving open for four weeks for final comments.
-- for @golang/proposal-review

There were no further comments.


How to get index of dictionary

Hi,
I just start dictionary in Robot framework, so I have a problem my test cases. Please help me.
I have a dictionary with key and value as below:
${a}= Create Dictionary
Set To Dictionary ${a} PC true
Set To Dictionary ${a} PK true
Set To Dictionary ${a} CA false
My target is get index that has 'false' value from dictionary ${a}.
When I user keyword: ${c} = Get Dictionary Values ${a}. I got ${c}= false, true, true. List is sorted by ABC. so Index of False value is 1. it's not correct
Please help me.
Thanks in advance.

This issue tracker is for bug reports and concrete enhancement requests. Questions belong to robotframework-users or other such support forums.


[CPU] Failed to legalize operation 'mhlo.rng' that was explicitly marked illegal

Repro IR:
"builtin.module"() ({
  "func.func"() <{function_type = () -> tensor<1x1xi32>, sym_name = "main"}> ({
  ^bb0():
    %1444 = "mhlo.constant"() {value = dense<0> : tensor<i32>} : () -> tensor<i32>
    %1445 = "mhlo.constant"() {value = dense<5> : tensor<i32>} : () -> tensor<i32>
    %1446 = "mhlo.constant"() {value = dense<1> : tensor<2xi64>} : () -> tensor<2xi64>
    %1447 = "mhlo.rng"(%1444, %1445, %1446) {rng_distribution = #mhlo.rng_distribution<UNIFORM>} : (tensor<i32>, tensor<i32>, tensor<2xi64>) -> tensor<1x1xi32>
    "func.return"(%1447) : (tensor<1x1xi32>) -> ()
  }) : () -> ()
}) : () -> ()

Compiler command:
iree-compile --iree-input-type=mhlo --iree-hal-target-backends=llvm-cpu --iree-hal-target-backends=llvm-cpu --iree-llvmcpu-target-triple=x86_64-unknown-linux-gnu repro.mlir -o repro.vmfb

Error:
repro.mlir:7:13: error: failed to legalize operation 'mhlo.rng' that was explicitly marked illegal
    %1447 = "mhlo.rng"(%1444, %1445, %1446) {rng_distribution = #mhlo.rng_distribution<UNIFORM>} : (tensor<i32>, tensor<i32>, tensor<2xi64>) -> tensor<1x1xi32>
            ^
repro.mlir:7:13: note: see current operation: %6 = "mhlo.rng"(%1, %3, %5) {rng_distribution = #mhlo.rng_distribution<UNIFORM>} : (tensor<i32>, tensor<i32>, tensor<2xi32>) -> tensor<1x1xi32>

Yes, this is the old stateful RNG op ... we can perhaps just decompose it into stateless variant and reuse stateless one. I think only TF still produces this one (and they are moving away from it).

Unfortunately building power is down and WIP PR on it, the approach I had there is via expanding this MHLO/StableHLO to stateless + ml_program load and store. I'll finish when back from break. If needed short term you can check how the rng normal is implemented, the rng uniform is subset of it (its currently not correct implementation and should be changed).

I'm assuming that this error I'm getting now on the stablehlo side is due to the same problem:
error: failed to legalize operation 'stablehlo.rng' that was explicitly marked illegal
2196     %194 = "stablehlo.rng"(%191, %192, %193) {rng_distribution = #stablehlo<rng_distribution UNIFORM>} : (tensor<i32>, tensor<i32>, tensor<2xi64>) -> tensor<1x1xi32>

algo CC: @rsuderman

Yes, I'll dig out this change, forgot to (this op really needs to be deprecated one of these days rather than being marked deprecated for years ...)

@jpienaar Any updates on this? It is blocking us from lowering whole LLM pipelines.

Lowering whole LLM pipeline for TF model correct?
https://github.com/openxla/iree/pull/14798 still pending, there is a race/missing barrier happening later in runtime lowering pipeline. The test fails with
/work/runtime/src/iree/modules/check/module.cc:351: Failure
[452](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:453)
Failed
[453](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:454)
Expected near equality of these values. Contents does not match.
[454](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:455)
  lhs:
[455](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:456)
    2x2x2xf32=[[-10 -10][-10 -10]][[-10 -10][-10 -10]]
[456](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:457)
  rhs:
[457](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:458)
    2x2x2xf32=[[3.17482 -4.88602][-6.57512 8.58719]][[6.28547 2.6171][-3.1734 -1.86021]]
[458](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:459)
[  FAILED  ] module.rng_uniform_3d, where GetParam() = 4 (5 ms)
[459](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:460)
[----------] 3 tests from module (60 ms total)
[460](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:461)

[461](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:462)
[----------] Global test environment tear-down
[462](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:463)
[==========] 3 tests from 1 test suite ran. (60 ms total)
[463](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:464)
[  PASSED  ] 2 tests.
[464](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:465)
[  FAILED  ] 1 test, listed below:
[465](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:466)
[  FAILED  ] module.rng_uniform_3d, where GetParam() = 4
[466](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:467)

[467](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:468)
 1 FAILED TEST
[468](https://github.com/openxla/iree/actions/runs/6490839588/job/17627343905?pr=14798#step:6:469)
Test failed

where -10 means it got clamped to lower limit of test for all the values, but one gets different result if ran with runtime tracing enabled. I may just switch back to the custom RNG lowering there but that's really at best a workaround.


[AMDGPU] add amd gpu support

Description
Add AMD GPU support
Accelerator : MI300X, MI308X
Arch : gfx942
OS : ubuntu 22.04
CPU : AMD EPYC 9534 x 256

Sorry @feifeibear. It is rocm only branch. Could I revert it ? I will change the name to [WIP].


Fix/remove stubs on filled articles

I made a script to go through the guide article files and remove the stub text where someone added something to the article, but forgot to remove the stub. I'm not sure if we wanted to remove the stub text from all these files, such as the ones where only a link was added in the more info area. The rest of the files, where something was actually written look good.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

https://github.com/freeCodeCamp/freeCodeCamp/issues/35505

I like these changes, very useful 💯
I just think we should leave the stub in across PRs where the only changes made were in the "More Information" section. Seeing the stub might encourage campers to fill in meaningful content in the guide (especially in events like Hactokberfest), else we might end up with a lot of empty guides with just URLs in the "More Info" section.

@moT01  Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Deleted the wiki folder

The wiki folder was last updated over three months ago and is now extra deprecated with the recent task graph changes. (Patrick, please fix the tutorial/wiki)

"Generous clean-up of code"


Identation rules are broken

VSCode Version: v1.26.1
OS Version: macOS 10.13.5

I think I've had the following problems since the very first version of VSC I tried.
Problem 1

Have Todo+ installed and create a new "todo" document with the same content as mine.
Move the line up.
Undo.
Move the line up.
We get 2 different results for doing the same thing.

Problem 2

Have Todo+ installed and create a new "todo" document with the same content as mine.
Move the line down.
Undo.
Move the line down.
We get 2 different results for doing the same thing.

Problem 3
In both the gifs above the indentation for a line gets decreased, my understanding is that this is governed by the indentationRules.decreaseIndentPattern setting, which in my extension is set to /(?=a)b/gm, a regex that can never match any string, why are those lines' indentations decreased then?

Hello @rebornix, any chance to fix this bug ? Thanks!

If I start with this
Project: (2)
	☐ hi
	☐ hi2

Then "move line up" on the second line, I get this
Project: (2)
☐ hi2
	☐ hi

Is that what's expected?

Thanks @rebornix :-)

Is that what's expected?

@roblourens No, in that scenario the task being moved up remains on the same level so its indentation shouldn't change.


graphql layer?

https://github.com/khrome83/khrome.dev/tree/f36c4438b0c87a3190fedef88db676ff5913ce89/www/src/libs

Given the mutability and complexity of content coming from full-blown sites, in which you could have an array of blocks with multiple conflicting types, for example, and how tiresome it's to write queries with 50+ keys for complex content structures, I honestly would rather steer away from GraphQL.
It's a great option for people building APIs that don't change much over time and it's still better than manipulating YAML and JSON datasets manually through vanilla JS, but in my experience with Gatsby I've spent way too much time and energy maintaining queries and type conflicts, especially when a design change came along breaking new stuff.
I know it's still in its infancy, but GROQ (see the JS implementation) has been a considerably better option for me, even when working outside of Sanity's ecosystem. I've my own way of organizing Sapper for generating static sites of which GROQ is a main component: .json.js files use it to extract the data I need from a central data.json and voilà, my content endpoints are ready. Then it's as simple as using Sapper's <script context="module"> to fetch the json file and render the template accordingly.
One thing that remains fuzzy to me is how to provide functionality similar to GQL's custom resolvers. As for how to operationalize this data layer, we could provide some basic API's for pushing and updating data, maybe using something like lowdb, and for GET requests (the majority of what you do in a SSG) expose a function that gets a GROQ query and returns the corresponding data.
If this options is still unclear, take a look at this example at groq.dev, it shows a fraction of the capability and speed of this querying language, and read through Chris Coyier's take on GROQ vs. GraphQL 😉
PS: Thanks for your work on ssg and the effort in making the JAMstack less bloated with JS, swyx!

hey np!
yeah thanks for these super helpful links!
where my head is at is that i think types will help address most simple use cases. so graphql will always be optional rather than mandatory. however im very keen on leveraging the existing graphql devtools. groq is nice for sanity, but i'm not particularly interested until it gains traction more broadly. apart from Svelte i'm not in the business of making early bets here. can always develop a plugin for groq endpoints tho.


[Feature Request] RestClient does not retry if only given one endpoint (e.g. load balancer)

Is your feature request related to a problem? Please describe
At present, we are using the AWS managed openSearch, and we use the AWS endpoint, such as https://vpc-57v4bbnpjsz6gmcmhoi2ca.us-west-1.es.amazonaws.com/, as the openSearch host. Actually, there are several nodes behind the endpoint.
Sometimes, the cluster maybe very busy and one of openSearch server node returns 502 Bad Gateway, then the job crashed, below is the call stack, and we didn't observe significant cpu/mem usage issues at that time.
org.apache.flink.util.SerializedThrowable: org.opensearch.client.ResponseException: method [POST], host https://vpc-57v4bbnpjsz6gmcmhoi2ca.us-west-1.es.amazonaws.com//, URI [/_bulk?timeout=1m], status line [HTTP/1.1 502 Bad Gateway]

<title>502 Bad Gateway</title>

502 Bad Gateway

at org.opensearch.client.RestClient.convertResponse(RestClient.java:375)
at org.opensearch.client.RestClient$1.completed(RestClient.java:425)
at org.opensearch.client.RestClient$1.completed(RestClient.java:421)
at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:122)
at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:182)
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:448)
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:338)
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:87)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:40)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
at java.lang.Thread.run
org.apache.flink.util.SerializedThrowable: org.opensearch.OpenSearchStatusException: Unable to parse response body
at org.opensearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2208)
at org.opensearch.client.RestHighLevelClient$1.onFailure(RestHighLevelClient.java:2116)
at org.opensearch.client.RestClient$FailureTrackingResponseListener.onDefinitiveFailure(RestClient.java:707)
at org.opensearch.client.RestClient$1.completed(RestClient.java:433)
at org.opensearch.client.RestClient$1.completed(RestClient.java:421)
at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:122)
at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:182)
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:448)
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:338)
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:87)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:40)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
at java.lang.Thread.run
org.apache.flink.util.SerializedThrowable: java.lang.RuntimeException: An error occurred in OpensearchSink.
at org.apache.flink.streaming.connectors.opensearch.OpensearchSink.checkErrorAndRethrow(OpensearchSink.java:510)
at org.apache.flink.streaming.connectors.opensearch.OpensearchSink.checkAsyncErrorsAndRequests(OpensearchSink.java:515)
at org.apache.flink.streaming.connectors.opensearch.OpensearchSink.invoke(OpensearchSink.java:341)
at org.apache.flink.streaming.api.operators.StreamSink.processElement(StreamSink.java:54)
at org.apache.flink.streaming.runtime.tasks.OneInputStreamTask$StreamTaskNetworkOutput.emitRecord(OneInputStreamTask.java:233)
at org.apache.flink.streaming.runtime.io.AbstractStreamTaskNetworkInput.processElement(AbstractStreamTaskNetworkInput.java:134)
at org.apache.flink.streaming.runtime.io.AbstractStreamTaskNetworkInput.emitNext(AbstractStreamTaskNetworkInput.java:105)
at org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:65)
at org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:542)
at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:231)
at org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:831)
at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:780)
at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:935)
at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:914)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:728)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:550)
at java.lang.Thread.run
org.apache.flink.runtime.JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:139)
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:83)
at org.apache.flink.runtime.scheduler.DefaultScheduler.recordTaskFailure(DefaultScheduler.java:256)
at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:247)
at org.apache.flink.runtime.scheduler.DefaultScheduler.onTaskFailed(DefaultScheduler.java:240)
at org.apache.flink.runtime.scheduler.SchedulerBase.onTaskExecutionStateUpdate(SchedulerBase.java:738)
at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:715)
at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:78)
at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:477)
at jdk.internal.reflect.GeneratedMethodAccessor439.invoke
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
at java.lang.reflect.Method.invoke

According to the code of openSearch, the openSearch client will mark the host as dead if the openSearch server returns 502 Bad Gateway, then try to forward the request to other available hosts. So if we only pass the load balancer URL of our openSearch cluster, which means the program will crash and won't retry.
https://github.com/opensearch-project/OpenSearch/blob/main/client/rest/src/main/java/org/opensearch/client/RestClient.java#L386-L393
private ResponseOrResponseException convertResponse(InternalRequest request, Node node, ClassicHttpResponse httpResponse)
    throws IOException {
    //....
    ResponseException responseException = new ResponseException(response);
    if (isRetryStatus(statusCode)) {
        // mark host dead and retry against next one
        onFailure(node);
        return new ResponseOrResponseException(responseException);
    }
    // mark host alive and don't retry, as the error should be a request problem
    onResponse(node);
    throw responseException;
}
private static boolean isRetryStatus(int statusCode) {
    switch (statusCode) {
        case 502:
        case 503:
        case 504:
            return true;
    }
    return false;
}

Describe the solution you'd like
So I suggest openSearch client should expose 2 parameters for each openSearch host.

The first parameter can be used to indicate that host is one load balancer or not;
If the host is the URL of one load balancer, then the second parameter can be used to indicate how many times we can retry before marking it as dead.

Related component
Clients
Describe alternatives you've considered
Alternatively, I suggest to expose one parameter to allow the openSearch client user can set the maximum retry times before marking one host as dead.
Additional context
NA

[Triage - attendees 1 2 3]
@ruigyang-wish Thanks for filing this issue. The behavior you're seeing does match the design of the client. Looking forward to more discussion here.

@andrross Thanks for the triage.
I also did further investigation for this issue, it seems there is no elegant solution to identify the passed host is load balancer or not in the RestClient. Of course, we can expose another parameter in RestClientBuilder to allow the users to indicate the host is load balancer or not.

@ruigyang-wish Can you pass the same endpoint multiple times so it appears to the client like there are multiple hosts to retry across? Or does it dedupe?

Do other transports in https://github.com/opensearch-project/opensearch-java fix this problem?

@ruigyang-wish Can you pass the same endpoint multiple times so it appears to the client like there are multiple hosts to retry across? Or does it dedupe?

@andrross
I also considered this way, but openSearch is using map to maintain the dead hosts, so it will dedupe.
https://github.com/opensearch-project/OpenSearch/blob/main/client/rest/src/main/java/org/opensearch/client/RestClient.java#L139
private final ConcurrentMap<HttpHost, DeadHostState> denylist = new ConcurrentHashMap<>();


Test Execution freeze

My OC is ArchLinux
when build.sh run tests, 1 test finished successful, then run OmniSharp.Dnx.Tests and nothing happen.
here is part of log:

=== TEST EXECUTION SUMMARY ===
OmniSharp.Bootstrap.Tests  Total: 4, Errors: 0, Failed: 0, Skipped: 0, Time: 0,384s
~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn
~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Dnx.Tests ~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn
xUnit.net DNX test runner (64-bit DNX 4.5.1)
Copyright (C) 2015 Outercurve Foundation.

Discovering: OmniSharp.Dnx.Tests
Discovered:  OmniSharp.Dnx.Tests
Starting:    OmniSharp.Dnx.Tests
And then nothing happen. How to fix it?

I have some problem on OS X El Capitan.

I have the same problem too, here my stacktrace
~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Dnx.Tests ~/OmniSharp/omnisharp-roslyn
xUnit.net DNX test runner (64-bit DNX 4.5.1)
Copyright (C) 2015 Outercurve Foundation.

Discovering: OmniSharp.Dnx.Tests
Discovered:  OmniSharp.Dnx.Tests
Starting:    OmniSharp.Dnx.Tests

OmniSharp.Tests.CurrentProjectFacts.CanGetDnxProject [FAIL]
      Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException : ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(115,28): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(116,30): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(173,28): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
     ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(174,30): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      Stack Trace:

Yes, the Stack Trace is void...

Came here for this. I've tried commenting out the problematic Dnx test case in omnisharp-roslyn/build.sh, like so:
# pushd tests/OmniSharp.Dnx.Tests
# dnx . test -parallel none
# rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
# popd

But then, the next set of tests failed:
OmniSharp.Tests.SolutionFileTests.Can_load_unity_solution_file [FAIL]
      Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException : /Users/nfantone/Library/Application Support/Sublime Text 3/Packages/OmniSharp/omnisharp-roslyn/src/OmniSharp.MSBuild/MSBuildProjectSystem.cs(321,49): error CS7036: There is no argument given that corresponds to the required formal parameter 'assemblyLoader' of 'AnalyzerFileReference.AnalyzerFileReference(string, IAnalyzerAssemblyLoader)'

...

   OmniSharp.MSBuild.Tests  Total: 6, Errors: 0, Failed: 6, Skipped: 0, Time: 0.624s

I believe this may be related to the use of an outdated API? Maybe incompatible .NET or mono versions?


[rmodels] Wrongly rotated top cap in cylinder mesh

Please, before submitting a new issue verify and check:

[X] I tested it on latest raylib version from master branch
[X] I checked there is no similar issue already reported
[X] My code has no errors or misuse of raylib

Issue description
Cylinder mesh generated by GenMeshCylinder() have wrongly turned top cap.
Environment
OS: Manjaro 5.13
INFO: > Vendor: AMD
INFO: > Renderer: AMD RENOIR (DRM 3.41.0, 5.13.19-2-MANJARO, LLVM 11.1.0)
INFO: > Version: 4.6 (Core Profile) Mesa 21.1.7
INFO: > GLSL: 4.60
Issue Screenshot

par_shapes_rotate(capTop, PI, (float[]){ 0, 1, 0 });
seems to fix the issue

@siwekm Reviewed. It should work ok now.


automatic handling of concurrent connections limit

I'm getting errors when I try to open 48 IMERG time steps through opendap. I don't think this is a bug, but it's not clear how I can configure xarray to avoid it. The server doesn't want to be overwhelmed by multiple data layer requests, which is reasonable, but I'm not asking for big data here. It would be fast enough if we downloaded the data one time step at a time.
urls = [build_IMERG_url(half_hour, run, version) for half_hour in half_hours]
imerg = xr.open_mfdataset(urls) # Reaches the concurrent connection limit
precipitation = imerg['precipitationCal']
daily = precipitation.mean('time') * 24

Can xarray avoid this error automatically? If not, is there a way to limit my creation of concurrent connections?
I don't know if using the netcdf library directly avoids this issue. I did try to write a for loop to connect to opendap 1 at a time with xr.open_dataset(), but if still gave the concurrent connections error. Obviously, I could just download all the data files instead of using opendap to subset, but this is not the desired outcome.
Example URL:
https://gpm1.gesdisc.eosdis.nasa.gov:443/opendap/GPM_L3/GPM_3IMERGHHL.06/2020/260/3B-HHR-L.MS.MRG.3IMERG.20200916-S000000-E002959.0000.V06B.HDF5

Not sure what the answer is but we should document it here: https://xarray.pydata.org/en/stable/io.html#opendap

By default, e.g., with open_dataset, xarray doesn't use dask, which means it only use a single connection at a time.
If you use open_mfdataset, then the dataset is opened with dask. That means the default concurrency is determined by the number of threads dask uses. You can configure that by explicitly setting the number of desired worker threads, e.g.,
with dask.config.set(num_workers=4):
    ...

https://docs.dask.org/en/latest/scheduling.html#configuration

I'm still getting the error with:
with dask.config.set(num_workers=1): ...     imerg = xr.open_mfdataset(urls)
I spoke with the data provider, and one possibility is that other users may be overloading the server. So it might not be possible to fix with xarray or any tool.
Thanks for the help.


QuarkusTestProfile does not work in dev mode

See super-heroes application for an example.

Duplicate of #58.


Copy collate_fn from the original dataloader.

Very minor fix so that the bagging_dataloaders copy the collate_fn from the original dataloader.

Hi @FedericoV, thanks for the PR. I would like to ask, what happens if we dont add the collate_fn param?

@all-contributors please add @FedericoV for code


Issue with tensorflow runtime. Failed to load DLL.

The issue
I have installed tensorflow 1.10.0 on my Win 7 machine and trying to do an
import tensorflow as tf
gives an "Dll failed to load" error.
Source code / logs
Code
import tensorflow as tf
Error on the console
runfile('C:/Users/Teluser/Desktop/Megha/FujitsuCode/test_tensorflow.py', wdir='C:/Users/Teluser/Desktop/Megha/FujitsuCode')
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/Teluser/Desktop/Megha/FujitsuCode/test_tensorflow.py', wdir='C:/Users/Teluser/Desktop/Megha/FujitsuCode')
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Teluser/Desktop/Megha/FujitsuCode/test_tensorflow.py", line 8, in
import tensorflow as tf
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_init_.py", line 22, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\ProgramData\Anaconda3\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\ProgramData\Anaconda3\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
I found many such issues but no exact resolution. Please can anyone help me here to understand what I am missing ?

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

I saw this exact stack trace when updating from TF 1.8 to 1.10 on Windows 10. Installing 2015 Visual C++ Redistributable fixed the import for me. I think the error was happening due to missing vcomp140.dll, but I'm not 100% sure because the output of Dependency Walker on Windows 10 is cluttered with a lot of errors about missing DLLs that have actually just been moved, and I didn't bother to check exactly what DLL was causing the error after it was fixed. However, I'm not sure how using anaconda might change the environment compared to using pip. If installing that doesn't work, you could also try using Dependency Walker and see what dependencies it finds are missing.

I have downloaded TF 1.9 and that seemed to fix the issue. Probably problem with TF1.10.
Thanks

@andrewgconnors I took your advice and installed the 2015 Visual C++ Redistributable.  Now I can import tensorflow without error dll. Then I checked the windows\system32\ and found the msvcp140.dll was there (before there was not)... Thx!


feat: Add batcher

Add batcher service

Current dependencies on/for this PR:

main

PR #89

PR #90

PR #91

PR #92   👈

This stack of pull requests is managed by Graphite.

Current dependencies on/for this PR:

main

PR #89

PR #90

PR #91

PR #92   👈

This stack of pull requests is managed by Graphite.


Overhaul of T Model unit testing

This PR is to:

Adds a T Model function to reverse calculate DBH from stem height.
Bring in some updated unit testing for the T Model functions, developed in #296, that uses some predictions generated by the R version of the TModel and bundles the tests under a Class.

Fixes #302 (issue)
Type of change

[x] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[ ] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.71%. Comparing base (1f315ba) to head (e431d04).
Report is 154 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #303      +/-   ##
===========================================
+ Coverage    95.29%   95.71%   +0.42%
===========================================
  Files           28       34       +6
  Lines         1720     2336     +616
===========================================
+ Hits          1639     2236     +597
- Misses          81      100      +19

Flag
Coverage Δ

95.71% <100.00%> (?)

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.