ValueError: On entry to DGESDD parameter number 10 had an illegal value

My issue is about ... the library scipy, I used the classifier : LDA to train on a small dataset but I keep getting the error below :
ValueError: On entry to DGESDD parameter number 10 had an illegal value
Reproducing code example:

Sample code to reproduce the problem

# scikit-learn==0.22.1
# pandas == 1.0.3
# numpy == 1.18.4
# scipy == 1.4.1
# torch == 1.5.0a0
# python == 3.7.6
# matplotlib==3.2.2
# transformers==4.4.2

model8 = XGBClassifier(eval_metric="logloss")
model7 = LinearDiscriminantAnalysis()
models_list = {'Model_XGB': model8, 'Model_LDA': model7}

# cross_validation

cv_splitter = KFold(n_splits=10, shuffle=True, random_state=42)
features, s = get_flaubert_layer(features, lge_model)
#print(features)
for model_name, model in models_list.items():
print("Model name: {}".format(model_name))
print("------------cross val predict used----------------", "\n")
y_pred = cross_val_predict(model, features, ylabels, cv=cv_splitter, verbose=1)
accuracy_score_predict = accuracy_score(ylabels, y_pred)
print("accuracy with cross_val_predict :", accuracy_score_predict)

Error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  Loading pytorch-gpu/py3/1.5.0
  Loading requirement: gcc/8.3.1 cuda/10.1.2 nccl/2.5.6-2-cuda
    cudnn/10.1-v<IP_ADDRESS> intel-compilers/19.0.4 openmpi/4.0.1-cuda
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:    2.7s finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:    3.6s finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:    1.7s finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:  1.3min finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed: 15.6min finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:   47.8s finished
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
Traceback (most recent call last):
  File "training_for_multiclasse_classification.py", line 62, in <module>
    main()
  File "training_for_multiclasse_classification.py", line 44, in main
    dic_acc, dic_report, dic_cm, s = cross_validation(data_train, data_label_train, models_list, name, language_model_dir)
  File "../traitements/functions_for_training.py", line 58, in cross_validation
    y_pred = cross_val_predict(model, features, ylabels, cv=cv_splitter, verbose=1)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/sklearn/model_selection/_validation.py", line 755, in cross_val_predict
    for train, test in cv.split(X, y, groups))
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/parallel.py", line 1029, in __call__
    if self.dispatch_one_batch(iterator):
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/parallel.py", line 847, in dispatch_one_batch
    self._dispatch(tasks)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/parallel.py", line 765, in _dispatch
    job = self._backend.apply_async(batch, callback=cb)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/_parallel_backends.py", line 206, in apply_async
    result = ImmediateResult(func)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/_parallel_backends.py", line 570, in __init__
    self.results = batch()
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/parallel.py", line 253, in __call__
    for func, args, kwargs in self.items]
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/joblib/parallel.py", line 253, in <listcomp>
    for func, args, kwargs in self.items]
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/sklearn/model_selection/_validation.py", line 841, in _fit_and_predict
    estimator.fit(X_train, y_train, **fit_params)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/sklearn/discriminant_analysis.py", line 477, in fit
    self._solve_svd(X, y)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/sklearn/discriminant_analysis.py", line 396, in _solve_svd
    _, S, V = linalg.svd(X, full_matrices=0)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/scipy/linalg/decomp_svd.py", line 125, in svd
    compute_uv=compute_uv, full_matrices=full_matrices)
  File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.5.0/lib/python3.7/site-packages/scipy/linalg/lapack.py", line 806, in _compute_lwork
    ret = routine(*args, **kwargs)
ValueError: On entry to DGESDD parameter number 10 had an illegal value
srun: error: r6i7n6: task 0: Exited with exit code 1
srun: Terminating job step 221450.0

# X equal

[[ 0.  0. -0. ... -0. -0. -0.]
 [ 0. -0. -0. ... -0. -0. -0.]
 [ 0.  0.  0. ... -0. -0.  0.]
 ...
 [ 0. -0. -0. ... -0. -0. -0.]
 [ 0. -0. -0. ... -0. -0. -0.]
 [ 0.  0. -0. ... -0. -0. -0.]]

#### Scipy/Numpy/Python version information:
<!-- You can simply run the following and paste the result in a code block

import sys, scipy, numpy; print(scipy.version, numpy.version, sys.version_info)
-->
1.4.1 1.18.4 sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)

Hi @keloemma Could you please identify exactly the value that hits svd  on this line in the stacktrace?
_, S, V = linalg.svd(X, full_matrices=0)

Otherwise we don't know what happens internally inside the scikit-learn part and probably should be better suited for sklearn folks to have a look. Seems like at some point this X  becomes an empty array.

@ilayn  When printing X , I get an array of 0 elements. (see below)


Add A-Frame to JAVASCRIPT.md

A-Frame is a web framework for building virtual reality experiences.

@ngokevin Thanks!


node 18 is supported

'NODE|18' should be an option in the docs I believe?

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

ID: 84a23158-e322-4577-5dcc-de0c380dc186
Version Independent ID: 84a23158-e322-4577-5dcc-de0c380dc186
Content: AzureFunctionApp@1 - Azure Functions v1 task
Content Source: task-reference/azure-function-app-v1.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-tasks
GitHub Login: @steved0x
Microsoft Alias: sdanie

@noontz -- Steffen, thank you for your conjecture.
@steved0x -- Steve, please review this update in private PR 442.

@noontz The docs draw the list from the task source code, which is open source here:
https://github.com/microsoft/azure-pipelines-tasks/blob/20629d70d9d6c6c5c587682f5de204e5ba91c120/Tasks/AzureFunctionAppV1/task.json#L118
      "options": {
        "DOTNET|2.2": "DOTNET|2.2 (functionapp v2)",
        "DOTNET|3.1": "DOTNET|3.1 (functionapp v3)",
        "DOTNET|6.0": "DOTNET|6.0 (functionapp v4)",
        "JAVA|8": "JAVA|8 (functionapp v2/v3/v4)",
        "JAVA|11": "JAVA|11  (functionapp v3/v4)",
        "NODE|8": "NODE|8 (functionapp v2)",
        "NODE|10": "NODE|10 (functionapp v2/v3)",
        "NODE|12": "NODE|12 (functionapp v3)",
        "NODE|14": "NODE|14 (functionapp v3/v4)",
        "NODE|16": "NODE|16 (functionapp v4)",
        "PYTHON|3.6": "PYTHON|3.6 (functionapp v2/v3)",
        "PYTHON|3.7": "PYTHON|3.7 (functionapp v2/v3/v4)",
        "PYTHON|3.8": "PYTHON|3.8 (functionapp v3/v4)",
        "PYTHON|3.9": "PYTHON|3.9 (functionapp v3/v4)"
      },

I am filing an issue there:
https://github.com/microsoft/azure-pipelines-tasks/issues/19394
and if it is added, it will automatically reflect in the task docs. I am also adding a note in the article for that parameter, to emphasize that the list of allowed values is what is suggested in the task assistant for that task, but any value from the supported languages can be used, including NODE|18. This update will go live today.


Updates

Goals
Upgrade next and React
Remove theme-ui and use MUI as in other gov projects
Also removed public/docs which contained an outdated invision prototype that was no longer accessible
Comments

Could remove downshift and reuse Autocomplete from MUI
Could remove reach packages that were used for the Dialog
Not to deploy now as we have problems to deploy on CloudFoundry with nextjs > 11, let's wait until we change architecture, at the end of the year

@bprusinowski I have merged this branch into the next branch.
The updates on Next were not working on CloudFoundry but we will soon change environment.
This is why, I keep main without the updates in case we need to do hotfixes on main on CloudFoundry.
So next is the new main. main should receive bug fixes and other small fixes until we deploy on the new platform. Any fixes that are done on main should also be done on next.


TMIN > TMAX

There are certain data points where tmin is greater than tmax. As this is impossible, it should be investigated.

Example: https://meteostat.net/en/station/D2329?t=2022-02-01/2022-02-22

Fix implemented. Waiting for export jobs to confirm.

If data is coming from multiple sources, we need to perform QA checks on the result in Python. Example: https://meteostat.net/en/station/16252?t=2021-01-01/2021-01-31


Minecraft 1.8.x and e.g. 1.16.x in one network with the latest skungee ver.?

What you need help with
Hi,
how can I run multiple Minecraft servers in one bungeecord network with different minecraft versions (e.g. 1.8.x and 1.16) with skungee? I heard that you need java 8 to run a 1.8 mc server, but java 16 is required for the new skungee versions.
So is there a possibility to connect both servers with the new skungee version?
What you've tried so far
Specifications
Skungee Version: latest
Proxy Platform and Version:
System/Panel (if applicable):

yes the bungeecord version doesn't matter, it's all been the same api


Translate CronJob to Bahasa Indonesia

This PR addresses #13929

/assign @girikuncoro

@yohanesmario any update on this?

This got moved to #14933 which was merged, closing this


[Automation] Generate SDK based on TypeSpec

[Automation] Generate SDK based on TypeSpec

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


[Bug] Number of partitions metadata is not updated with replicated topics

Search before asking

[X] I searched in the issues and found nothing similar.

Version
2.10.2
Minimal reproduce step

Have 2 pulsar clusters in 2 different regions
Create a namespace and topic that is replicated in both regions with lets say 6 partitions;
Notice that when you create in one region the pulsar-admin does a PUT in the other replicated cluster region of the topic
Run the "pulsar-admin topics update-partitioned-topic" command and update in one of the clusters the topic to 12 partitions.
Notice that this also makes a PUT in the other cluster due to replication of the topic
Run the "pulsar-admin  namespaces topics" in both cluster and notice "topic-partition-0" - "topic-partition-11" created.
Run the "pulsar-admin topics get-partitioned-topic-metadata" in both cluster, notice that the one that you ran the command on displays 12, and the one that the command was replicated shows 6

