[BACKEND] Fix uses of getOrder(DotOperand(Nvidia) and MMA(Nvidia))

We use getOrder very liberally throughout the codebase, when we really
meant to use getThreadOrder. This is an issue with the input layout is an
DotOperand(mma(opIdx=1)), where the thread order and the matrix order
are opposite.
Found this to be an issue when a PR changed the getOrder of DotOperand(Hopper) to an incorrect one and CI still passed! The issue here is that the LLVM lowering for wgmma and the LinearLayout does not use getOrder, but there are many other subsystems do, and many heuristics would be getting an incorrect order, and potentially be disabled.
This is particularly problematic for DotOperand(opIdx=1) in nvidia hardware, as getThreadOrder and getOrder are different!
While doing so we:

Audit most (all?) the calls to getOrder(dotOperand). It turns out that most of them really meant getThreadOrder
Fix the ordering methods of SliceEncodingAttr to be consistent
Move the implementation of getWarpOrder to the Attr classes, because of OOP

The test strategy was to add llvm::report_fatal_error("Testing"); within getOrder(nvidiaMma) and getOrder(DotOperand(nvidiaMma)) and triaging all errors that were raised in CI.

cc @antiagainst for visibility, as perhaps you want to do something similar for AMD's backend.

Still need more time to figure it out but this seems trigger a large regression for the AMD backend. Just an early heads-up.

It must be that either (or both):

Some  threadorder is not correct for some layout
and/or some getOrder must be changed into getThreadOrder in the duplicated amd code

Also, as discussed in the OP, this is how I found all this:
https://github.com/triton-lang/triton/pull/5055/commits/2eb481dc0d6f42e3714bd6e6d31d7c55f036d336
but also, I was sure that getThreadOrder was correct for all nvidia layouts. This was done in a previous PR.


 Fixes #2030.
Please test this change locally as part of this review.

When a major-version upgrade of capybara was attempted, there were some test failures: https://app.circleci.com/pipelines/github/DCAFEngineering/dcaf_case_management/226/workflows/53caaa46-70a1-4ef5-ade5-0732f8ef1419/jobs/6249/steps


Comparing dateparser to parsedatetime?

Hi, there is a library called "bear/parsedatetime" that seem to have comparable goals. What would
be some reasons to choose one over the other?

hi @BjornFJohansson thanks for the link :+1: I think both libraries have very similar goals, so it's probably mostly question of quality, which someone needs to measure.
One thing I noticed is that the number of supported languages is smaller for parsedatetime: https://github.com/bear/parsedatetime/tree/master/parsedatetime/pdt_locales vs https://github.com/scrapinghub/dateparser/tree/master/dateparser/data/date_translation_data


fix: reduce zones used in standalone example clusters

Only use 2 zones for test regional clusters to limit total # of nodes

/gcbrun


State Aggregation Function

This PR attempts to create a supernode graph for a small adjacency matrix

@waxlamp @JackWilb according to this comment https://github.com/multinet-app/multimatrix/pull/110#discussion_r510333544, I found that the index is note needed for supernodes for updating the visualization so I removed the code in this commit https://github.com/multinet-app/multimatrix/pull/110/commits/8494c9dd316f56f2d41b5e3cc2e44c9cd201b051

@waxlamp ran the linter and fixed the issue in this comment https://github.com/multinet-app/multimatrix/pull/110#discussion_r510342785

This comment has been resolved https://github.com/multinet-app/multimatrix/pull/110#discussion_r510333544


replace pr#75

this pr should replace pr#75.
Includes changes requested in the review

Thanks to you ang @pepjo  for manteining this site. I hope to make more contributions.

Merged, thank you very much @nglvnyls !


Add initial mock tests

https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ#whats-the-best-way-to-testmock-network-requests-with-afnetworking

We are using Nozilla for mocking http requests already as of 0.5.0 so I think this one can be closed.


toggle dispatcher

Description
same as exec, executes a command. but, it remembers the status (0 or 1), and switches statuses when issued. and it accepts two commands. for example:
bind = $mainMod, T, toggle, hyprctl keyword decoration:blur:enabled true, hyprctl keyword decoration:blur:enabled false
so, it will be possible to set a shortcut for toggling blur with a single config line (blur is just an example, there can be more wonderful applications)

you can script this yourself


config: add ability to register native filters

Description: adding templating to register native filters.
Risk Level: low - optional feature
Testing: used in example apps
Docs Changes: pending
Signed-off-by: Jose Nino<EMAIL_ADDRESS>

iOS code will be pushed ASAP but wanted to get the ball rolling with Android code. This can be reviewed as is for now.

@goaway @rebello95 updated + added iOS piping. Unit tests tomorrow morning.


Productionise Helios

Pull Request
Description
Implement the Power Perceiver model
Fixes #119
How Has This Been Tested?

[ ] Yes

Checklist:

[ ] My code follows OCF's coding style guidelines
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked my code and corrected any misspellings

This PR is replace by PR #132


How to change the formulae to L(n,6,6,3) ?

I have the code up and running; but would like to change it from L(n,6,6,2) to L(n,6,6,3) ?
I've reviewed it, but cannot see what var would 2 be / is assigned to?
Thanks, M.

@Midas-Coin - Any chance of some insight into how you got this to run? What version of Prolog / Platform etc would really help out, in the absence of any README.md to accompany this repo.
Thanks in advance.


Call to a member function parameters() on a non-object

route_path_id is saving as NULL in trackerLog Table?
foreach ($route->current()->parameters() as $parameter => $value)
{

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR)
Call to a member function parameters() on a non-object
In vendor\tragmarx\tracker\src\data\RepositoryManager.php, line 375.
When the page is refreshed, it works correctly, 2nd time onwards.
Upon inspection, we found out that route_path_id is saving as NULL in trackerLog Table for the 1st page hit (1st ever hit on a route, after installing tracker)
If we replace if($created) with if($route->current() != null) on line 373 the error goes away but i am not sure is it the correct way or not.

I'm not sure you're talking about the same problem, but https://github.com/antonioribeiro/tracker/commit/f48c76fba81c7c142e7a4945942104dc5390e697 is fixing current route == null.
And, no, I don't think route path can be stored as null.

Yes. Problem solved. Thanks for the prompt response. Thanks a ton.

Cool! Thanh you!


Major cleanup

Fixed some bugs, de-duplicated lots of code, improve reproducibility.
There are some things I think should be changed but left in the code because they would deprecate the trained models. For example, the reconstruction loss should probably use element-wise cross-entropy and the log variance should not be forced up with softplus.
It would also be preferable to use nn.Embedding instead of the one-hot encoding and preserve the structure of the sequences throughout the network to allow for other encoder and decoder architectures.

Thanks for the PL, I appreciate the work that's been put in. I've had a think about it and had some discussions, and I think its best if this remains in its own separate fork.


最新版代码，LibriSpeech复现不成功，run.sh，stage1，RuntimeError: Error loading audio file: failed to open file