What did you expect to see?
Both cluster after the update-partitioned-topic command should display the same number of partitions.
What did you see instead?
The cluster that the command was ran displays the correct number of partitions, but the one that had the PUT command does not.
Anything else?
Because consumers read from metadata, the first cluster replicates on all partitions, but on the other cluster the consumers only consume from the initial value the partitions, causing the brokers to have local backlog. You cannot run the same command in the other cluster because the topic-partitions have been created and you get a conflict exception. The only way to fix this is enter ZK and manually update the topic metadata to the new partition number.
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

It looks like #5306 added support for this use case. Perhaps there are certain conditions. @dciocirl do you see any errors in the logs when you update the number of partitions?

from the Slack discussion.  "the partitions are created in both clusters, the problem is the metadata is not updated in the remote one"
It looks like there's a gap in the solution provided by #5306 or it simply has broken after the addition since the test doesn't seem to validate that the metadata gets updated in the remote cluster after increasing the number of partitions.


CanvasShape renderer bug

I tried to use Nape with html5 and Nape ShapeDebuger draws this in Opera:

and in Firefox I got IndexSizeError: Index or size is negative or greater than the allowed amount with link to there https://github.com/openfl/openfl/blob/master/openfl/_internal/renderer/canvas/CanvasShape.hx#L52
How it looks with custom renderer:

I think problem not in Nape, because if I use custom renderer it looks like I want.
Sample here https://github.com/T1mL3arn/OpenFlCanvasShapeRenderBugDemo . First running simulation with custom renderer. After mouse click runs simulation with Nape debugger renderer.
Openfl 2.2.1

Does this work differently with the latest versions?

I updated dev builds for both Lime and OpenFl right now, and sample works the same way.

(Probably not directly related? But I am getting an "IndexSizeError: Index or size is negative or greater than the allowed amount" at lime_graphics_utils_ImageCanvasUtil.copyPixels(). I am trying to figure out which variable is considered bad, but haven't figured it out yet. I tried the same webapp on Firefox 39 and Chromium 43.0.2357.130, both on Ubuntu Linux 14.04 x86; OpenFL 3.1.2, Lime 2.4.8. With Chromium, all the graphics appear (it is a HaxePunk game). With FF, the background appears but the sprites do not. Oddly enough the stack trace shows it is trying to update the tilemap background, not a sprite, afacit.)

@raould your error should be fixed in the current dev version of lime

@ibilon thanks, I was now looking on OpenFL and saw other related things so I was removing it from here since I am not at all sure the root cause is the same as this issue here when I reconsider. I will try new Lime! Thanks.

The problem is actually with scrollRect property, But I could not fixed it :(

Couldn't reproduce the original issue anymore,
if there's a problem with scrollRect we'll monitor it in one of the already opened issues.

I updated Nape, FF, Opera, dev Lime and dev OpenFl and checked - the problem is still there. With one little exception - FF now works like Opera, and demoscene moves up instead down.

Sorry didn't realized there was two renderers, and indeed the non-custom one triggers a bug.

The lines are a bit faint, but it does work now in the current releases


Improvements in the edit page for Administrative unit

I think we should put this on hold until we have a design. I believe all the editing will move to a separate page. Maybe we can just disable the edit buttons in a different branch for now until the edit page is ready.

Can I move this to another page? The inputs will kind of be the same...


Improved emojis animation

( also added .header.json in template .gitignore )

This is brilliant!
It looks like this doesn't check if the name is "Untitled". It only checks substrings up until "Untitle".
Also, I bug I noticed from before is that the emoji doesn't reset when a new project is opened. It carries over from whatever it was before until the title is changed. Can we use this as an opportunity to fix this?

@ChaseMor i think i fixed your issues.


Feature request: add promise.with

I'd like to be able to pass some context object (e.g. a pre-initializer logger) along the promise chain.
Bluebird has a bind() method that does that.
I think implementing this would be rather simple, the question is how to make it work with Java syntax.
Closure-scope is not adequate here, as I want the same logger to be shared end-to-end and not only in the steps defined in current method.

Since this is a port of when.js the method in question should be this:
https://github.com/cujojs/when/blob/master/docs/api.md#promisewith

Thanks for the suggestion @naugtur, I haven't looked at when.js in quite a while.
Do either of you want to take a stab at adding Promise.with(thisArg)?

I'd be willing to try and implement this, but I'm not sure how to handle the fact that Java doesn't seem to have anything analogous to Function.apply() in JS
My first attempt to work around this involves adding methods accepting a BiFunction<T,C, ...>in addition to regular Function<T, ... >, I'm not sure if this is adequate though.
interface ContextualThenable<T, C>
        extends Thenable<T> {

    default <U> Thenable<U> then(BiFunction<T, C, ? extends Thenable<U>> onFulfilled) {
        return then(onFulfilled, null);
    }

    <U> Thenable<U> then(BiFunction<T, C, ? extends Thenable<U>> onFulfilled,
            BiFunction<Throwable, C, ? extends Thenable<U>> onRejected);
}

in simplest case you'd bind the context using this method:
interface Thenable<T> {
 //...
    <C> ContextualThenable<T, C> with(C context);


Not able to run the code DataTransfer.py on my data that are in .nii.gz format

I am not able to run the code DataTransfer.py on my data that are in .nii.gz format.
I have two folders with images and labels with same name.nii.gz
The code reads the png format or .nii format?
Please clarify my doubt on how to proceed with my data

Hello!Have you solved the problem?

Hello!Have you solved the problem?

No.

Hi, sorry for the late. The code in DataTransfer.py transfer the CT slices (PNG format) and its corresponding labels to an h5 file.  Since we receive that format as the input in our dataloader.


⚠ TROJAN 🇮🇩 Indonesia IDJ 1 has degraded performance

In 3fd9d5b, TROJAN 🇮🇩 Indonesia IDJ 1 (https://idt-1.opensvr.net/) experienced degraded performance:

HTTP code: 200
Response time: 19928 ms

Resolved: TROJAN 🇮🇩 Indonesia IDJ 1 performance has improved in a27c2ee.


feat(notifications): Implement query transmissions V2 API

Close: #3489
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.
What is the current behavior?

Issue Number: #3489
What is the new behavior?
Implement V2 Get /transmission/subscription/name/{name} API according to the doc https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/support-notifications/2.x#/default/get_transmission_subscription_name__name_
Does this PR introduce a breaking change?

[ ] Yes
[x] No

New Imports

[ ] Yes
[x] No

Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

Rebased.


Unit tests

We should verify serialized types against the "ground truth" using official test suite. Testing RLP serialization of a transaction seems like testing RLP again, but this seems to be necessary: Clarity defines Eth types and their serialization, and serde-rlp handles the serialization itself.
There are different kind of test suites delivered by Ethereum team - for transactions with known params, and for RLP itself.
We should leverage this test suite of transactions to verify correctness of our output.
Example transactions:
https://github.com/ethereum/tests/blob/69f55e8608126e6470c2888a5b344c93c1550f40/TransactionTests/ttEip155VitaliksEip158/Vitalik_12.json

Already used for serialization with various params.


Table statistics showing ... because the value doesn't fit

Description
Not sure if this applies for anything more than Sybase, but I've enabled Statistics so I can see the table sizes in my database.  On rare occasions, the Database Navigator will actually show me the size in text.  But the vast majority of the time I get 3 dots.  It seems as though the value is too big to fit the column in the interface because I can usually (not always) see the value if I hover over each one.  There is no obvious way to resize the statistics column to see them all at once.  Even if I resize the Database Navigator, the width of the statistics doesn't change proportionately.

DBeaver Version
Community Edition 22.3.2
Operating System
Windows 10
Database and driver
Sybase JDBC
Steps to reproduce
Enable Statistics
Under Database Navigator, look at the table listing under any database.
Additional context
No response

Hello @11thPlague,
The ... doesn't mean the value doesn't fit. It means that the statistics is currently loading.
Does this happen to all databases?

Did it happen once or it happen every time?

If it's currently loading, then why is it that I can sometimes hover over the field and see the value?
Yes, it happens to all databases.
Yes, it happens almost the time (about .5% of the time it actually shows values.  The other 99.5% it shows ...)
Yes, I have restarted dBeaver many times.  This has been happening for quite a while.

Thank you for bug report. We'll investigate your issue.

Thank you.  Here's a screen capture of it showing the value if I hover over the 3 dots, if it helps any.

It may help

Hello @11thPlague
What Sybase database version do you have?

We have Sybase ASE 15.7 and 16.0.  Happens on both versions across about 6 different servers.

Ok, probably my assumption about the working version was incorrect: https://github.com/dbeaver/dbeaver/issues/12992


[Bug] FAB "natural" dimensions is not correct, compared to Figma

Steps to reproduce

Add a FAB to a frame in figma, leave its dimensions to "Hug". Its natural dimension is 56x56
Generate a preview in the Uno Plugin
Observe the dimension took by the control is 64x64

Now it is better, however, the shadow / light direction is different:

? Sorry I don't understand ? What is the final measurement and is it the same?

@NVLudwig Iury is saying the direction of shadow cast is different between:

figma: // direction: straight down
and, the preview result (uno.material implementation): // direction: diagonal bottom-right

asking which is correct?

Exactly :) ! Thanks Xiao!
But Ludwig is seeing another considerable issue (which i wasn't mentioning):
Having shadows in our controls changes the "position" of them in relation to their parents.
We can see the button is not centered in the Frame 78 as we expect it to be, based on Figma document.
This happens everywhere. But if i`m not wrong it was already discussed in Themes/Toolkit project.

Ah Sorry I assumed the Plugin was taking the directions from the Figma file itself instead of a hard coded reference so the question made no sense to me, so I scrolled up and saw the issue was about the Size...
Anyways the answer is "straight down"

Elevation level 3 except when pressed Level 1

The fab buttons are the correct size. A simple way to see that is that a corner radius of 28 will make the default fab button perfectly round, and if you compare it to another control of the same size, the control does take 56 points of space. The problem is that the shadow is part of the dimensions taken when in .net, while it's excluded in the figma file. I'm not sure if there's anything we can do about that. @kazo0 @carldebilly


[WIP][AMDGPU] try rocm POC

Description
For benchmark purpose, I need to make sure FlashInfer compile and workable in AMD GPU platform, hence I ported the programs into AMD GPUs.
CPU : EPYC 9534
GPU :  MI30X (MI300X, MI308X)
ARCH : gfx942
Test
BUILD

cd build && cmake .. && make [TARGET]

Test & benchmark
** total test list (with benchmark) **
[] test_sum_all_reduce
[] test_attn_all_reduce
[x] test_fast_dequant (surpress FP8 tests, lets do it in the next PR)
[x] test_fast_div
[x] test_norm
[x] test_sampling
[] test_cascade
[x] test_page
[] test_single_prefill
[-] test_single_decode : TODO fix precision, probably wrong magic number and wave size
[] test_batch_prefill
[] test_batch_decode

test_norm

bench_norm:

test_fast_div

test_single_decode

Investigating ...

test_sampling:

bench_sampling:

full logs:
full_bench_sampling_log.txt

test_page

hence I ported the programs into AMD GPUs

Hi @yiakwy-xpu-ml-framework-team Nice work! Can the unit test run as expected? Recently, FlashInfer has started supporting JIT. This PR will likely need to wait for JIT support before it's reviewed.

ref https://github.com/flashinfer-ai/flashinfer/tree/main/python/tests

ref https://github.com/flashinfer-ai/flashinfer/tree/main/python/tests

@zhyncs Thanks for the quick review! I am tackling nvbench suites. tests and benchmark info will be added soon

@zhyncs test_norm and hip_cuda defs added. I guess there are more efforts to port other functions. 1, 2 days expected.
B.t.w, I found we have re-write many warpsync functions, this all ready defined in SDK, why do we rewrite them?
Currently I added some amd version to replace ptx version, do have we some better choices ? Write asm needs deep dive into MI300 ISA :
namespace amdgpu {

// ROCM exp c primitive, which computes 2^x in fp8/fp16/bf16/fp32
template<typename T>
__forceinline__ __device__ T exp2(T);

template<typename T>
__forceinline__ __device__ T log2(T);

template<typename T>
__forceinline__ __device__ T rcp(T);

template<typename T>
__forceinline__ __device__ T shfl_xor_sync(T, int);

template<typename T>
__forceinline__ __device__ T rsqrt(T);

// sepicalization

// TODO (yiakwy) : add equivalent asm version for fast exp computation (polynomial approx)
template<>
inline __device__ float exp2(float x) {
  return exp2f(x);
}

template<>
inline __device__ half exp2(half x) {
  return hexp2(x);
}

template<>
__forceinline__ __device__ float log2(float x) {
  return log2f(x);
}

template<>
inline __device__ half log2(half x) {
  return hlog2(x);
}

template<>
__forceinline__ __device__ float rcp(float x) {
  // TODO (yiakwy) : __frcp_rn is not supported in ROCM 6.2
  return 1.f / x;
}

// TODO (yiakwy) : verify; see details from here : https://rocm.docs.amd.com/projects/HIP/en/develop/reference/kernel_language.html
template<>
__forceinline__ __device__ float shfl_xor_sync(float x, int lane_mask) {
  // note AMD uses 8 byte mask (i.e. long datatype) to allow all 64 threads participate in
  // TODO (yiakyw) : SDK compatibility checking ...
  return __shfl_xor_sync(0xffffffffffffffff, x, lane_mask);
}

template<>
__forceinline__ __device__ half2 shfl_xor_sync(half2 x, int lane_mask) {
  // note AMD uses 8 byte mask (i.e. long datatype)
  return __shfl_xor_sync(0xffffffffffffffff, x, lane_mask);
}

template<>
__forceinline__ __device__ float rsqrt(float x) {
  return rsqrtf(x);
}

} // amdgpu

/*!
 * \brief Wrapper of PTX ex2.approx instruction, which computes 2^x
 * \param x input
 */
__forceinline__ __device__ float ptx_exp2(float x) {
  return amdgpu::exp2(x);
}

Sorry for the late reply, I'll take a look at this after #507 got merged.
@LeshengJin  @spectrometerHBH would you mind helping review this PR?

Thank you @yzh119 and hope this notes of the undergoing and future work useful for @LeshengJin @spectrometerHBH.
How to port the work without rewriting the fundaments
Flash attention ops runnable exist in several opensource repos for HPC and AI. Benchmark in H100 shows flashinfer has strong performance in fp8 and almost 10 percent improvement for fp16/bf16 implementation.
So instead of rewriting some ops with existing solution (not a opensource collabration), there must be some goodness we can learn and borrow from flashinfer authors.
So I wish some porting by reusing most of the flahinfer codes as a add-on feature (and I guess ROCm team don't have enough resources to maintain it as a private repo).
I illustrated with NV MMA instruction, there must be some assumption to hold so that the work can continue

Global to LDS (SMEM) can be resued (verified)
We only fucus on matrix fragment loading and computing
Swizzle impact accuracies and we will focus on accuracies first

SMEM layout when loading from global
I verified in a very simple case for
// kv_layout == 0
q : (1/*HEADS*/, {2,16}/*seqlens*/, 64 /*hidden size, 128 bit for half*/)
// assume q_heads == kv_heads and replicate the data
k : (1/*HEADS*/, {2,16}/*seqlens*/, 64 /*hidden size, 128 bit for half*/)
v : (1/*HEADS*/, {2,16}/*seqlens*/, 64 /*hidden size, 128 bit for half*/)

// this inputs produce 1x2x2 output for compute_qk function which can easily verified at first glance.

By digging into codes and add some test instruments, we found 16x64 (num_frags_x == 1) produced in SMEMS (kernel launch codes does not show directly how threads, smems mapped ) from global memroy.

The fragments is now decoded in this way

threads related offset handled in each computing blocks
warps half reduced (warp64_id_x , warp64_id_z), threads remapped to 16x4 layout

Flash attention pass thread private in different functions without storing to smem to synchronize, this should be really fast

but AMD v_mfma : a (columns major) x b (rows major) to accumulate output (rows major), that means when we compute s=qk, o=sv, we need to remap s from column major (4 registers) to row major.

Finally, MI300 has 8 XCDs, and they have no L2 cache to share with each other. So we need to make sure continuous fragments mapped to the same CUs.


Published New Content Doesn't Appear In prismicClient.getById(id) response

Versions

@prismicio/client:  6.7.1
node: 10.16.3

Reproduction
You can reproduce this by setting up an express server, an app.post('/my-webhook'... handler and then trying to retrieve the document with its updated content included.
Steps to reproduce

Setup Node server, using Express
Add a webhook handler
In Prismic's UI, add a webhook that tells your server when a new doc has been published.
The webhook will pass it the doc's ID
now call prismicClient.getByID(docId) and the content/changes you published in that document will not be there.

What is expected?
I expect the changes to be visible within the response so i can re-post them elsewhere, render them to a client etc.
What is actually happening?
The response comes through with the old state of the document.
My Code:
    app.post("/prismic-doc-published", async (req, res) => {

      const hasDocId =
        req.body.documents &&
        req.body.documents.length &&
        req.body.documents.length > 0;

         if (hasDocId) {
             const docId = req.body.documents[0]
             const doc = await prismicClient.getByID(docId)

          const n = doc.data.body[0].items.length - 1 // <-- index of most recent podcast episode added on Prismic's UI
          const specificEpisode = doc.data.body[0].items[i] // <-- specific episode's information (img, title, description, link)
          console.log("specificEpisode is ", specificEpisode) // <-- this is always coming through as the second most recent episode
    }

To get it to update and feed me the correct episode information I have to rebuild the node app, re-deploy and then it's the correct response.
Is this a cache setting in Prismic client? Or do i have to find some weird wonderful way of triggering a heroku build and deploy everytime i publish a new podcast episode?
Yours in hope! :) x

Hey there, thanks for opening an issue.
Can you confirm the issue is still happening using a supported version of Node (14 or greater)?

Closing as stale. Feel free to reopen if you'd like to continue troubleshooting this potential issue :)


Meta: Reorganize options page code (token validation)

Like #7831
Related to https://github.com/refined-github/refined-github/issues/6446#issuecomment-2346322573

Should be good to go, but I should check what else outside the options these changes affect


Switching images from GHCR to DockerHub

Description

Switching Docker images from GHCR to DockerHub because of call caching issues
Also fixing a task name typo

Related Issues

Fixes #5

Completed successful test run via PROOF. Minor change, so pushing through without review.


rxjs-5-to-6-migrate appends comma

It appends a comma after each refactored .pipe item:
),)
Like:
 .pipe(takeUntil(this.componentDestroyed$),)

This comma is valid syntactically. In case you prefer to not have it in your code base, you can use prettier or clang-format once you run the migrations.


Product Masquerading as Microsoft Corporation as Publisher

https://github.com/microsoft/winget-pkgs/blob/4e76aed0d59412f0be0ecfefabfa14b5df05bec4/manifests/z/zokugun/MrCode/<IP_ADDRESS>53/zokugun.MrCode.locale.en-US.yaml#L7C1-L7C33
MrCode has the publisher as "Microsoft Corporation" when there is no reference to being supported by or distributed by Microsoft.

I'll add a check to the PR Watcher to try to catch this in the future.


feat: CompileBuildDeploy command

Info
If a .sas file is selected and a CompileBuildDeployCommand is called, then a single file will be compiled, built, and deployed.
If a sasjsconfig.json file is selected and a CompileBuildDeployCommand is called, then the entire project will be compiled, built, and deployed.
Intent

Add CompileBuildDeploy command.

Implementation

Improved menu icons and command order.
Used compile, compileSingleFile, build, deployfunctions from@sasjs/clito createCompileBuildDeployCommand`.

Checks

[x] Code is formatted correctly (npm run lint:fix).
[x] Reviewer is assigned.

Could we also add a section in the README to explain to users how the compilation works?


Media queries

Can't seem to get them working, are there any examples of how to use it?

I use this and it works fine:
let styles = Css.(
  style([
    paddingBottom @@ em(1.0),
    textAlign(Center),
    media("only screen and (min-width: 53.125em)", [
      paddingBottom(zero),
    ]),
  ])
);

hmm, i just had
media("min-width: 53.125em", [
      paddingBottom(zero),
    ]),

and it wasnt working

Yes, it definitely needs parens, (min-width: 53.125em). Otherwise I don't think that it generates a valid media query.

gotcha


Reduce default idle timeout?

https://aws.amazon.com/about-aws/whats-new/2017/03/announcing-configure-read-timeout-and-keep-alive-timeout-values-for-your-amazon-cloudfront-custom-origins/
Cloudfront seems to default to 5 seconds. Might be safer for us to default to something like 2-3 seconds?
@mcollina @szmarczak Thoughts?

The keep-alive idle timeout value specifies the maximum amount of time that CloudFront will maintain an idle connection with a custom origin server before closing the connection. The default keep-alive idle timeout value is 5 seconds, but you can now configure a higher value up to 60 seconds.

Might not be a huge perf impact after https://github.com/mcollina/undici/pull/275. Assuming servers implement it. Also we might be able to keep the current default assuming https://github.com/mcollina/undici/pull/275 + servers with < 30s timeout provide a keep-alive hint.

Cloudflare:

Ensure HTTP Keep-Alive connections are enabled on your origin. Cloudflare reuses open TCP connections for up to 15 minutes (900 seconds) after the last HTTP request. Origin web servers close TCP connections if too many are open. HTTP Keep-Alive helps avoid premature reset of connections for requests proxied by Cloudflare.

Akamai has no upper bound. It's up to the origin.

Wow, that's a large difference in policy... though I think we might have to aim for worst case?
Or should we have some kind of lookup list for known CDNs?

Would be nice to have some kind of test urls to see whether or not they set the keep-alive header.

[Google Cloud uses 600s and you cannot change this.](The GFE uses a keepalive timeout of 600 seconds, and you cannot configure this.)

Might be safer for us to default to something like 2-3 seconds?

That's definitely not enough. IMO it should default to 60s at least... I mean it depends on how often you query the server. It's hard to say.

You can always override it... I think that by default we should be as compatible as possible. Within reason.
Seems like cloudfront is a bit of an edge case at the moment. Would be very interesting to see whether they provide keep-alive hints or not... haven't been able to find any test url.

Sad.
curl -vv --http1.1 https://d3h26nxsv4jv3l.cloudfront.net/image/320/two-yellow-labrador-retriever-puppies-1108099.jpg
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to d3h26nxsv4jv3l.cloudfront.net (<IP_ADDRESS>) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=*.cloudfront.net
*  start date: May 26 00:00:00 2020 GMT
*  expire date: Apr 21 12:00:00 2021 GMT
*  subjectAltName: host "d3h26nxsv4jv3l.cloudfront.net" matched cert's "*.cloudfront.net"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert Global CA G2
*  SSL certificate verify ok.
> GET /image/320/two-yellow-labrador-retriever-puppies-1108099.jpg HTTP/1.1
> Host: d3h26nxsv4jv3l.cloudfront.net
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: image/jpeg
< Content-Length: 11942
< Connection: keep-alive
< Date: Thu, 30 Jul 2020 13:02:30 GMT
< Last-Modified: Wed, 11 Mar 2020 03:25:28 GMT
< ETag: "5c26029979fa5f2f1ca8cb4077069141"
< x-amz-meta-original_key: two-yellow-labrador-retriever-puppies-1108099.jpg
< Accept-Ranges: bytes
< Server: AmazonS3
< X-Cache: Hit from cloudfront
< Via: 1.1 dfc0196c9ed9e207c1ca13a43e7783b8.cloudfront.net (CloudFront)
< X-Amz-Cf-Pop: ARN53
< X-Amz-Cf-Id: cV3h_KTS9GsDbtJnryx6bR-zbYxhvHz2wo-lnagwa_Jq22cyTi592Q==
< Age: 66
<

https://forums.aws.amazon.com/thread.jspa?threadID=325450

@szmarczak Actually, I think node also has 5s as default keepAliveTimeout...


Support building against simdjson v3.8.0

The latest simdjson release introduced support for detecting big integers. That broke our build with -Werror=switch, which we enable by default.
This also bumps the vendored simdjson to the latest version.

Superseded by #4026


OSError: [Errno 5] Input/output error while downloading large amount of files

Which service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of pip freeze.
I'm using the Azure CLI Version 2.0.47, that according to az --version uses version 2.2.2 of the az storage module. It comes with it's own version of Python and pip and libs. When I check the directory /opt/az I find package azure-storage-blob version 1.1.0.
What problem was encountered?
I'm running the following command to download about 1 TB worth of files from Blob storage to a local disk:
 az storage blob download-batch --max-connections=16 --source my-container --destination /my/local/disk
After some (long) time and copying half of the files, it crashes:
...
Finished[#############################################################]  100.0000%
Finished[#############################################################]  100.0000%
Finished[#############################################################]  100.0000%
Finished[#############################################################]  100.0000%
[Errno 5] Input/output error
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 197, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 366, in execute
    cmd.exception_handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 234, in new_handler
    handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 177, in handler
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 343, in execute
    result = cmd(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 182, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 436, in default_command_handler
    result = op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 151, in storage_blob_download_batch
    for blob_normed in blobs_to_download)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 151, in <genexpr>
    for blob_normed in blobs_to_download)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 124, in _download_blob
    progress_callback=progress_callback)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/baseblobservice.py", line 1872, in get_blob_to_path
    timeout)
OSError: [Errno 5] Input/output error

The Azure CLI does not handle the error. While mentioning the issue in the Azure CLI project I was asked to file the issue here (https://github.com/Azure/azure-cli/issues/7346#issuecomment-432975682).
Have you found a mitigation/solution?
I have used AzCopy instead.

Hi @marcelvb, thanks for reaching out!
I see that the exception was thrown from this line. I'd love to get a bit more information from you so that I can investigate further.
On which platform are you running Azure CLI? And what kind of disk are you downloading data to? Is it possible that the disk filled up?
Regardless of the reason, I believe Azure CLI can provide a much better experience if they caught the error and skipped the transfer rather than crashing. I've commented on the original thread. Thank you for bringing this issue to our attention.

It was running on a Ubuntu 16.04.3 LTS machine and writing to a big NAS via a CIFS (Samba) mount. It's very unlikely the disk was full, but there might have been a networking hick-up. My feeling says it was more likely to be a timeout on the source side. It might also have been a very large file (tens of gigabytes) that it was copying. Since the Azure CLI does not print which file it currently copying I have no way to know.
I agree the Azure CLI should catch such errors, continue with the next file and print which files went wrong (see also https://github.com/Azure/azure-cli/issues/6364).

Hi @marcelvb, thanks for the information.
Unfortunately, I think the error thrown was not a network error, nor did it come from the Storage Service. I searched for [Errno 5] Input/output error, and got the impression that it might be related to writing data to the destination NAS.
Is there a way to verify whether an IO error occurred with your CIFS mount? So that we can narrow down to the source of the problem. Please take a look at this. Thanks!

@marcelvb any update?


Generate table of contents

Is it possible to generate a table of contents? If so, could you point me in the right direction?

Google is your friend: 'python-docx table of contents'

cant believe I didn't see that one. Thank you!


Layout problem in privacy dashboard

What did I do

Visit a broken site, e.g. http://12321sdljfghashgf.com/
Open privacy dashboard

What did I see

What do I expect
No text overlap at the end of the dashboard
What did I use
iPhone XR with iOS 13.1.1
DuckDuckGo <IP_ADDRESS>

Thanks for reporting this.
Does this only happen in the error state (ie when it says "Uh-oh, that didn't work.") ?

Yes, it only happens in error state. Look like we will not enter this function to show/hide footer view when we are in error state.
I am preparing a patch to hide both gatheringView and scoresView in storyboard by default, such that the view will only be visible if above function is executed. How do you think about this patch?

Merged, thanks!


multicluster: Garbage-collect MulticlusterServices objects

This PR ensures that MulticlusterServices are cleaned-up when OSM is uninstalled from a cluster.
Signed-off-by: Delyan Raychev<EMAIL_ADDRESS>

Codecov Report

Merging #3823 (f3b37d0) into main (94394bd) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3823      +/-   ##
==========================================
+ Coverage   67.38%   67.53%   +0.14%
==========================================
  Files         198      198
  Lines       10978    10978
==========================================
+ Hits         7398     7414      +16
+ Misses       3531     3515      -16
  Partials       49       49

Flag
Coverage Δ

unittests
67.53% <ø> (+0.14%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/k8s/announcement_handlers.go
72.97% <0.00%> (-5.41%)
:arrow_down:

...icate/providers/certmanager/certificate_manager.go
86.61% <0.00%> (+0.70%)
:arrow_up:

pkg/crdconversion/crdconversion.go
59.78% <0.00%> (+18.47%)
:arrow_up:

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 94394bd...f3b37d0. Read the comment docs.


About the data for R

The data which is imported on R scripts is different from the one on the web service (wals.info). For example, it has more languages. Is it updated?
"https://cdstar.shh.mpg.de/bitstreams/EAEA0-7269-77E5-3E10-0/wals_dataset.cldf.zip"

Yes, WALS Online does get updated occassionally. It's best to access a particular version from here: https://github.com/cldf-datasets/wals/releases


loadImageSync return null

hello, guys.
why when i use "loadImageSync" , it returned null.
ImageLoader imageLoader = ImageLoader.getInstance();
Bitmap bitmap =  imageLoader.loadImageSync("http://thumb.dongtw.com/?width=240&height=180&url=http%3A%2F%2Fs2.imgs.cc%2Fimg%2Fjdr4HwY.jpg");
imageView.setImageBitmap(bitmap);
bitmap is null,

but when i use
imageLoader.displayImage("http://thumb.dongtw.com/?width=320&height=180&url=http%3A%2F%2Fs2.imgs.cc%2Fimg%2Fjdr4HwY.jpg", imageView);

it worked well. so why this happened, thx, :)

Same here. V1.9.3.
Calling:
bitmap = ImageLoader.getInstance().loadImageSync(iconUrl);
In an IntentService. The intent service is triggers due to an alarm.
The behaviour is inconsistent - sometimes I get the bitmap, sometimes I get null (it is hard to reproduce getting 'null', I mainly see users getting it in Google Analytics).

Same here on HTC One: Same image loads fine most of the time, but in about 10% cases, when I load multiple images in same async task one by one, it retuns null :
Bitmap image = ImageLoader.getInstance().loadImageSync(uri, mThumbImageSize, mDisplayImageOptions);
As mentioned, this code runs in AsyncTask.

Any news regarding this, or any workaround ? It keeps giving me problems, last reported device in production was Galaxy S3 Mini (GT-I8190) Android 4.1.2 (I8190XXANI4)
Should I just abandon using loadImageSync and stick with async version : loadImage ?

Same problem. I load files from assets ("assets://image.png"), so it seems it's not related to networking.

I am also facing the same problem.  I am calling loadImageSync in onCreate of an Activity. Please help.
Thanks

I find if I have a cache, loadImageSync will work.

I had the same issue as described here, i solved it by wrapping the loadImageSync method with a synchronized object.
I had a case where there is a chance the method was called from two different threads simultaneously. looks like it solved the problem.

NonViewAware getId from imageUri,when two task with the same url,it will cancel the old task and this method returns null.I have done some fix,and it work for me.
https://gist.github.com/eyyoung/418b81ddab5114041c52

same here with 1.9.5.. sometimes it returns null. running in an asynctask.
It looks like its a bug when the image has been used in an ImageAware before. I am loading it to an cache, then setting it to an ImageView.
The log looks like this
ImageAware is reused for another image. Task is cancelled. [file:///mnt/sdcard/Download/stuff/8.png_500x400]
even though i always use a call like this
ImageLoader.getInstance().loadImageSync("file://" + path, new ImageSize(aspectW, aspectH), options)
with display option
isplayImageOptions         options        = optionsBuilder.imageScaleType(ImageScaleType.NONE_SAFE).build();
and init options
ImageLoaderConfiguration.Builder c = new ImageLoaderConfiguration.Builder(context).denyCacheImageMultipleSizesInMemory()
                                                                                .diskCacheSize(32 * 1024 * 1024)
                                                                                .tasksProcessingOrder(QueueProcessingType.LIFO)
                                                                                .writeDebugLogs();


runtime-compute: ToX::compose is un-documented and not part of a trait

ToLong::compose and the likes could be part of a trait and documented in the trait rather than being introduced separately for each ToX interface. Traits also makes it easier to test.

The same goes for
default ToDouble<T> mapToDouble(FloatToDoubleFunction operator) {
        return MapperUtil.mapToDouble(this, operator);
    }

This method could extend HasMapToDouble like this:
/***
* JavaDocs here
**/
Expression<T> mapToDouble(Object operator);


Switch to blue-tape #32

Switch went easy.
Did not update test sources, since supertest/superagent do not support promises natively, as well as selenium sauce.

oops, that was supposed to be done for prod-module-boilerplate. Still good here :)


feat(cli): Add shorthanded option -A for --all-namespaces

Signed-off-by: makocchi-git<EMAIL_ADDRESS>kubectl's --all-namespaces has an shortened alias -A.
It would be nice if argo has the same alias.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[FEATURE REQUEST]  SLIDE DOWN FEATURE TO NAVBAR

Description
Is your feature request related to a problem? Please describe.
I want to add a Slide Down to the navbar on scrolling.
Describe the solution you'd like
Create a nav-bar div that will contain all the elements of the navbar and then provide the required CSS and JavaScript code to it. This will give an enhanced look to the homepage.
Describe alternatives you've considered
I would come up with an alternate solution but I am sure the solution I provided will surely work.
Additional Information
Context
I want to add a Slide Down to the navbar on Scrolling.
Screenshots or Mockups (optional)

Priority (optional)
Medium.

Please assign me this issue @akshitagupta15june

I don't understand what slide down feature do you want to add? Navbar moves with page so it is accessible.

https://github.com/akshitagupta15june/Moksh/assets/129873202/e94d9071-4465-449b-a9bf-1603d8af1136
I was talking about this feature, as when the website will open it will give alike full-screen view of the first page(containing buddha photo) and when a person will scroll down the navbar will be visible.

it was like that initially but was changed so that the links are visible when user visits the website.
Pl look for some other issues to contribute.


Feature Request: Non interactive watch mode

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Interactive watch mode
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
What is the expected behavior?
Having a non interactive watch mode
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

This doesn't make any sense.

This doesn't make any sense.

@cpojer Can you expand on that?
I found this issue while googling for the exact same thing. I'm running webpack and jest --watch from the same script and just want to see the tests results on change (without clearing the terminal) which is the behaviour I used before with karma/mocha. I could run jest in another terminal but that seems a bit silly

Run Jest without --watch then.

Yes, except it won't run on changes.
Basically what @wood1986 and I want (at least me) is the output of jest without --watch, ie printing the tests results but still re-run them automatically on change.

@cpojer another +1 with my explanation here. I use a process manager to start up all of the necessary processes for local dev for my project, including a ruby test runner (guard) and my js test runner (jest). While guard has a non-interactive mode that doesn't take over the whole console, jest doesn't play nice and wipes out my whole console, clearing the output from guard & others.

You can do CI=true jest --watch which removes colors and terminal clearing

@SimenB thanks! Any idea why CI=true behaves differently from --ci?

It makes this function return false: https://github.com/facebook/jest/blob/aff9681e397d38be96e0fa4bd6868ef50fe2fc77/packages/jest-util/src/is_interative.js, --ci is just for snapshots: https://github.com/facebook/jest/commit/e16431bd920b50b1318bb783df5f49100683afef


bpf: fib: annotate questionable ifindex usage for BPF-redirect

Callers of fib_do_redirect() need to tolerate that the FIB lookup doesn't return a valid egress interface ifindex, and provide a fallback ifindex: https://github.com/cilium/cilium/blob/4ffe587f5f70cedecee442aa27cb4b03b63c167e/bpf/lib/fib.h#L93
But some don't, or the value is questionable.

@borkmann @ldelossa fyi, think this is the easiest way to hash out what paths need a smarter oif fallback value.


Fix setting the space of a RigidBody.

Fixes #22823 crash, which SEGVed because it was dereferencing NULL.
Furthermore, should fix the warning, as now the constraints are moved from one space to the other.

Nice to see you around again @J08nY :)
Some style fixes needed: https://travis-ci.org/godotengine/godot/jobs/438383778
(You'll need clang-format 6+ for the current style guide.)

CC @AndreaCatania

Looks like we hadn't properly identified that this PR fixed #22538, which @AndreaCatania just fixed with #23430, so the first commit is no longer needed.
@AndreaCatania Could you review the second commit?

@J08nY Does the second commit actually fix #22823 (the warning part)?

@J08nY Does the second commit actually fix #22823 (the warning part)?

The warning is definitely not displayed then, the commit removes it and attempts to do the sensible thing instead of failing and warning. However I am not sure if what it does is actually a good solution to the problem as I don't understand the code that well. @AndreaCatania may comment?

I set that warning because I was unsure if Godot was managing the joint addition and removal.
This code doesn't solve the problem at 100%, because it's not possible restore joints in this way.
A bit more work is required.
I can be more detailed if you plan to work on it

Based on @AndreaCatania's comment, it seems this fix is incomplete, so closing. Further discussion should be in #22823.
Note that the crash fix mentioned in this PR has already been done separately as #23430.


ModuleNotFoundError: No module named 'animatediff'

Hi everyone,
Running Windows 10 x64, followed the instructions for python, I am getting:
(animatediff) C:\Apps\AnimateDiff\scripts>python -m animate --config configs\prompts\10-InitImageYoimiya.yml
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Apps\AnimateDiff\scripts\animate.py", line 15, in <module>
    from animatediff.models.unet import UNet3DConditionModel
ModuleNotFoundError: No module named 'animatediff'

Any help will be greatly appreciated! Thank you

Consider this closed please, I've overwritten the repo files when creating venv

Hello I run into the same problem now, can you tell me how you solved this?


add remote mixins

To be able to use shared lets configs we could introduce remote mixins
PoC would look like this
mixins:
 - lets.test.yaml
 - url: https://some.path.com/lets.lint.yaml
   version: v1

This will download this mixin in .lets dir and cache it
Thing to consider:

how to version remote url ?
do we need to use latest ?
how to force download or cleanup remote mixins ?
what if network is unavailable ? how long to wait ?
terminal progress UI for downloading (--upgrade command would benefit from it too)

mvp is in 49 version. Still a lot todo


Change block header parsing to relax version requirements.

#307 fails because one block has a bad version field. The spec says that the only defined version for Zcash blocks is 4; apparently this does not mean that the only allowed version is 4.  Per https://github.com/ZcashFoundation/zebra/issues/307#issuecomment-597287298 we should check that the high bit is unset and allow any random number to be included in the version field.  This seems like it makes the version field useless for actually controlling the block version.

The version field does have a modicum of constraint, specifically, nVersion >= +4:
https://github.com/zcash/zcash/blob/2a6be9fd197bf29f92d1ada748bc2dbd19c3040c/src/main.cpp#L3767-L3770
https://github.com/zcash/zcash/blob/63c3d1ec9435b445a883028b9111595ffa9292d4/src/consensus/consensus.h#L11-L12

This seems like it makes the version field useless for actually controlling the block version.

Correct! At best it can currently only indicate "standard interpretation".

not sure why this didn't get autoclosed


Missing subnets

The OneDrive client on MacOS is reaching out to hosts in the subnets: <IP_ADDRESS>/13 and <IP_ADDRESS>/8 but those subnets are not listed in the document.

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

ID: 66bd8666-3566-a901-b25b-eb6baba6264a
Version Independent ID: e9f6310f-2207-8c81-d31a-3d5a80beb26b
Content: Office 365 URLs and IP address ranges - Microsoft 365 Enterprise
Content Source: microsoft-365/enterprise/urls-and-ip-address-ranges.md
Service: microsoft-365-enterprise
GitHub Login: @kelleyvice-msft
Microsoft Alias: kvice

@kelleyvice-msft Please help us in resolving this issue. Thanks

@kelleyvice-msft @yogkumgit Any updates?


jobs.py workaround for Windows ps missing -o

This is the patch from 442 https://github.com/b-ryan/powerline-shell/issues/422
This has some extra detection in case ps is from Git for Windows
This seems to be the same version, but installed in another location.
Currently untested as I'm having some other issues with powerline shell under MING64/bash/mintty on windows.

Hi @b-ryan,
Is there any chance of this getting applied ?
Cheers
Stuart

Maybe you can test it with a workaround, see my comment in #452 :)

I just tested it by using the workaround and installing your branch, seems to work fine! No errors from ps anymore.

@b-ryan is it possible to merge the fix for PS under windows now there is confirmation it works ?

There might still be an issue. I realized jobs.py is for showing a segment with info about background processes, right? I currently don't have a real *nix system at hand to verify what it actually should do, and also the documentation doesn't show an example, but I think it might still be broken on MING64/bash/mintty, as it doesn't show anything special when I spawn a background process:

@b-ryan you might consider having collaborators, this project seems inactive for over 3 years.

Hey all, really sorry about the inactivity. I have not had time to maintain this and I'm happy to add collaborators. If anyone wants to help out, let me know.

I'm a contractor, so when I made this I was on a contract where I used Windows for a year.
Now I'm working somewhere else, I'm not using Windows so can't check it still works.   If someone else here is using this, then I'm happy for them to take this on, merge it and collaborate.

bump
This issue is still present and this PR fixes it I can confirm it just installed this patch.

If anyone else wants to update this + make their own PR feel free; I'm not really using windows much these days.

This change is working for me on windows along with adding export PYTHONENCODING="utf-8" to my .bashrc. I haven't tested on any other operating systems.


Inverter_test.py throws a syntax error at line 22 ??

Can not run it to verify if GoodWe SBP5000 will respond
Craig

What python version ?

2.7.15 throws the error at Line 22
3.6.6 throws error at line 21 - asyncio has not attribute run
Craig

aah - its OK - 3.8.1 fixed it
Also note for your list - the GoodWe SBP5000 (AC coupled storage) is not supported.
I suspected this was the case as The matrix from Goodwe shows that Modbus is only supported on RTU
Craig

Support for BP was added in v0.8.2


[BREAKINGCHANGE] Add interfaces for each chart type

This PR adds an interface that represents the schema for each type of panel (TimeSeriesChart, GaugeChart, StatChart, and MarkdownPanel).
The goal is to use these in the converter code.

I think your failed jobs might be related to the ongoing github incident. https://www.githubstatus.com/

I just hit a case where I'd appreciate these in the work I'm doing on table legend. Thanks for working on this! 😄

I just hit a case where I'd appreciate these in the work I'm doing on table legend. Thanks for working on this! 😄

Oh good to know, I got pulled away from this PR by the bugs I'm working on. If you want to, feel fully free to take this PR and change it around if you see a good direction for it
But also no pressure to do so. But just for your info, I probably won't get back to this until next week sometime. @juliepagano

I just hit a case where I'd appreciate these in the work I'm doing on table legend. Thanks for working on this! 😄

Oh good to know, I got pulled away from this PR by the bugs I'm working on. If you want to, feel fully free to take this PR and change it around if you see a good direction for it
But also no pressure to do so. But just for your info, I probably won't get back to this until next week sometime. @juliepagano

I have a few other side quests of my own around the storybook decorators and this isn't blocking me, so I'll probably wait until you get back to it next week unless it's urgent for anyone else.

@juliepagano @eunicorn Ready for re-review!
Thank you for taking a look, you helped me improve this change a lot because I realized that (1) we already have types called TimeSeriesChart, etc. (these types correspond to the plugins), and that (2) we want to extend the Definition interface in this case.
Given that, these new interfaces are more properly considered TimeSeriesChartDefinition, etc.


global: setup automatic updates and releases

This PR introduces two major changes: the update script and the Travis builds.
Update script
We use the lists from Making Data Count for distinguishing user agents that are either robots or machines. These lists are a manually curated division of the lists from Counter Robots. The problem is that the original list is updated more often than the manually curated one. To mitigate this we updated the update script to always use the latest “Counter Robots” version, and use the “Making Data Count” lists for curating the robots.txt.
Travis builds
Since we can automatically sync with the external libraries it is also nice to automatically release an updated version of the user-agents list. This is done by creating some additional build stages in Travis that can be used for automatically releasing updated versions.
This PR distinguishes three kinds of builds:

Regular build
Cron triggered build
Tagged build

Regular build
For the regular build nothing changes. It runs the tests for Python versions 2.7, 3.5 and 3.6.

Cron triggered build
We can set a cron build in Travis that triggers every month. This build will run the update_script. If changes are detected the build is tested and if this is successful the changes are committed, tagged and pushed. This will automatically cause a Tagged build.

Tagged build
A tagged build is like a regular build, but with an additional stage. If the test stage is successful a deploy stage will run that will create a deploy in pypi. This allows us to release builds manually, by tagging a release, or via the cron triggered builds.

Before merging
Before we merge this PR we must update the secret in .travis.yml. This should be set to the Github token that we have for Invenio i.e. GH_TOKEN=<token>.
After merging
After we have merged this PR we should enable a monthly cron build on the master branch. This will check monthly if there are any updates. If there are updates we will release a new version.
Closes: #7

@slint I have applied your suggested changes. I am not sure about your comment about the deploy, but maybe we can quickly discuss that offline.

@slint I squashed my changes. Please let me know if I messed up the format or anything. A gentle reminder that we need to change the secret in .travis.yml before merging.

@slint @lnielsen this is ready for merging as soon as we changed the GH_TOKEN in .travis.yml.

I'm changing the "update" Travis stage to do the git push ... via using GitHub deploy keys instead of the encrypted GitHub token.
The reason is that the GH token would have to belong to one of the inveniosoftware admins, and thus would have permissions to modify any repository (there's no way to limit the scope of a GH personal access token). Deploy keys provide write access on the repository-level, which is preferred (and doesn't also depend on an actual inveniosoftware org member).


Add libffi-dev

It looks like our install of ansible is pulling in a newer version of
paramiko that now expects ffi-related headers to be present

retest this please

retest this please

retest this please


restructure with standalone and integrated folders

Purpose

Restructure repo with standalone and integrated folders (as PR #249 but in one commit)
To-do

deletes duplicates PR after this is merged
Content

restructure

[x] I have read and checked the items on the review checklist.

Looks like CI passed. (in 1 commit)
Kat mentioned to double check that the docs look right and the buildkite tests produce plots that look correct compared to a successful previous run before merging.
hopefully we can merge today!

bors r+


Control with keyboard

Any plans on supporting keyboard navigation/control of the slider element?
Cheers

There is currently no such plan:pensive:.

👌 no stress, I might do a pr at one point. Feel free to close this

I would like suggest keyboard navigation but also consider accessibility for everyone. This would increase the usage audience, e.g government sites and other sites with hight accessibility requirements.
https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/slider/slider-1.html

@rickardd yep, that was also my motivation for wanting keyboard support 😄


Requesting Porn Only List

Using Unified hosts + porn, i find way too many false positives and its almost a full time job now to keep up with it. is it possible to create porn only list without the base Host?

What false positives are you getting?
You'll have to manually merge the two find here. https://github.com/StevenBlack/hosts/tree/master/extensions/porn

Thanks, i was able to easily create a new porn list and block it. The issue i am having is with amazon and aws sites getting blocked or pictures with in. If you have a android device, install amazon app and attempt to use it and you will see what i mean.

I do have an Android and do not have the problem you have.


Rule lifting rewrite

One regression test is failing due to not being able to derive (xor ?a (or ?b ?a)) <=> (and ?b (not ?a))
Still not exactly sure how/why we're losing that proving power. I'm looking into it, but I feel like it's still worth starting code review now

Further investigation suggests that scheduling is not the problem (91 seconds for Backoff, 95 seconds for SimpleScheduler). Maybe the new unioning scheme?


Featureinfo style

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 99.473%

Files with Coverage Reduction
New Missed Lines
%

src/modules/olMap/handler/draw/OlDrawHandler.js
1
98.23%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
10063

Relevant Lines:
10066

💛  - Coveralls


HUE-9467 [sqoop] [editor] Hue showing Sqoop command as running even when its finished

What changes were proposed in this pull request?
HUE-9467 [sqoop] [editor] Hue showing Sqoop command as running even when its finished
How was this patch tested?
Manually Tested for sqoop editor in Hue

@romainr  , Could you please review tis PR and approve if its good.

Nice one, thanks!


Native Histograms: support native_histogram_min_bucket_factor in scrape_config

fix #12864

@krajorama is on vacation already.
@fatsheep9146 what do you think about my comments? If you broadly agree, feel free to work on this. We can also discuss things when everyone is back from the holidays.

@krajorama is on vacation already.
@fatsheep9146 what do you think about my comments? If you broadly agree, feel free to work on this. We can also discuss things when everyone is back from the holidays.

I agree with your comments, I will continue working on this as you suggests!

I'll review this further once I'm back from Christmas vacations.

I'll review this further once I'm back from Christmas vacations.

Thanks!

Thank you very much.
Before doing a detailed review, let's make a call about two basic ideas:
1. Configure the feature via a factor rather than a schema.

2. Combine the two wrapped appenders into one to avoid calling `ReduceResolution` twice.

See comments for details. I hope both are feasible. @krajorama I would like your input on this, too.

I see the 2nd point is already settled.
About the 1st point , I'm torn.
Pro using factor:

independent of technical implementation, i.e. schema.

Con using factor:

We did use factor on client side , but only in the GO client and not the Java client. And OpenTelemetry doesn't have factor only the schema.
I feel the min  in the name can be a bit misleading as generally limits are max. And if the desired user outcome is to limit the storage, it's more natural to talk about max of something.

We might actually consider dropping factor (deprecate) in the GO client lib. Let's discuss on the next sync meeting.

Thank you very much.
Before doing a detailed review, let's make a call about two basic ideas:
1. Configure the feature via a factor rather than a schema.

2. Combine the two wrapped appenders into one to avoid calling `ReduceResolution` twice.

See comments for details. I hope both are feasible. @krajorama I would like your input on this, too.

I see the 2nd point is already settled. About the 1st point , I'm torn.
Pro using factor:
* independent of technical implementation, i.e. schema.

Con using factor:
* We did use factor on client side , but only in the GO client and not the [Java client](https://prometheus.github.io/client_java/api/io/prometheus/metrics/core/metrics/Histogram.Builder.html#nativeInitialSchema(int)). And OpenTelemetry doesn't have factor only the schema.

* I feel the **min**  in the name can be a bit misleading as generally limits are **max**. And if the desired user outcome is to limit the storage, it's more natural to talk about **max** of something.

We might actually consider dropping factor (deprecate) in the GO client lib. Let's discuss on the next sync meeting.

Discussed in weekly meeting: conclusion is to use the factor, but documentation for this parameter should include a conversion table from factor to schema/scale .  Schema for people familiar with Prometheus and scale for people familiar with OpenTelemetry.

1.00271

Thanks for your patient review, I already adjust the doc as you suggested @beorn7

Thank you very much. Looks beautiful now.


python3Packages.flask-appbuilder: unbreak

ZHF: #122042

bumped prison from 0.1.2 to 0.1.3
included patch from upstream PR: https://github.com/dpgaspar/Flask-AppBuilder/pull/1610 (modified)
limited the restrictions set in postPatch a bit more, to prevent accidental future breakages

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 122330 at 725cdef3 run on x86_64-linux 1

1 package failed to build:

apache-airflow

4 packages built successfully:

python38Packages.flask-appbuilder
python38Packages.prison
python39Packages.flask-appbuilder
python39Packages.prison

3 suggestions:

warning: unused-argument
Unused argument: nose.
Near pkgs/development/python-modules/flask-appbuilder/default.nix:4:3:
  |
4 | , nose
  |   ^

warning: missing-patch-comment
Consider adding a comment explaining the purpose of this patch on the line preceeding.
Near pkgs/development/python-modules/flask-appbuilder/default.nix:37:15:
   |
37 |   patches = [ ./flask-jwt-extended-4.1-compat.patch ];
   |               ^

warning: python-include-tests
Consider adding a checkPhase for tests, or if not feasible, pythonImportsCheck.
Near pkgs/development/python-modules/flask-appbuilder/default.nix:74:0:
   |
74 |     description = "Simple and rapid application development framework, built on top of Flask";
   | ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

nixpkgs-review happy for me, nixos x86_64 & macos 10.15

patch removed

Result of nixpkgs-review pr 122330 run on x86_64-linux 1

1 package failed to build:

apache-airflow

4 packages built:

python38Packages.flask-appbuilder
python38Packages.prison
python39Packages.flask-appbuilder
python39Packages.prison


olmod.sh fails to run when called with absolute path

Scenario: run olmod.sh with an absolute path:
$ ~/.local/share/Steam/steamapps/common/Overload/olmod.sh
Expected behavior:
OLMod runs
Actual behavior:
OLMod fails to launch with the error: ~/.local/share/Steam/steamapps/common/Overload/olmod.sh: 13: exec: ./Overload.x86_64: not found
The issue appears to be that $OLDIR = . rather than the absolute path to the script.
I discovered this issue when I tried to create a .desktop file to launch olmod.sh

Do any Mac users also have this issue? @ammojamo @tonykambo @sjackso  I don't have a Mac to test on, and I would imagine just by reading the script that this problem should also occur there as well.

@sjackso just tested this for me, so I'm going to merge the PR and then also make the same change for Mac.  Expect this to land in v0.3.2!

That PR fixed certain uses but would break in situations where olmod is installed on a separate path than overload itself.  I will submit a PR for a more general fix.

Sounds good, I don't have Overload on these systems, so let me know and I'll add it.


Can't connect to local MySQL server

Hi there,
I have successfully run the image and log says that everything is ok, but when I try to connect to MySQL server by using the command "mysql -udmin -p" it shows ERROR 2002 (HY000): Can't connect to local MySQL server through socker '/var/run/mysqld/mysqld.sock' (2).
Is there anyone who knows this problem?
Many thanks for the response!

you have to specify the ip address of the mysql container, like <IP_ADDRESS>. Otherwise you will connect to the unix socket by default, which is not exist.

Hi @tifayuki
Can you tell me how exactly to specify the ip address of the mysql container? Because usually we use 'docker -d -P' to make the container run in background and no need to modify the ip address.
Thanks

Ok,  I solved this problem by using the command ' mysql -uadmin  -h  -p' and it works well.


Grouped results merged for multiple series

What I need to do is to get results from multiple series with group option merged into a single serie:
SELECT MAX(value) AS max FROM /^response_times.service_1.*/ WHERE time > now() - 1d GROUP BY time(6h)

Result:
response_times.service_1.pl.warsaw.dc1
time  max
2015-07-19T00:00:00Z  942
2015-07-20T00:00:00Z  949
2015-07-21T00:00:00Z  888
response_times.service_1.us.new-york.dc3
time  max
2015-07-19T00:00:00Z  993
2015-07-20T00:00:00Z  873
2015-07-21T00:00:00Z  917

Desired feature result:
/^response_times.service_1.*/
time  max
2015-07-19T00:00:00Z  1935
2015-07-20T00:00:00Z  1822
2015-07-21T00:00:00Z  1805

The data schema provided is not canonical for InfluxDB. The measurement should be response_times and descriptors like service and dc should be included as tags. Then the query would be
SELECT MAX(value) AS max FROM response_times WHERE service = 1 AND time > now() - 1d GROUP BY time(6h)

Also, check out the Graphite plugin.

Thanks a lot, I need to migrate my data to 0.9 supported schema then.


Expose currentBreakpoint via global property?

Started using this today and it's fantastic 👏 thank you 🙏. The only problem I ran into was not being able to access the current breakpoint outside a component, vuex in our case. What are you thoughts on exposing currentBreakpoint via a global property?

@samit4me you could do something like this:
import Vue from 'vue'
import VueMq from 'vue-mq'
import {
  convertBreakpointsToMediaQueries,
  subscribeToMediaQuery,
} from 'vue-mq/src/helpers'
import breakpoints from '~/breakpoints'

const mq = {
  current: 'sm',
}

const mediaQueries = convertBreakpointsToMediaQueries(breakpoints)

Object.entries(mediaQueries).forEach(([currentMq, mediaQuery]) => {
  const enter = () => {
    mq.current = currentMq
  }
  subscribeToMediaQuery(mediaQuery, enter)
})

Vue.use(VueMq, {
  breakpoints,
  defaultBreakpoint: 'sm', // customize this for SSR
})

export default mq

Thanks @cj 👍


[BUG] TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' with setuptools 71.x

setuptools version
71.0.4
Python version
3.12
OS
macOS
Additional environment information
This is only happening since setuptools 71.0.0.
Description
I tried installing my setup.py based project (https://github.com/zhmcclient/zhmccli) from the checked-out repo clone and setuptools failed as follows:
$ python -m pip install --upgrade --upgrade-strategy eager -e .
Obtaining file:///Users/maiera/Projects/zhmcclient/repos/zhmccli
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      running egg_info
      creating /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info
      writing /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/dependency_links.txt
      writing entry points to /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/entry_points.txt
      writing requirements to /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/requires.txt
      writing top-level names to /private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/top_level.txt
      writing manifest file '/private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/lh/v0_07k9d7dbfqdytfzzxks3r0000gn/T/pip-pip-egg-info-bknai7ob/zhmccli.egg-info/SOURCES.txt'
      adding license file 'LICENSE'
      adding license file 'AUTHORS.md'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/Users/maiera/Projects/zhmcclient/repos/zhmccli/setup.py", line 81, in <module>
          setuptools.setup(
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
          self.run_command(cmd)
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/dist.py", line 956, in run_command
          super().run_command(command)
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 310, in run
          self.find_sources()
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 318, in find_sources
          mm.run()
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 544, in run
          self.prune_file_list()
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 610, in prune_file_list
          base_dir = self.distribution.get_fullname()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_core_metadata.py", line 266, in get_fullname
          return _distribution_fullname(self.get_name(), self.get_version())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/maiera/virtualenvs/zhmccli312/lib/python3.12/site-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
          canonicalize_version(version, strip_trailing_zero=False),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I took a closer look and found:

The error shows up only since setuptools 71.0.0
Upgrading the "packaging" package from 21.3 to 24.1 (latest) solved the error. It turns out that packaging 22.0 is the first version solving the error.

The reason I had "packaging" 21.3 installed is because some tools used in the development environment for the project (installed with make develop) used it. The dev-requirements.txt file of the project meanwhile specifies packaging>=23.2, but the virtual env was still from an earlier state of the project.
The problem is that "setuptools" seems to have a soft dependency on "packaging": It does not require it to be installed, but when it is installed it is used, e.g in its _core_metadata.py file. So "setuptools" ended up not specifying it in its package dependencies, but when it is installed, it still needs a certain minimum version, which is not ensured to be present because the package is not specified in the dependencies.
That puts the burden on the users to make sure that "packaging" when needed by other tools, has the required minimum version needed by "setuptools". Not a good situation.
Expected behavior
When "setuptools" uses "packaging" and does not specify it as a dependency, it should to make sure that it works with all versions of "packaging" that can be installed on the given Python version.
There are of course several alternatives to using "packaging" without specifying it as a dependency (vendoring it, specifying it as a dependency, not using it).
How to Reproduce

Have a fresh virtualenv based Python 3.12 environment. It initially has:Package    Version
---------- -------
pip        24.1.2
setuptools 70.0.0
wheel      0.43.0

Clone https://github.com/zhmcclient/zhmccli and cd into its main directory
run python -m pip install --upgrade --upgrade-strategy eager -e .
This works fine.
After this, "setuptools" is still at 70.0.0 and "packaging" is not installed.
This shows that "setuptools" 70.0.0 works without "packaging".
run pip install setuptools==71.0.4
After this, "packaging" is still not installed because "setuptools" does not specify it as a dependency.
run python -m pip install --upgrade --upgrade-strategy eager -e .
This works fine and shows that "setuptools" 71.0.4 works without "packaging".
run pip install packaging==21.3
After this, "packaging" is at 21.3 and "setuptools" is still at 71.0.4.
run python -m pip install --upgrade --upgrade-strategy eager -e .
This fails as shown above, since "packaging" is below the version needed by "setuptools".
run pip install packaging==22.0
run python -m pip install --upgrade --upgrade-strategy eager -e .
This works fine again, since "packaging" is now at the version needed by "setuptools".

Output
The output is long, and the relevant output from the failure is shown in the description above.

Update: After opening this issue, I found that the closed issue #4483 describes the same problem.
I have to say though that the answer "this is intentionally by design" does not satisfy me at all.
How can you use another package, not specify it as a dependency, and then let your users figure out that they have to specify a certain minimum version of another package whose use is not even documented? In a package like setuptools that everybody has to use?

Please feel free to rephrase your question in light of the context in the duplicate issue (if it's still relevant in that context).


chapter 1 section 5 edits. mostly reductions.

It's "handwritten", not "hand-written". Hyphenation rules are complex and maddening. Sorry, man; I didn't do it.
Did you mean "my algorithm" or "my implementation of the algorithm"? It seemed like the first, hence "bespoke" rather than "handwritten" in the end anyway.
No "here is an outline of the book chapters". Just give the outline. People know what an outline looks like.
It's "open source", not "open-source". Mwahahahaha kill me.
Eliminate "* Chapter 1 is an introduction that you're reading right now.". https://stuff.mit.edu/people/dpolicar/writing/prose/text/titleOfTheStory.html

No "here is an outline of the book chapters". Just give the outline. People know what an outline looks like.

I will not fight in this case.
But in general, I don't mind repeating things as long as it makes my point clear. Yes, some people are very good at reading between the lines. But not all. If they already understand what they're reading, they will easily swallow that sentence, I don't see a problem here.
Since this is a deeply technical book, I would rather make sure readers spend their mental capacity on the material rather than trying to figure out what I was trying to say.
Again, I'm not talking about this particular case. In this case, I agree with your changes. I rather wanted to share my way of thinking.


fortune: 3.2.0 -> 3.4.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/fortune-mod/versions.
meta.description for fortune is: "A program that displays a pseudorandom message from a database of quotations"
meta.homepage for fortune is: ""
meta.changelog for fortune is: ""
Updates performed

Version update

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

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.4.1 with grep in /nix/store/zj62s9n87vsww561vzwkb5676v75jv9a-fortune-mod-3.4.1

directory tree listing: https://gist.github.com/2042bdd840c4e5425c4c86da928c55fd

du listing: https://gist.github.com/85c6df6b46ae70d5df69a00cea29c485

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

12 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
ding
fortune
gtypist
xcowsay

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/zj62s9n87vsww561vzwkb5676v75jv9a-fortune-mod-3.4.1 \
  --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 fortune https://github.com/r-ryantm/nixpkgs/archive/26f1edbb21059b4e2913cb806984dca5ac632f48.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/zj62s9n87vsww561vzwkb5676v75jv9a-fortune-mod-3.4.1
ls -la /nix/store/zj62s9n87vsww561vzwkb5676v75jv9a-fortune-mod-3.4.1/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 1

4 packages built:

ding
fortune
gtypist
xcowsay

Maintainer pings
cc @Vonfry for testing.

LGTM


make the edge of always on top look better when the edge is thin (Windows11)

Description of the new feature / enhancement
currently when it is thin, it does not look pretty (the radius of the corner of the edge is too small):

Scenario when this would be used?
anytime using always on top
Supporting information
No response

I'm thinking the radius is the same, not accounting for the thickness. Should be an easy fix.

and when the thickness is set to 1px to 3px, there is an area between the corner of the window and the corner of the edge

I think the corner of the edge of AoT and the corner of the edge of the window should use the same center of circle

Something configuration wise is off.  What build of PowerToys are you on?  For me this looks correct in 0.60.1 and i'm on Windows Insider build 25145.  Wondering if some type of scaling or something.
Here is the corner of Edge.  You should see white bleed through like yours but it hugs correctly.

/needinfo /reportbug

The other oddity is the X for closing has jaggied near the top, something is weird.  The first screenshot i can't see anything that seems off, the second shot i can but like i said, i can't repro this.

I'm on powertoys 0.60.1 and on windows11 stable build 22000
PowerToysReport_2022-07-20-09-35-04.zip

The first screenshot i can't see anything that seems off,

I just meant that it doesn’t look pretty.

The other oddity is the X for closing has jaggied near the top, something is weird

this is the settings window of powertoys

The other oddity is the X for closing has jaggied near the top, something is weird.

Maybe it is just because of the screenshot tool, I cannot see that on my screen, but in the screenshot.

and when the thickness is set to 1px to 3px, there is an area between the corner of the window and the corner of the edge

I'm getting this too, happy to provide my bug report zip if needed. Bit harder to see on mine due to the colours but definitely there.

Aside from the radius, we should also bump the minimum thickness from 0 to 1.

@SeraphimaZykova ~Looks like~ the display scaling (aka dpi) isn't correctly calculated for the actual radius. Notice this on my SP4 when changing from (default) 200% to 100% (with 1px thickness)

Using zero == switching the border to off

I didn't realize that.

I found there's also something black and jaggy in the corner.

@SeraphimaZykova I realise it's low prio, but think this is an easy fix? [dpi-aware radius; min-thinkness; centralized/outward]

@SeraphimaZykova I love the way it is now! 😄


Pipenv requirements bugfix

Removes use of the now-removed flag --keep-outdated on pipenv lock.  See pipenv 2023.7.9 release notes.
Rather than re-generating or potentially updating a user's Pipenv.lock file, it'll go straight into trying to build the requirements file.
The pre-existing behavior was that if the Pipfile.lock file was missing, that the plugin will generate one.  Since this is likely undesireable, added a warning log message pointing a user to the Pipenv documenation on how to address it.
Also updates github-actions test matrix to include the before/after of this pipenv behavior change.
Resolves issue #779

Thanks for fixing this - I starting running into it today.
I forked your branch and ran the Validate GH action: https://github.com/rwestergren/serverless-python-requirements/actions/runs/5579741623/jobs/10195698425
Looks like the prettier check will fail.

Thanks for fixing this - I starting running into it today.
I forked your branch and ran the Validate GH action: https://github.com/rwestergren/serverless-python-requirements/actions/runs/5579741623/jobs/10195698425
Looks like the prettier check will fail.

Ah! Good catch!  I ran the prettify:updated command and pushed.  Thanks @rwestergren!

@rwestergren I ran the validate workflow in my account to fix the remaining issues on commitlint, and things are now passing.  I appreciate the heads-up.

@pgrzesik I appreciate you taking a look!
My understanding is that pipenv lock --keep-outdated simply generated a Pipfile.lock file based on what's installed in the virtual environment but without updating to the latest versions allowed by the Pipfile definitions.  To even have such an environment setup, the dev will have needed to have run pipenv sync which depends on the existence of the Pipenv.lock file or pipenv install which generates a Pipfile.lock or updates an existing one.
To me, it seems like the pipenv lock --keep-outdated is a wasted step on any version where pipenv requirements exists, and it feels like it was only kept here because the old command pattern used to be pipenv lock --requirements --keep-outdated in order to generate the requirements.txt file, and somebody was adhering to the Chesterton's fence principle in implementing the new way.
In this implementation, I'm following the Pipenv project's expectations that there will be a Pipfile.lock existing alongside the Pipfile, though added a warning just in case we don't see the expected files, and pointing a user to the Pipenv docs.  We will see two potential benefits:

The current pipenv lock --keep-outdated command outputs the below error, indicating to me that we could potentially have been packaging slightly different versions than what is described by the lock file.  Hopefully this change makes packaging more predictable.

"The flag --keep-outdated has been deprecated for removal.  The flag does not respect package resolver results and leads to inconsistent lock files.  Consider using the new pipenv upgrade command to selectively upgrade packages"

Removing the pipenv lock --keep-outdated operation prior to running pipenv requirements will also increase the speed of packaging with the same or possibly more predictable results.

The pipenv requirements command was implemented in v2022.4.8, and this file branches behavior on versions <=2022.8.5, so perhaps we're already supporting the older pipenv versions, anyway?


Dataset module dev

Add support to download and read Indonesian NLP datasets with zero additional deps.
TODO

[ ] Make a list information of opensource Indonesian NLP datasets
[x] Making module to download dataset
[ ] Making module to extract dataset if needed
[ ] Making reader functions of supported dataset
[ ] Making testing script

Codecov Report

Merging #2 (1b3306f) into master (43f5073) will decrease coverage by 73.98%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##            master       #2       +/-   ##
============================================
- Coverage   100.00%   26.01%   -73.99%
============================================
  Files            6       11        +5
  Lines           77      296      +219
============================================
  Hits            77       77
- Misses           0      219      +219

Flag
Coverage Δ

unittests
26.01% <0.00%> (-73.99%)
:arrow_down:

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

Impacted Files
Coverage Δ

indoNLP/dataset/__init__.py
0.00% <0.00%> (ø)

indoNLP/dataset/downloader.py
0.00% <0.00%> (ø)

indoNLP/dataset/list.py
0.00% <0.00%> (ø)

indoNLP/dataset/reader.py
0.00% <0.00%> (ø)

indoNLP/dataset/utils.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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