stage 1: Feature Generation
tools/compute_cmvn_stats.py:15: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this func               tion is no-op. You can remove the function call.
torchaudio.set_audio_backend("sox_io")
using resample and new sample rate is 16000
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement               ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi               ng implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
Traceback (most recent call last):
File "tools/compute_cmvn_stats.py", line 125, in
for i, batch in enumerate(data_loader):
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 630, in next
data = self._next_data()
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1345, in _next_data
return self._process_data(data)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_utils.py", line 694, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
File "tools/compute_cmvn_stats.py", line 35, in call
sample_rate = torchaudio.backend.sox_io_backend.info(
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torchaudio/backend/_sox_io_backend.py", line 32, in info
sinfo = torch.ops.torchaudio.sox_io_get_info(filepath, format)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_ops.py", line 692, in call
return self._op(*args, **kwargs or {})
RuntimeError: Error loading audio file: failed to open file /home/hujinlei/hjl/LibriSpeech/train-clean-360/1054/143005/1054-143005-0084.fl                                         ac
查看了/home/hujinlei/hjl/LibriSpeech/train-clean-360/1054/143005/1054-143005-0084.flac 文件是存在的

RuntimeError: Error loading audio file: failed to open file /home/hujinlei/hjl/LibriSpeech/train-clean-360/1054/143005/1054-143005-0084.fl            ac
发现报错中的路径最后 flac中多了很多空格

重新制作一下数据集试试

您好，我尝试重新跑stage 0，重新跑stage 1，
还是出现类似的错误
RuntimeError: Error loading audio file: failed to open file /home/hujinlei/hjl/LibriSpeech/train-other-500/1595/132753/1595-132753-0011.flac
完整流程如下
/home/hujinlei/hjl/wenet/examples/librispeech/s0# bash run_try.sh
CUDA_VISIBLE_DEVICES is 0,1,2,3,4,5,6,7
stage 1: Feature Generation
tools/compute_cmvn_stats.py:15: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
torchaudio.set_audio_backend("sox_io")
using resample and new sample rate is 16000
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly.
sample_rate = torchaudio.backend.sox_io_backend.info(
Traceback (most recent call last):
File "tools/compute_cmvn_stats.py", line 125, in
for i, batch in enumerate(data_loader):
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 630, in next
data = self._next_data()
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1345, in _next_data
return self._process_data(data)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_utils.py", line 694, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
File "tools/compute_cmvn_stats.py", line 35, in call
sample_rate = torchaudio.backend.sox_io_backend.info(
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torchaudio/backend/_sox_io_backend.py", line 32, in info
sinfo = torch.ops.torchaudio.sox_io_get_info(filepath, format)
File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_ops.py", line 692, in call
return self._op(*args, **kwargs or {})
RuntimeError: Error loading audio file: failed to open file /home/hujinlei/hjl/LibriSpeech/train-other-500/1595/132753/1595-132753-0011.flac

/home/hujinlei/hjl/LibriSpeech/train-other-500/1595/132753/1595-132753-0011.flac 检查这个文件，如果有问题，从stage -1 开始重新跑

/home/hujinlei/hjl/LibriSpeech/train-other-500/1595/132753/1595-132753-0011.flac 检查这个文件，如果有问题，从stage -1 开始重新跑

您好，我按照路径去检查了这个文件，文件是正常的，

您好，我参照同学的上个版本的wenet环境，使用torch==1.13.0和torchaudio==0.13.0替代了最新的torch版本之后该问题解决了，可能还是由于版本问题导致的

您好，我参照同学的上个版本的wenet环境，使用torch==1.13.0和torchaudio==0.13.0替代了最新的torch版本之后该问题解决了，可能还是由于版本问题导致的

但替代之后 stage 4 报了新错误 ModuleNotFoundError: No module named 'torch.utils.data.datapipes.iter.sharding'
换回原来的环境就好了...

用readme里边建议的安装一下，这个torch.utils.data.datapipes.iter.sharding， torch 2.0之后才有的

用readme里边建议的安装一下，这个torch.utils.data.datapipes.iter.sharding， torch 2.0之后才有的

是的，用最新版的requirements.txt  stage4 是可以跑的，但最新版的环境stage 1 会报错......
用老版的环境stage 1 就不报错了，但stage 4 会卡住 就是应该因为torch版本的问题。目前主要还是没找到为啥最新环境stage 1会报错，我尝试用aishell数据集的话就没问题

librispeech 原始数据是flac格式的，aishell是wav，可能处理flac有点问题

stage 1: Feature Generation tools/compute_cmvn_stats.py:15: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this func tion is no-op. You can remove the function call. torchaudio.set_audio_backend("sox_io") using resample and new sample rate is 16000 tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( tools/compute_cmvn_stats.py:35: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implement ation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlyi ng implementation directly. sample_rate = torchaudio.backend.sox_io_backend.info( Traceback (most recent call last): File "tools/compute_cmvn_stats.py", line 125, in for i, batch in enumerate(data_loader): File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 630, in next data = self._next_data() File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1345, in _next_data return self._process_data(data) File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data data.reraise() File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_utils.py", line 694, in reraise raise exception RuntimeError: Caught RuntimeError in DataLoader worker process 0. Original Traceback (most recent call last): File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop data = fetcher.fetch(index) File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch return self.collate_fn(data) File "tools/compute_cmvn_stats.py", line 35, in call sample_rate = torchaudio.backend.sox_io_backend.info( File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torchaudio/backend/_sox_io_backend.py", line 32, in info sinfo = torch.ops.torchaudio.sox_io_get_info(filepath, format) File "/root/anaconda3/envs/wenet/lib/python3.8/site-packages/torch/_ops.py", line 692, in call return self._op(*args, **kwargs or {}) RuntimeError: Error loading audio file: failed to open file /home/hujinlei/hjl/LibriSpeech/train-clean-360/1054/143005/1054-143005-0084.fl ac
查看了/home/hujinlei/hjl/LibriSpeech/train-clean-360/1054/143005/1054-143005-0084.flac 文件是存在的

这是由于在torchaudio更新到2.0以后启用了dispatcher 机制；因此需要更新 compute_cmvn_stats.py ，将torchaudio.backend.sox_io_backend.info改成torchaudio.info

@lsrami 可以提个pr修复吗

Hi, I'm facing this issue when running stage 1 on custom dataset.
First, I thought it was about audio path issue, so I changed wav_path to absolute path, but still the error persisted
stage 1: Feature Generation
using resample and new sample rate is 16000
Traceback (most recent call last):
File "/home/turi/experiment/oasr/wenet/examples/librispeech/s0/tools/compute_cmvn_stats.py", line 122, in
for i, batch in enumerate(data_loader):
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/utils/data/dataloader.py", line 631, in next
data = self._next_data()
^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/utils/data/dataloader.py", line 1346, in _next_data
return self._process_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/utils/data/dataloader.py", line 1372, in _process_data
data.reraise()
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/_utils.py", line 722, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
^^^^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
^^^^^^^^^^^^^^^^^^^^^
File "/home/turi/experiment/oasr/wenet/examples/librispeech/s0/tools/compute_cmvn_stats.py", line 33, in call
sample_rate = torchaudio.info(wav_path).sample_rate
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torchaudio/_backend/utils.py", line 99, in info
return backend.info(uri, format, buffer_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torchaudio/_backend/sox.py", line 22, in info
sinfo = sox_ext.get_info(uri, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/turi/anaconda3/envs/torch_env/lib/python3.11/site-packages/torch/_ops.py", line 755, in call
return self._op(*args, **(kwargs or {}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error loading audio file: failed to open file /home/turi/experiment/oasr/data/train/sagalee_SPKRF109_130.flac

@xingchensong FYI, I converted my custom data into .wav format and still getting same error


Lacking build steps

Cloning, running yarn and then yarn build does not result in a clean build. It fails during unit testing with the following error:
 FAIL  test/docgen/view/documentation.test.ts (347.879 s)

...

  ● package installation does not run lifecycle hooks

    Command failed: yarn package
    [jsii-pacmak] [WARN] Failed building python
    [jsii-pacmak] [WARN] python failed
    Error: Command (python3 -m venv --system-site-packages /tmp/npm-packGuKdUa/.env-NmWkkb) failed with status 1:
    #STDERR>
    #STDOUT> The virtual environment was not created successfully because ensurepip is not
    #STDOUT> available.  On Debian/Ubuntu systems, you need to install the python3-venv
    #STDOUT> package using the following command.
    #STDOUT>
    #STDOUT>     apt install python3.10-venv
    #STDOUT>
    #STDOUT> You may need to use sudo with that command.  After installing the python3-venv
    #STDOUT> package, recreate your virtual environment.
    #STDOUT>
    #STDOUT> Failing command: ['/tmp/npm-packGuKdUa/.env-NmWkkb/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
    #STDOUT>
    #STDOUT>

      49 |
      50 |   // create the package
    > 51 |   child.execSync('yarn package', { cwd: workdir });
         |         ^
      52 |
      53 |   // this should succeed because the failure script should be ignored
      54 |   const docs = await Documentation.forPackage(path.join(workdir, 'dist', 'js', `${libraryName}@0.0.0.jsii.tgz`), { name: libraryName });

      at ChildProcess.<anonymous> (../../../../tmp/4L5erf/node_modules/jsii-pacmak/lib/util.js:119:27)
error Command failed with exit code 1.
      at Object.<anonymous> (test/docgen/view/documentation.test.ts:51:9)

If there is something missing from the bootstrapping process I don't see it in the README and there is no CONTRIBUTING.md
It's not clear on how I can get all tests to pass.

Just took a little apt install python3.10-venv  as the error stated and I was rolling again. Hard to believe the solution to my problems was right there in the problem itself =-}


Could not get the output IP of the VM on first terraform apply

Hello there,
i'm facing a weird issue.
i'm trying to launch a VM using the terraform,
yes i can able to launch a VM with DHCP on my KVM,
but when i run terraform apply it will lauch a VM only !!
if i run terraform apply again it will get the IP !!
i want IP of the VM with the first apply ?!
is it possible ? can anyone please help me ?
Please find my code below
# instance the provider
provider "libvirt" {
  uri =<EMAIL_ADDRESS>}

# We fetch the latest ubuntu release image from their mirrors
resource "libvirt_volume" "ubuntu-qcow2" {
  name = "ubuntu-qcow2"
  pool   = "images"
  source = "https://cloud-images.ubuntu.com/releases/xenial/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img"
  format = "qcow2"
}

resource "libvirt_network" "vm_network" {
  name      = "vm_network"
  autostart = "true"
  addresses = ["<IP_ADDRESS>/24"]
  dhcp {
    enabled = true
  }
}

# Create the machine
resource "libvirt_domain" "domain-ubuntu" {
  name   = "ubuntu-terraform"
  memory = "512"
  vcpu   = 1

  network_interface {
    network_id   = "${libvirt_network.vm_network.id}"
    network_name = "vm_network"
  }

  console {
    type        = "pty"
    target_port = "0"
    target_type = "serial"
  }

  console {
    type        = "pty"
    target_type = "virtio"
    target_port = "1"
  }

  disk {
    volume_id = libvirt_volume.ubuntu-qcow2.id
  }

  graphics {
    type        = "spice"
    listen_type = "address"
    autoport    = true
  }
}

terraform {
  required_version = ">= 0.12"
}

output "ip" {
 value = "${libvirt_domain.domain-ubuntu.network_interface[0].addresses[0]}"
}

Thanks,
Antonynixson

https://github.com/dmacvicar/terraform-provider-libvirt/blob/19c23424ccfdecf6dfcbdd87783bf835ba5f585e/examples/v0.12/count/main.tf#L25

@Antonynixson hi! for such question, you can ask in the chat:

https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r/domain.html.markdown#handling-network-interfaces
check for wait_for_lease.
also other examples:
https://github.com/SUSE/ha-sap-terraform-deployments/blob/be49f2ef3391e00ea2157f8d0a16ffbbbb0b9579/libvirt/modules/monitoring/main.tf#L24
after you get the IP, you create an output variable like this
https://github.com/SUSE/ha-sap-terraform-deployments/blob/master/libvirt/outputs.tf#L7
I'm closing . If you need help just ping me


Create Azure resources image shows unsupported version

Hello! Could we update the image under Create Azure resources, #3 to show a supported Node version?
Thanks for your time,
AJ
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 298b87f4-b6eb-5642-7ab5-cd6df709390d
Version Independent ID: 0518cce4-7677-6d63-979d-e0a9e532efc0
Content: Quickstart: Create a Node.js web app - Azure App Service
Content Source: articles/app-service/quickstart-nodejs.md
Service: app-service
GitHub Login: @msangapu-msft
Microsoft Alias: msangapu

@ajpogue
Thanks for your feedback! We will investigate and update as appropriate.

Added to our backlog to update the screenshot.
#please-close


Support image texture for channel uniforms

Use PIL to load the image. Tested with png/jpg. The noise by default is remove.

Awesome PR! Couple of things:

Can you make this PR again with mostly unchanged whitespace (instead of converting to tabs). It's hard to read the diff this way.
Also, if you make the default None then you can use noise when no file has been specified.

Thanks!

Ok, I'll do that tomorrow :+1:

Works like a charm! Very nice work.
But, it also made me wonder, would it be possible to load image sequences / videos too through PIL?

@JuusoKaari : yes possible, I guess the best should be to use openCV to transform the frame of the video you want to image, and each frame you seek the video to the correct time and redo it.


Ensure correct usage of BigNumber

Applying the issue described at https://github.com/christianlundkvist/simple-multisig/issues/33:
Replaced each occurrence of new BigNumber with web3.toBigNumber, in order to ensure that compatible BigNumber instances are passed to Web3 functions.

Hey @barakman, thanks for this! Can you package this one and #36 into a single PR, update the version in package.json to 1.0.5 and add a section in RELEASE_NOTES.md? That way I can more easily merge it.

Hey @barakman, thanks for this! Can you package this one and #36 into a single PR, update the version in package.json to 1.0.5 and add a section in RELEASE_NOTES.md? That way I can more easily merge it.

This has been addressed in version v2.0.0. Thanks for the input!


Don't link against libm on Haiku

Thank you for this fix! I've committed a slightly different approach that avoids hardcoding Haiku but checks for libm instead. I haven't tested this with Haiku, but it should hopefully work.


Make sure to protect certain characters from markdown or HTML

Characters like '<', '>', '&' are interpreted by markdown or HTML in "funny"
ways.  Fortunately, pod2markdown has exactly the option we need to have that
protection:

--html-encode-chars
A  list  of  characters  to  encode as HTML entities.  Pass a regexp
character class, or 1 to mean control  chars,  high-bit  chars,  and
"<&>"'".
See "html_encode_chars" in Pod::Markdown for more information.

Fixes #openssl/openssl#25407

Is this going to break the cases where we have inline HTML in the POD files?
For example:

designs/quic-design/connection-state-machine.md has a table mixed into the POD formatting.
man7/life_cycle-cipher.pod has a table inside a =begin html block and an img guarded by =for.

One could argue that the former is being evil.  The latter, however, should work IMO.

Nope, it leaves the =for html / =begin html sections alone. I did check.
Side note: there are workflows in this repo, but they don't seem to have kicked in. I wonder why...

The =for html / =being html are the second case.
designs/quic-design/connection-state-machine.md includes HTML directly into the POD without any such guards.

designs/quic-design/connection-state-machine.md isn't a POD file, which should pod2markdown do anything with it?

Side note: there are workflows in this repo, but they don't seem to have kicked in. I wonder why...

The workflows are triggered on push to main. I wanted to make a preview but surge.sh refuses to accept such a big payload.


filter_vmap produces output with wrong out_axes arrangement

def foo(x):
    return x * 2.

x = jnp.arange(24).reshape((2,3,4))
y = jax.vmap(foo, out_axes=-1)(x)
z = eqx.filter_vmap(foo, out_axes=-1)(x)
print("jax:", y.shape, "eqx:", z.shape)
# jax: (3, 4, 2) eqx: (4, 3, 2)

equinox version: 0.11.8

Thank you for the report! I've just fixed this in #901.
This one is important enough that I'm also going to do a new Equinox release with the fix.


Add layouts to Eta example

Details
As of https://github.com/eta-dev/eta/releases/tag/v1.9.0, Eta supports layouts. I thought it would be helpful to update the Eta example to use layouts.
CheckList

[x] Has been tested (where required) before merge to main.

Nice one @nebrelbug 🚀


Removes Markdown default, replaces forem_markdown with forem_format

From issue #55

Adds basic tests for default formatter.
Removes redcarpet and markdown refs.
Deprecates forem_markdown helper, no longer produces markdown and logs warning
Refers to gem plugins which give Textile or Markdown formatting

Default formatter:

wraps text with pre tag
escapes unsafe post html

To replace formatter with markdown / textile override Forem::FormattingHelper#as_formatted_html

Nice code.  Merges cleanly into master atm.  Works as advertised.  Is test-covered.


update on Ubuntu 20.04.1 LTS  - snap install microk8s --channel=1.19 --classic

whould install microk8s I check it is not already present :
# microk8s instpect

La commande « microk8s » n'a pas été trouvée, mais peut être installée avec :

snap install microk8s

check version :+1: I should run snap install microk8s --channel=1.19 --classic
result is here :
# snap install microk8s --channel=1.19 --classic
erreur : system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
          /tmp/sanity-mountpoint-174145105: type de syst�me de fichiers ��squashfs�� inconnu.
# locate squashfs | grep bin
/usr/bin/mksquashfs
/usr/bin/unsquashfs
#

so I have squashfs it is somewhere in install script the ubuntu 20.04.1LTS case using mksquashfs not set ?

Hi @goblinrieur
Is this on a VM on any cloud?
This is a snapd issue, here is a related issue on the snapcraft forum https://forum.snapcraft.io/t/system-does-not-fully-support-snapd/14767/7

It is a baremetal OVH server

Does this look relative: https://github.com/ubuntu/microk8s/issues/362 ?
What is your kernel version (uname -a)?

here my uname :
Linux squadlabo 4.9.87-xxxx-std-ipv6-64 #1 SMP Tue Mar 13 18:41:47 CET 2018 x86_64 x86_64 x86_64 GNU/Linux
it somehow looks like #362 I did similarly diagnostic tests in facts without results

I tried update but still no fix included.

This is not the kernel Ubuntu 20.04 LTS ships with [1]. Canonical puts a lot of effort in patching and testing the kernels used in Ubuntu. Taking the kernel out of the distribution may cause such bugs and hurt its users. You should talk to OVH to see what are your options in getting the original kernel and maybe asking if there are other changes to the distribution you should be aware of. I am not even sure if this can be called "Ubuntu 20.04.1LTS" anymore.
[1] https://ubuntu.com/blog/ubuntu-kernel-5-4-whats-new-with-ubuntu-20-04-lts

OK thanks I going to both :

Ask OVH about that (I think you're right they should have given a personalized kernel to allow virsh and other stuff)
Use a virtual machine for microk8s while waiting for the next available server I will manage.

So I will close this incident here.


ci: Bump 3pp actions versions

Bumping versions for 3pp actions and increasing lint timeout

No coverage files changed, so ignoring the failing build


pubsub on MacOs does not properly terminate react app

Expected Behavior

Actual Behavior
After successfully completion of the pubsub quickstart on MacOS, the react app is not properly terminated.
% lsof -PiTCP -sTCP:LISTEN
COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
node      25269 dima   21u  IPv6 0x5e0941cf3c20a035      0t0  TCP *:8080 (LISTEN)

% ps -aef | grep 25269
  501 25269     1   0  3:05PM ttys001    0:00.33 node server.js

Steps to Reproduce the Problem
Run the following steps on MacOS

Run the pubsub quickstart: mm.py ./README.md
Once completed, check the listening ports

Think this is a CLI bug that we already have an issue for: https://github.com/dapr/cli/issues/695.
TL;DR: Cli sends SIGKILL instead of SIGTERM. Node spawns a parent and a child process. The parent gets a SIGKILL from the CLI when it exits, which doesn't allow the parent to clean up the child, the child is leaked.

@artursouza could you please recommend who should have a look?  This impacts function and test health.

@paulyuk @pkedy  was working on the PR for the fix for the dapr/cli#695. I have pinged him on that PR if he will pick it up.

Closing this due to inactivity. Please feel free to reopen this issue if needed.

Closing this issue due to inactivity. Please feel free to reopen this if needed.


LUIS Trace reporting unauthorized

Using the emulator version 4.4.1, if I click on a LUIS trace, I get a new log message that says "[LUIS] Unauthorized: Your bot is not configured to interact with LUIS App: {Guid}.  Please connect your bot to LUIS using the services pane", except that my bot is using LUIS just fine and in fact, when I click on the trace link, I am seeing the trace in the inspector.  So there is some issue with the emulator.  I am using the new bot templates without a .bot file.

Hi @snapfisher ,
Currently, the LUIS & QnA inspectors (spawned when clicking a LUIS or QnA trace) still require a .bot file with a corresponding service entry in order to work. They cannot be used with a bot that's connected solely via endpoint.


gnupg21: fix clang & llvm build

Upstream committed a patch to fix Clang & LLVM compile. Thanks Werner.

Failure unrelated. Merging soon.


Remove unused load from python_rules.bzl

Failure: https://github.com/grpc/grpc/issues/20254

Just waiting on code owner approval. (even though I am one...)


NportModel.find missing

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
I can't find the equivalent command of NPortModel.Find
📝 Steps to reproduce
not available
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024.1
🐍 Which Python version are you using?
3.10
📦 Installed packages
ansys-api-edb-v1 @ file:///C:/Users/svandenb/PycharmProjects/pyedb/protos
ansys-edb @ file:///C:/Users/svandenb/PycharmProjects/pyedb
grpcio==1.47.5
grpcio-tools==1.47.5
importlib-metadata==6.8.0
protobuf==3.20.3
six==1.16.0
zipp==3.17.0

closed with #395


Create Standards document

[x] Branch naming Convention
[ ] Joel Test
[ ] Coding Convention
[ ] Documentation Standards

[] Branch naming Convention
[] Joel's

I'm currently using this for eg ticket 123
nt_123_description
Or with
feature/nt_123_description
bug/nt_123_description


Handle errors properly in kube::gcs::release functions

errexit doesn't actually do anything when commands are run inside a function on the left-hand side of a &&. Thus after #12177, all errors were being swallowed, rather than being handled correctly.
The only way to fix this is to stop relying on errexit's functionality entirely.
I've only updated the kube::release::gcs functions for now, though we probably need a full audit of everything.

Handing LGTM power to @k8s-bot :)

(That is to say, LGTM-as-long-it-works)

the PR flow doesn't actually call any of the GCS uploading bits, so I'm not sure how much it'll tell us.

Oh, that's right.
It still LGTM.


Ensure EXISTS key is not orphaned when expire is used

TL;DR - GETSET resets the TTL on a key to indefinite. We need to ensure a key always has a TTL if using :expiration

An observed and rare production (1 in a million) phenomenon has been a deadlock condition when timeouts on expiring locks are not used. Upon inspection of Redis, we could see that the EXPIRES key was present, but without a TTL and the AVAILABLE key was not.
The problem occurs because in the fix for block syntax in b0bbfda39b4048fd130771cade651265bc1652ca removed setting the expiration explicitly when the EXISTS key already exists. IE token = @redis.getset(exists_key, EXISTS_TOKEN) returns a non-nil result.
This is problematic because the getset resets the TTL. You can see this demonstrated in Redis:
<IP_ADDRESS>:6379[15]> getset 'foobar' '0'
(nil)
<IP_ADDRESS>:6379[15]> getset 'foobar' '0'
"0"
<IP_ADDRESS>:6379[15]> expire 'foobar' 999
(integer) 1
<IP_ADDRESS>:6379[15]> ttl 'foobar'
(integer) 996
<IP_ADDRESS>:6379[15]> getset 'foobar' '0'
"0"
<IP_ADDRESS>:6379[15]> ttl 'foobar'
(integer) -1

This now opens up the possibility that one process is in the critical section, a second process resets the TTL on the EXISTS key and then waits via BLPOP for the first process to complete. If somehow the AVAILABLE key expires, the second process will be waiting either indefinitely or until the lock times out. If the lock times out and is then retried, the EXISTS key will still be there forever and not expire, so it will again wait without completing. If the expiration is set explicitly after GETSET , then the retry will be successful after the expiration period because the semaphore will create a new set of keys.
CC @dany1468 @dv

Hey @jcalvert this looks good, thanks so much for contributing!
Could you check out the CI errors and see if you could get them fixed? If you can also fix the hound comments that'd be great!
I'll merge it then, thanks!

@dv I'll try to clean this up here soon!

@dv I believe I have cleaned up the pull request. Thanks!

👍  for this

Has there been any further work on this? We're running into this issue on production as well - I'd be happy to take a look at the code if this has been abandoned.

@jasonl AFAIK there's no further work to be done. I did the HoundCI cleanup and the tests pass; whatever Travis failures are there seem to be unrelated. We used a fork with my patch in production at my previous employer.


scheduled BGcolor under daily page is too dark

just a suggestion，I think it's too dark

I agree. There is a 50% opacity applied on that element that reduces contrast too much. I'll release an update shortly.

i think these part is not define in dark mode, so they just toally black
other elements have this error

query reult bgcolor

linked reference bgcolor

Background colours changed to make things visible and consistent.


CouplingModel for infinite systems gets wrong couplings for too small unit cells

Unfortunately, there seems to be another serious bug...
For infinite systems, the CouplingModel doesn't store whether the coupling goes between different unit cells, but "guesses" that later on by checking whether the distance between the two sites within a unit cell or different unit cells is shorter. This works fine for short range couplings in large unit cells, but leads to wrong couplings if we have a cyliner with a single ring as unit cell (which is somehow a natural choice). If we choose multiple rings as unit cells, it gives the correct results, though.

The CouplingModel mapped all sites involved into a coupling into the same unit cell
and then compared the distance between the sites within a unit cell or
accros one unit cell to decide how to couple. That's simply wrong for certain geometries, e.g. it does not allow long-range couplings going over two unit cells, and handled couplings for cylinders with a single ring unit-cell wrongly (even depending on the MPS ordering).
To fix this, we now store couplings with indices  i, j with j> lat.N_sites indicating the coupling between different MPS unit cells, implemented in commit 86519f42ee9bddc6451a4ebf537df92ad8672c3d.


Table and header alignement

Headers and text does not seem to be aligned with table
Header and text seems to be slightly offset to the right, when compared to a table.
To reproduce

Enable readable line length in settings
Enter text/header and create a table

Expected behavior
Content to be aligned. Right now the table and the text/header are just slightly off in terms of alignment. This only happens if Readable line length is on. Does not happen with Obsidian default theme or other themes
Screenshots

Debug info (required):
SYSTEM INFO:
Obsidian version: v0.14.12
Installer version: v0.14.5
Operating system: Windows 10 Pro 10.0.19043
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: Minimal

Which version of Minimal are you using? Can you confirm this happens with the latest version?

Yup, can confirm its happening with 5.2.8. I updated yesterday so can't remember if it was happening with the previous one as well.

It's strange, I am not able to reproduce this issue

Interesting. Its not a big issue I guess.
I will do some digging on my end see if there is something I can use to put this in place. In the meantime did some more testing.
Disabled all snippets and plugins. With readable line length on the left side seem to be kinda ok

While the same with readable line length looks pretty off altogether

I am trying to reproduce, but I haven't been able to

Very strange. I have now tried with a brand new vault, after re-installing Obsidian and am getting similar results. Looks like its not theme specific after all. Maybe its specific to live preview as in reading mode it seems good. Anyways ill look further into this on my end. Thanks!


Fix srow -> erow switching when in visual mode

The logic for switching the start row and end row is not quite correct and is only evident when in visual mode:

after

ah good catch once again, thanks


ReflectionClass->getFileName() returns false for core/extnsion clasess which causes fatal error

Versions:

ide-helper Version: 2.9.1
PHP Version: Tested on 8.0 but i think may relate to others as well.

Description:
This method:
https://github.com/barryvdh/laravel-ide-helper/blob/244e936b740b18ab56180af2e1172436544764f2/src/UsesResolver.php#L26
fails when $classFQN will be php core/extension class as per php docs:
https://www.php.net/manual/ru/reflectionclass.getfilename.php, for example this bug occurs when i install swoole/ide-helper.
php artisan ide-helper:generate

   ValueError

  Path cannot be empty

  at vendor/barryvdh/laravel-ide-helper/src/UsesResolver.php:44
    40|     {
    41|         return $this->loadFromCode(
    42|             $classFQN,
    43|             file_get_contents(
  > 44|                 $filename
    45|             )
    46|         );
    47|     }
    48|

      +20 vendor frames
  21  artisan:36
      Illuminate\Foundation\Console\Kernel::handle()

Steps To Reproduce:
for example u may install swoole/ide-helper.
Possible solution
    /**
     * @param string $classFQN
     * @return array
     */
    public function loadFromClass(string $classFQN): array
    {
        $ref = (new \ReflectionClass($classFQN));

        if (false === $ref->getFileName()) {
            return [];
        }

        return $this->loadFromFile(
            $classFQN,
            $ref->getFileName()
        );
    }

this needs to be fixed asap

Please fixed this bug. Thanx

this needs to be fixed

Fix it please! Thx!

I'm facing this problem too.
It is seems ReflectionClass->getFileName() fails using this helper with swoole, because classes related swoole extention can not be resolved.
Previously this problem was skipped as below.
Exception: Target class [swoole.room] does not exist.
Skipping \SwooleTW\Http\Websocket\Facades\Room.
Exception: Target class [swoole.websocket] does not exist.
Skipping \SwooleTW\Http\Websocket\Facades\Websocket.
Exception: Target class [swoole.room] does not exist.
Skipping \SwooleTW\Http\Websocket\Facades\Room.
Exception: Target class [swoole.websocket] does not exist.
Skipping \SwooleTW\Http\Websocket\Facades\Websocket.

https://github.com/barryvdh/laravel-ide-helper/issues/1186

Previously this problem was skipped as below.

Isn't it anymore? Because the code is still there https://github.com/barryvdh/laravel-ide-helper/blob/c5e18beff1a2933913f86d56281581566e5c8705/src/Alias.php#L305

This is also still happening for me.

This is still an issue for me.

I got this error as well. Since @dotdevpro suggested a fix, is there any way to merge it?
If there's any problem related to SwooleTW  package I can help to address the solution btw.


fix Issue 15181 - SYSCONFDIR is broken

see https://github.com/D-Programming-Language/dmd/pull/5171

thx


Doesn't refresh when the page changes

related https://github.com/Te7a-Houdini/alpinejs-devtools/issues/1 but different

@mokhosh can you provide more details on this issue .

For example if I'm on the homepage with the dev tools open, and I click on the login link, when the page changes, the dev tools still shows the components from homepage, not the login page.

@mokhosh ok got it thanks a lot for the explanation

Thank you a lot for the extension :)

I'm going to suggest we move this dicussion over to #1 since it's all down to the same problem and IIRC will have the same solution.

@ryangjchandler  ok :+1:

Discussion moved to #1, closing issue :)


Allow customization of tooltips for each layer

Right now, it's possible to customize infowindows within sublayers. We should also allow users of cartodb.js to customize tooltips in sublayers (custom template, specify the position, etc.).
Here's what @ohasselblad had to do customize a tooltip: http://bl.ocks.org/ohasselblad/a0e06de1f6f1597c096b

Here's another example of someone adding a customized tooltip to a layer created with cartodb.createLayer. There are several issues:

vis is not available when cartodb.createLayer is used, so vis.addTooltip cannot be used.
Something needs to passed in the fields option (even if it's not really used).
It's impossible to figure this (^^) out by looking at the documentation.

Hey, running into this issue. Tried to use infowindows instead but having issues with infowindow behaviour inconsistency on browser so move to tooltips. tooltips though still seem to have same problem if one is using createlayer with several sublayers. Is this resolved?

@jmwenda as pablo pointed, on this issue you'll find the requirements and how to set up a custom tooltip for each sublayer accessing the template
Can you give more details (code/example) on your issue?

There has been no activity on this issue for several months and that's why are closing it (automatically). If you think this still needs to be addressed please reopen it. The good news is that we are now working on the next version of CARTO.js, stay tuned.


EPIPE erorr when specifying python.sortImports.path

Environment data

VS Code version: 1.52
Extension version (available under the Extensions sidebar): v2020.12.424452561
OS and version: macOs Mojave 10.14.6
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.8
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv + tox
Relevant/affected Python packages and their versions: isort  4.3.21 (was also trying to use 5.x)
Relevant/affected Python-related VS Code extensions and their versions: XXX
Value of the python.languageServer setting: Not sure how to find this -- am using pylance

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour

isort --diff --version

Actual behaviour

isort - --diff --version

Steps to reproduce:
"python.sortImports.path": ".tox/format/bin/isort",
"python.sortImports.args": ["--version"],

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

This results in the following command being run by the extension:
> .tox/format/bin/isort - --diff --version
cwd: ~/projects/services/CMS/contentcloning/migrations
Error: write EPIPE
Error 2021-01-07 10:29:01: Failed to format imports for '/Users/jordan.caras/projects/services/CMS/contentcloning/migrations/0001_squashed_nov2020.py'. [Error: write EPIPE
	at afterWriteDispatched (internal/stream_base_commons.js:149:25)
	at writeGeneric (internal/stream_base_commons.js:140:3)
	at Socket._writeGeneric (net.js:776:11)
	at Socket._write (net.js:788:8)
	at doWrite (_stream_writable.js:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at Socket.Writable.write (_stream_writable.js:309:11)
	at E.communicateWithIsortProcess (/Users/jordan.caras/.vscode/extensions/ms-python.python-2020.12.424452561/out/client/extension.js:59:415932)
	at t.pythonExecutionFactory.create.resource (/Users/jordan.caras/.vscode/extensions/ms-python.python-2020.12.424452561/out/client/extension.js:59:415391)
	at E._provideDocumentSortImportsEdits (/Users/jordan.caras/.vscode/extensions/ms-python.python-2020.12.424452561/out/client/extension.js:59:413432)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)] {
  errno: 'EPIPE',
  code: 'EPIPE',
  syscall: 'write'
}

I suspect this has to do with the extension wanting to provide the extra "-" to designate sortImport.args when not specifying a custom path and targeting the shipped extension.

I suspect this has to do with the extension wanting to provide the extra "-" to designate sortImport.args when not specifying a custom path and targeting the shipped extension.

Hi @jordmantheman, thank you for reaching out!
Could you post the output when you're using isort 5? If you have a sample repo that I could use to replicate the issue that would also be super helpful 🙂
Thanks!

Hi @jordmantheman, thank you for reaching out!
Could you post the output when you're using isort 5? If you have a sample repo that I could use to replicate the issue that would also be super helpful 🙂
Thanks!

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.
Thank you!


Connecting to a named hub that doesnt exist hangs, but it should fall back to the default instead

const client = based({
  env: 'prod',
  project: 'hello',
  org: 'saulx',
  key: 'jobs',
})

hangs if the jobs hub doesnt exist. it should instead go to the default hub

https://github.com/atelier-saulx/based/commit/65b9c79f12e66bf6f510c9489c00d8e7252ba44b
fixed here


[BUG] crc on Windows waits for an IP forever

Start hangs on
INFO Creating CodeReady Containers VM for OpenShift 4.5.14...

when the network interface does not get an IP address assigned.

needs a timeout or will be solved with the vsock implementation

forgot to modify the title ;-) was too focused on the image I guess

Any known workaround? I believe that I'm stuck on this issue getting crc up and running.
From the VM Console, I can see that eth0 gets an external IP address assigned via DHCP, but for some reason, the Hypervisor does not show an IP Address like in the screenshot above.

@guillaumerose Hi, my issue has been resolved a while ago (see #1674 ). Unfortunately, I lack the environment to reproduce this problem now, so my test will not provide any new insights.

@guillaumerose Hi, my issue has been resolved a while ago (see #1674 ). Unfortunately, I lack the environment to reproduce this problem now, so my test will not provide any new insights.


[PRM-2561] - Introduce new feature switch for audits

Unit spec automatically picks up new entries in the feature switch list to save duplication of same test for different feature switches:
https://github.com/hmrc/penalties-appeals-frontend/blob/28d066ee11ad32bd177cbd517dc833945d0048f8/test/config/featureSwitches/FeatureSwitchingSpec.scala#L84

App config PR to disable new audit event structures in prod: https://github.com/hmrc/app-config-production/pull/18220


Prepare Attestation patch release for October 2022

API change check
API changes are not detected in this pull request.


Concurrent Dictionary Output

Describe the bug
Some weeks back we added threaded support to the analyze command for performance achieving impressive results for large projects.  In the process, the data types were modified to use ConcurrentDictionaries of type <string,byte> resulting in output in all formats of including the desired value along with an unnecessary "0" value e.g.  0.  In addition the order of the values is unpredictable due to threaded adds and inability to sort natively or control the add order of a concurrent dictionary resulting in inconsistent output of tags and other values lending an impression or making it difficult to verify consistent scan results of the same code scanned.
Finally, the tag counters are not functioning as expected as a ConcurrentStack was used which doesn't maintain the intended unique key values (tags) so output has duplicate values, one for each instance the given tag was found.
To Reproduce
Steps to reproduce the behavior:
Run the analyze command and view the Summary Metadata (html format) and see the file extension types broken and unable to navigate to the fileinfo site to explain the type definition or see the json format and view the tags, apptypes, and many others with a value, 0 and the tag counters with duplicate key names and values.
Expected behavior
Unique tags and other metadata should not have an unnecessary extra byte value of zero from the user caller standpoint and output i.e. should hide the internal use of concurrent classes as needed to achieve.
TagCounters should be unique with a total count per instance
We should also make it easy to use the result datatypes i.e. unless there is a reason users should just get back lists reducing the additional special class types and size of their projects using the NuGet components.

counterserrorexample-myout.txt
error.json.txt


hot update is failed when return template in jsx

Version
3.0.11
Reproduction link
https://codesandbox.io/s/brave-thunder-1px0d?file=/src/App.vue
Steps to reproduce
<template>

    <HelloWorld msg="Welcome to Your Vue.js   TypeScript App" />

</template>

can hot update, but

import { defineComponent } from "vue";
import HelloWorld from<EMAIL_ADDRESS>// @ is an alias to /src

export default defineComponent({
  name: "Home",
  setup() {
    return () =>

      <HelloWorld msg="Welcome to Your Vue.js   TypeScript App" />

  }
});

this is not hot update when modify content, which caused bad experience when developing
What is expected?
should hot update not matter the template is defined in vue template or in setup function
What is actually happening?
always reload the page when the template is defined in setup function

Open the link you provided, edit Home.jsx, you can see that it can be hot updated.


Restricting Countries

How do i change the form to accept only a couple of countries as the shipping address

@asimdis0286 do you find a way?


How to check event name from incoming Message ?

How can I check event name from Channel.messages?
Message has event property but can't do something like this
if(message.event == "new_order")

You can do:
if (message.event.value == 'foo') {

}

oh nice! Thank you!

No problem! If you have more questions, feel free to ask them through the discussion section!


ftp-simple

Type: Bug
Faz cercar de uma semana que o ftp-simple não funciona mais. Alguma solução?
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Hi @DanielMartinho81 ,
Thank you for contacting the VS Marketplace Team. Could you please elaborate on your concern and provide the publisher/extension details to help us investigate further
Regards,
VS Marketplace Team

Closing the issue since there has been no updates on the information requested. If the issue still persists, please feel free to reopen or create a new issue.
VS Marketplace Team


Greyed out download button on OpenNeuro website

Hi there! I'm not sure if it's just me but the Download tab is greyed out on the OpenNeuro website. What is the recommended way to download this dataset?
Thanks!

Hi @botsunny,
Thanks for your interest here. Weird that the button is grayed out. It looks fine on my side.

Can you please check with one of your colleagues if it's also grayed out for them?

Hi @tommydino93,
It seems like it's an issue exclusive to my PC, but I've been able to download the dataset using openneuro-py. Thanks!
However, out of curiosity, what does this particular size refer to?

As after downloading the dataset I realised it is not just 13.46 GB but approximately 178. Thanks again!

Glad you were able to download!
Redarging the size, I think that's computed automatically by openneuro, but I have no idea how.


Rollup configuration

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@aa26bd5). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master     #13   +/-   ##
========================================
  Coverage          ?   86.3%
========================================
  Files             ?      18
  Lines             ?     409
  Branches          ?      46
========================================
  Hits              ?     353
  Misses            ?      56
  Partials          ?       0

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 aa26bd5...aba726a. Read the comment docs.


multi_gpu_model() corrupts model structure

Please make sure that this is a Bug or a Feature Request and provide all applicable information asked by the template.
If your issue is an implementation question, please ask your question on StackOverflow or on the Keras Slack channel instead of opening a GitHub issue.
System information

Have I written custom code (as opposed to using example directory):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow backend (yes ):
TensorFlow version:  1.13.1
Keras version:  2.2.4
Python version:  3.5
CUDA/cuDNN version:  cuda 9.0  cudnn 7.0.5
GPU model and memory:  GTX 1080Ti

You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
You can obtain the Keras version with:
python -c 'import keras as k; print(k.version)'
Describe the current behavior
I have two gtx1080ti in my computer and I tried to use both gpus in parallel with multi_gpu_model().
But when I use multi_gpu_model, it corrupts model. This is the model.summary() of my network.
Layer (type)                 Output Shape              Param #
conv1 (Conv3D)               (None, 16, 144, 192, 64)  5248

pool1 (MaxPooling3D)         (None, 16, 72, 96, 64)    0

conv2 (Conv3D)               (None, 16, 72, 96, 128)   221312

pool2 (MaxPooling3D)         (None, 8, 36, 48, 128)    0

conv3a (Conv3D)              (None, 8, 36, 48, 256)    884992

conv3b (Conv3D)              (None, 8, 36, 48,<PHONE_NUMBER>

pool3 (MaxPooling3D)         (None, 4, 18, 24, 256)    0

conv4a (Conv3D)              (None, 4, 18, 24,<PHONE_NUMBER>

conv4b (Conv3D)              (None, 4, 18, 24,<PHONE_NUMBER>

pool4 (MaxPooling3D)         (None, 2, 9, 12, 512)     0

conv5a (Conv3D)              (None, 2, 9, 12,<PHONE_NUMBER>

conv5b (Conv3D)              (None, 2, 9, 12,<PHONE_NUMBER>

zero_padding3d_1 (ZeroPaddin (None, 2, 11, 14, 512)    0

pool5 (MaxPooling3D)         (None, 1, 5, 7, 512)      0

flatten_1 (Flatten)          (None, 17920)             0

fc6 (Dense)                  (None, 4096)              73404416

dropout_1 (Dropout)          (None, 4096)              0

fc7 (Dense)                  (None, 4096)              16781312

dropout_2 (Dropout)          (None, 4096)              0

fc8 (Dense)                  (None, 1)                 4097
Total params: 117,845,761
Trainable params: 117,845,761
Non-trainable params: 0

But this is the result of model.summary() after model = multi_gpu_model(model,2)
Layer (type)                    Output Shape         Param #     Connected to
conv1_input (InputLayer)        (None, 16, 144, 192, 0

lambda_1 (Lambda)               (None, 16, 144, 192, 0           conv1_input[0][0]

lambda_2 (Lambda)               (None, 16, 144, 192, 0           conv1_input[0][0]

sequential_1 (Sequential)       (None, 1)            117845761   lambda_1[0][0]
lambda_2[0][0]

fc8 (Concatenate)               (None, 1)            0           sequential_1[1][0]
sequential_1[2][0]
Total params: 117,845,761
Trainable params: 117,845,761
Non-trainable params: 0

Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

If you go to see the source code of the multi_gpu_model you will know the concept.
the Lambda1&Lambda2 is the 2(the #gpu you defined) splits of your input layer. And the sequential_1 wraps the model you defined. This how multi_gpu_model works, nothing to worry about, if you want to print the summary, just print it before multi_gpu_model().

If you go to see the source code of the multi_gpu_model you will know the concept.
the Lambda1&Lambda2 is the 2(the #gpu you defined) splits of your input layer. And the sequential_1 wraps the model you defined. This how multi_gpu_model works, nothing to worry about, if you want to print the summary, just print it before multi_gpu_model().

Thank you! but the problem is when I load the parallel model (model after calling multi_gpu_model), It doesn't work.


Changed code injections to be case sensitive

Description
Made the change as described in #803.
As I discussed in our last meeting, doing this for Ruby code is super problematic. I've gotten around the issues though. Right now for a target generator of Ruby, if you specify the injection name in the Ruby format or in the typical Umple camel case format, the injection will occur.
However, in general (true for everything), having incorrect case will not allow the injection to occur.
Tests
I'm not really adding any new functionality -- simply removing existing functionality. I made changes to the test that were required due to my changes. I also removed a number of tests that were intended to specifically test the feature that I changed. Before I submitted this pull request, I made sure that the tests all passed.

I'm not sure why the build is failing on windows. It seems like the first thing that's being done is a gem update, which fails. This is before any of my code is actually built...

So, the problem is actually that it fails to install ant. So that's problematic. @TimLethbridge, could you restart the build? It could just be a fluke.

I think there is a problem with appveyor. It shows failure to my PR as well.

@Shikib check #813 for more information about this. It's a problem with Apache Foundation's servers.

What's the application *_Original()? I don't remember we talked about this kind of solution.

@vahdat-ab
I don't think either of the two issues presented in that example are due to this pull request.
The fact that there is injection into the the custom defined setX methods seems to be because of code that is being called for "Preconditions". I think this code was written a long time ago and might have been forgotten about. Check line 32, 33 of this file: https://github.com/umple/umple/blame/master/UmpleToJava/UmpleTLTemplates/class_MethodDeclaration.ump.
The *_Original issue was also not something I did. Again, I think this is code that somebody else wrote a long time ago that has now been forgotten about. I'm not sure what the Precondition/Postcondition code was supposed to do, so I'm not sure whether this is an intended feature or a bug.
I looked at this page to see who wrote the code: https://github.com/umple/umple/blame/7067af06362336472b20317bf1fd17c2d7ba1cb7/UmpleToJava/templates/class_MethodDeclaration.jet#L135. It seems to be someone with the username "Geoffrey Guest."
I think if you revert back to the state of the codebase 4 months ago, this exact code would be produced as well.

@TimLethbridge I'm not sure about the cases related to precondition and postcondition. What I know is that conditions always must be inside [ ].
Tim, do you think this is because Geoffrey was working on AOP and left the work incomplete?


Make Problem

Hi,
I'm using ubuntu 16.04, i got opencv 3.1, when i try to use "make && make install" i got this error:
"
[ 25%] Linking CXX executable fit-model
/usr/bin/ld: CMakeFiles/fit-model.dir/fit-model.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
examples/CMakeFiles/fit-model.dir/build.make:100: recipe for target 'examples/fit-model' failed
make[2]: *** [examples/fit-model] Error 1
CMakeFiles/Makefile2:119: recipe for target 'examples/CMakeFiles/fit-model.dir/all' failed
make[1]: *** [examples/CMakeFiles/fit-model.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
make: *** [all] Error 2"
Can you help me to solve this please?
Thank you in advance.

Hi,
Hmm I thought I fixed that, I'll check. What you're most likely missing is linking to pthreads.
Add this to CMakeLists.txt:
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
Or in any other way convenient for you add pthread to the command line of the linker.

Hi,
that lanes exists already in the CMakeLists, i'm using ubuntu 64bit,
To build i changed in the CmakeLists the opencv version required to  3.1.0 maybe this caused the problem i'm not sure.
I will try to use ubuntu 32bit and see if it works.
If you have any other idea that would be great, thank you.

I'll certainly investigate, it needs to run on Ubuntu 16.04 without problems - I'll make sure of that. I'm just a bit busy, the earliest I can look at it is next week.
You can do make VERBOSE=1 and check the linker command line whether there's a -pthread there or not. And then you could try to modify the arguments, in clang it's called -lpthreads I think, maybe gcc changed its naming, try with and without an "l" or "s". What gcc version are you using btw?
In the mean time if you want to try another Ubuntu, I recommend you try 14.04 64bit. I wouldn't try 32bit and I don't think it would make any difference to the problem.

I'm using gcc version 5.3.1, with make VERBOSE=1 i got this:
/usr/bin/cmake -H/opt/eos -B/opt/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /opt/build/CMakeFiles /opt/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/opt/build' make -f examples/CMakeFiles/fit-model.dir/build.make examples/CMakeFiles/fit-model.dir/depend make[2]: Entering directory '/opt/build' cd /opt/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /opt/eos /opt/eos/examples /opt/build /opt/build/examples /opt/build/examples/CMakeFiles/fit-model.dir/DependInfo.cmake --color= Dependee "/opt/build/examples/CMakeFiles/fit-model.dir/DependInfo.cmake" is newer than depender "/opt/build/examples/CMakeFiles/fit-model.dir/depend.internal". Dependee "/opt/build/examples/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/opt/build/examples/CMakeFiles/fit-model.dir/depend.internal". Scanning dependencies of target fit-model make[2]: Leaving directory '/opt/build' make -f examples/CMakeFiles/fit-model.dir/build.make examples/CMakeFiles/fit-model.dir/build make[2]: Entering directory '/opt/build' [ 25%] Building CXX object examples/CMakeFiles/fit-model.dir/fit-model.cpp.o cd /opt/build/examples && /usr/bin/c++    -I/opt/eos/include -I/opt/eos/3rdparty/cereal-1.1.1/include -isystem /usr/local/include/opencv -isystem /usr/local/include -I/usr/include/eigen3 -I/opt/eos/3rdparty/glm-<IP_ADDRESS>  -std=c++14   -o CMakeFiles/fit-model.dir/fit-model.cpp.o -c /opt/eos/examples/fit-model.cpp [ 50%] Linking CXX executable fit-model cd /opt/build/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/fit-model.dir/link.txt --verbose=1 /usr/bin/c++    -std=c++14   CMakeFiles/fit-model.dir/fit-model.cpp.o  -o fit-model -rdynamic /usr/local/lib/libopencv_imgcodecs.so.3.1.0 -lboost_system -lboost_filesystem -lboost_program_options /usr/local/lib/libopencv_imgproc.so.3.1.0 /usr/local/lib/libopencv_core.so.3.1.0 -Wl,-rpath,/usr/local/lib:  /usr/bin/ld: CMakeFiles/fit-model.dir/fit-model.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1' //lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status examples/CMakeFiles/fit-model.dir/build.make:100: recipe for target 'examples/fit-model' failed make[2]: *** [examples/fit-model] Error 1 make[2]: Leaving directory '/opt/build' CMakeFiles/Makefile2:119: recipe for target 'examples/CMakeFiles/fit-model.dir/all' failed make[1]: *** [examples/CMakeFiles/fit-model.dir/all] Error 2 make[1]: Leaving directory '/opt/build' Makefile:149: recipe for target 'all' failed make: *** [all] Error 2

Indeed the -pthread flag is missing from the linker command line. Can you please add this line outside of any if-statements in CMakeLists.txt and try again:
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")

This is the screenshoot

that lane exists but i still don't know why he can't detect it

I just solved the Problem the statement is miss placed. Thank you for your help

Yes as I said I wanted you to try the statement outside of any if-block.
It's not exactly misplaced, it's just a bit outdated - it's only in the clang else-branch. Recent versions of gcc require it too. I'll update it next week.

Ok, thank you again for your help.

I don't know i have to open another issue but to day i tried to run one of the examples (fit-model) i got this error:
"fit-model: /opt/eos/include/eos/render/texture_extraction.hpp:110: cv::Mat eos::render::extract_texture(eos::render::Mesh, cv::Mat, cv::Mat, cv::Mat, bool, eos::render::TextureInterpolation, int): Assertion `image.type() == CV_8UC3' failed.
Aborted (core dumped)"
do you have any ideas?
Thank you

It says your input image is not a 3-channel uchar image. Most likely you tried to run it on an image with alpha channel. I believe OpenCV's function is called cv::cvtColor(...) and you have to give it a flag like cv::RGBA2RGB.
Did you try to run it with the example image btw? Then you shouldn't run into troubles. Maybe the path to the image is wrong?

I tried to run with the example image, when the path is wrong he says he couldn't open the file so i changed the paths and i got this problem.

i don't know what really happened but it worked after restarting my computer.
thank you, for your help.

Great! I'll leave this issue open until I fix the pthreads problem in the CMakeLists.txt.

I fixed the pthreads flag problem in 01e4af0cef4b955df50934fc7e8d5754a14108d7, master and devel branch. gcc-5.4 on Ubuntu 16.04 definitely needs it. In the longer term it would be good to switch to target-based CMake flags but the old style works for now.


help solve the problem

Hello, I work in reception mode SWL(US-I-777) .Please help me to deal with the problem, I'm uploading the log to eqsl  and this error is displayed, please help with advice,My QTH КN 78 😋😓73!📻

hello, thanks for the answer, the question is closed.73!👍👋


⚠ WSINGRESOS - OXXO has degraded performance

In 5d0d9c6, WSINGRESOS - OXXO (https://srvshyweb.yucatan.gob.mx/cgi-bin/wspd_cgi.sh/WService=wsingresos/internet/compartido/wspagosoxxo.r) experienced degraded performance:

HTTP code: 200
Response time: 2666 ms

Resolved: WSINGRESOS - OXXO performance has improved in 0f4f061 after 15 minutes.


Support NX 19

Are there any plans to support NX 19 in the near future?

Nx 19 support just landed:
📦<EMAIL_ADDRESS>📦<EMAIL_ADDRESS>📦<EMAIL_ADDRESS>If you have any problems with any of the new versions, feel free to open another issue. Thanks!


Update README.md

Try to specify what atomic elements are.
Related issue
https://github.com/max0x7ba/atomic_queue/issues/41

fixed by another commit but owner of repo


Can i use this in angular 2 ?

No

Maybe you can look at https://github.com/madoar/angular-archwizard it's very very similar library but build for angular 5+.


Importing existing namespaces.

It should be possible to load a non gorilla .clj file and gorillarize upon saving.
I'd simply put everything in one segment when imported.

This works now! It was fixed in January.


md concatenator script

script to concatenate all the recipes so they can be converted to other formats.

Waaaaa, you seriously have the power to read minds. :P
--Ronnie
@iHeartMalware
On Mon, Apr 10, 2017 at 1:54 PM, FrankTheTank<EMAIL_ADDRESS>wrote:

Merged #35
https://github.com/theDevilsVoice/1337-Noms-The-Hacker-Cookbook/pull/35.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/theDevilsVoice/1337-Noms-The-Hacker-Cookbook/pull/35#event-1036934226,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD31cKXIEkIfWysjeqlX4jq67UdqAP5Tks5rumzXgaJpZM4M5HGZ
.


[Bug]: Option for alternative weapon fire doesnt work. option for alternative ammo type is missing

Mod Version
0.0.8
Mod Loader
Fabric
Mod Loader Version
fabric 0.16.7
Describe the bug
in the menu for controls there is no button for alternate ammo types. When hitting the alternate firing mode it doesnt seem to change the firing mode of the weapon. i tested it with the pulse rifle in creative.
To Reproduce
1.use pulse rifle
2.hit the alternate fire mode button
3.the mode doesnt seem to change
...

Does not follow issue guidelines. Please submit two new issues for each distinct bug.


update for mongo deps

This PR updated mongodb related dependencies:

mongoose
connect-mongo

Coverage remained the same at 91.228% when pulling 8d5c77a3f44fd820b4d60e273f053b6b6ebaf6c4 on Shegox:mongo-update into 63312e1d98264da7cc4b82fa64b661f8b8fb6a7c on cla-assistant:master.


numix-icon-theme-circle: 23.09.11 -> 23.10.09

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for numix-icon-theme-circle is: Numix icon theme (circle version)
meta.homepage for numix-icon-theme-circle is: https://numixproject.github.io
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 23.10.09 in filename of file in /nix/store/5kp95b06isj9j5hfcs5lmfm2nhq97wsp-numix-icon-theme-circle-23.10.09

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
canta-theme
numix-icon-theme-circle
zafiro-icons

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5kp95b06isj9j5hfcs5lmfm2nhq97wsp-numix-icon-theme-circle-23.10.09 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A numix-icon-theme-circle https://github.com/r-ryantm/nixpkgs/archive/a3e50a05caabca9d6604dbb24d4006b77ca7e5aa.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a3e50a05caabca9d6604dbb24d4006b77ca7e5aa#numix-icon-theme-circle

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5kp95b06isj9j5hfcs5lmfm2nhq97wsp-numix-icon-theme-circle-23.10.09
ls -la /nix/store/5kp95b06isj9j5hfcs5lmfm2nhq97wsp-numix-icon-theme-circle-23.10.09/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

canta-theme
numix-icon-theme-circle
zafiro-icons

Maintainer pings
cc @romildo for testing.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 260534 run on x86_64-linux 1

3 packages built:

canta-theme
numix-icon-theme-circle
zafiro-icons

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

canta-theme:

warning: EvalError
Cannot evaluate attribute ‘canta-theme’ in ‘/nix/store/b3mh7gi6z7a9w14khqj3cs613hgy3d3y-nixpkgs’.


Add Jupyter extension, installable via python package

Intended to fix issue #15.
I had to create a setup.py and invent some packages and names, in order to do this.  So I don't know if you agree with my naming.

The python library name is stix-visualization
The Jupyter notebook extension is installable via the package stix2jupyter.viz

To install the extension, after having installed stix-visualization:
jupyter nbextension install --py stix2jupyter.viz
jupyter nbextension enable --py stix2jupyter.viz

To uninstall:
jupyter nbextension uninstall --py stix2jupyter.viz

(wish they both could be one command.)  An example notebook command to make use of the extension:
from stix2jupyter.viz import display
display("""
[STIX JSON content here]
""")

The extension (actually the js code itself) still doesn't really work as we need it to, due to its problematic reliance on globals.  So this is perhaps a step in the right direction as far as releaseability, but it isn't good enough yet.
This repo also contains a regular web application, which I had to modify to keep it working, after having changed the stix2viz code to be an AMD module.  The web application must now also be structured as an AMD module, so I've fixed it so it still works, as far as I can test it.  To see it while I still have the proper branch in place (which won't be long term), go to: https://chisholm.github.io/cti-stix-visualization/
The "fetch STIX from a URL" function still isn't easily testable due to cross-origin restrictions.  There is content at github.com, but that's not the same domain as chisholm.github.io.  So I haven't tested it.

Actually, there's a test.json file in this repo, accessible from the same domain, which can be used to test the "fetch STIX from URL" function.  That worked for me.

Hmm... issue #16 purports to be required to fix #15.  I hadn't interpreted this issue to be to fix the global variable problem.  I thought it was simply to create the installable Jupyter notebook extension and nothing else.  What all is entailed here?

I think fixing the global variable problem is necessary to include multiple graphs in the same Jupyter notebook (if I understand the issue behind #16 correctly).

Yeah, but what the extension does (or doesn't do) is a different issue than making things installable as a notebook extension via a python package.

Looks good!
My preferences on naming:

The directory in the repo should be called stix2viz, since if we ever (figure out how and) decide to distribute just the JS/Image files on NPM, for instance, Jupyter is not relevant.
Accordingly, the Python distribution should be named stix2-viz or stix2-visualization (to match the naming pattern for the other libraries, and because "stix-viz" is a separate project (it doesn't have a Python component, but I'd still like to avoid the name collision).
To be honest, we can put all of (the currently-named) stix2jupyter/viz.py into stix2viz/__init__.py. Then the installation is just jupyter nbextension install/enable --py stix2viz and usage is just import stix2viz; stix2viz.display(...).

We won't release a version of the Python package until we fix #16, but I think this is good to merge in now. If the renaming will take a long time, let's merge now and handle it separately, otherwise let's rename first.

Renaming is done.  To your points:

Is that actually done, connecting python package installation with an npm installation (i.e. pip install X somehow triggers an npm install Y)?  Or were you thinking of having a python package and npm package coexist in the same repo and share the same files?  Is that done?  Unfortunately, as it stands, the stix2viz js module imports "nbextensions/stix2viz/d3", which includes a hard-coding of a Jupyter notebook extension path component.  Because of that, I had to add extra config to application.js so that the stix2viz js module would work outside of Jupyter (it would find its d3 dependency).  I didn't like it, but that's what the comment blurb at the top of application.js is about.  So Jupyter is unfortunately still relevant, in the implementation.
The github project name had "visualization" spelled out, so I thought maybe you'd prefer it spelled out in the library name.  But I shortened it to "viz".
This is done.

I was thinking about a co-existing npm package, but that's little more than an idea at this point. Maybe with the D3 customizations it's not that feasible.


Don't include class in interface if not used

Codecov Report

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

@@             Coverage Diff             @@
##              master      #818   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity       180       180
===========================================
  Files             20        20
  Lines            464       429   -35
===========================================
- Hits             464       429   -35

Impacted Files
Coverage Δ
Complexity Δ

src/Grant/Password.php
100.00% <0.00%> (ø)
2.00% <0.00%> (ø%)

src/Token/AccessToken.php
100.00% <0.00%> (ø)
27.00% <0.00%> (ø%)

src/Grant/GrantFactory.php
100.00% <0.00%> (ø)
8.00% <0.00%> (ø%)

src/Grant/RefreshToken.php
100.00% <0.00%> (ø)
2.00% <0.00%> (ø%)

src/Tool/RequestFactory.php
100.00% <0.00%> (ø)
3.00% <0.00%> (ø%)

src/Grant/AuthorizationCode.php
100.00% <0.00%> (ø)
2.00% <0.00%> (ø%)

src/Provider/GenericProvider.php
100.00% <0.00%> (ø)
23.00% <0.00%> (ø%)

src/Provider/AbstractProvider.php
100.00% <0.00%> (ø)
64.00% <0.00%> (ø%)

src/Tool/ProviderRedirectTrait.php
100.00% <0.00%> (ø)
12.00% <0.00%> (ø%)

src/Tool/RequiredParameterTrait.php
100.00% <0.00%> (ø)
4.00% <0.00%> (ø%)

Thank you for the PR! However, this is a stylistic issue that doesn't affect performance or how the code functions. In fact, PHP doesn't "import" these classes at all. The use statements simply create aliases.
Since some coding standards are starting to specify referencing class names by use statements only (e.g. SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly), and we haven't adopted a specific stance on this in league/oauth2-client, I'll close this PR for now.
Feel free to open an issue to make a case for adopting a specific style regarding use statements.
Cheers!