LDAP - Duplicated users info

Hello,
In one of my Serenity projects where I have LDAP enabled, some users reported that they were having issues when login in.
This is the screenshot I received:

When I checked the database, I found duplicated records for those 3 users that reported the issues:

I have blurred the display name and email columns, but as you can see in the username column, they are the same users that for some reason were created multiple times. Any hint on why this happened?

Don't know maybe there was some space at the end?

There is no space in the username nor the displayname nor the email. Could it be that the organization is using 2 ADs that are sync from time to time? I am not familiar on how AD works internally but I know they use AD replication. In any case, do you have any suggestion on where in the code I can add a validation to avoid this to happen again? Thanks

You may put a unique constraint in DB to username col

Closed due inactivity
Also check the issue guidelines.
If you still need help, you can ask this on stackoverflow with our new tag.
https://stackoverflow.com/tags/serenity-platform


add license

When creating the repository we missed adding the Apache v2.0 license as most github.com/containers projects have.
Fixes: #49
@rhatdan PTAL

LGTM


Carthage support

is a support carthage planned?

I forked the latest repo and added Carthage support right here

@Arcanfel awesome, could you submit a pull request to this repo?
Maybe @Vaberer will accept and merge it.

Thanks for the contribution! Will update version on readme and it's working


typo 5Ã?Â®) should be 5(R)

typo 5Ã?Â®) should be 5(R)

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


Extend functions set_at and push_back to have a non-NULL pointer precondition

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The hanging CBMC check is unrelated to this PR, so I'm just going to merge it.


⚠ Bofrost.fr has degraded performance

In 304da45, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1049 ms

Resolved: Bofrost.fr performance has improved in 984d975.


Change title on action bar for each fragment.

The action bar now displays the title of the fragment opened instead of a common title for all fragments. Fixes issue #170 .

Superseded by #172


Random seeds in training

Hi,
We found that the random seed in the PVIC code fixes the first test result, but subsequent training results produce variations. Here is what happens when the same code is run twice.
Namespace(alpha=0.5, aux_loss=True, backbone='resnet101', batch_size=16, bbox_loss_coef=5, box_score_thresh=0.05, cache=False, clip_max_norm=0.1, data_root='./hicodet', dataset='hicodet', dec_layers=6, detector='base', device='cuda', dilation=False, dim_feedforward=2048, dropout=0.1, enc_layers=6, eos_coef=0.1, epochs=30, eval=False, gamma=0.1, giou_loss_coef=2, hidden_dim=256, kv_src='C5', lr_drop=20, lr_drop_factor=0.2, lr_head=0.0001, max_instances=15, min_instances=3, nheads=8, num_queries=100, num_workers=2, output_dir='outputs/dub', partitions=['train2015', 'test2015'], port='1234', position_embedding='sine', pre_norm=False, pretrained='checkpoints/detr-r101-hicodet.pth', print_interval=100, raw_lambda=2.8, repr_dim=384, resume='', sanity=False, seed=140, set_cost_bbox=5, set_cost_class=1, set_cost_giou=2, triplet_dec_layers=2, triplet_enc_layers=1, use_wandb=False, weight_decay=0.0001, world_size=2)
Rank 1: Load weights for the object detector from checkpoints/detr-r101-hicodet.pth
=> Rank 1: PViC randomly initialised.
Rank 0: Load weights for the object detector from checkpoints/detr-r101-hicodet.pth
=> Rank 0: PViC randomly initialised.
Epoch 0 =>	mAP: 0.1483, rare: 0.1011, none-rare: 0.1624.

Namespace(alpha=0.5, aux_loss=True, backbone='resnet101', batch_size=16, bbox_loss_coef=5, box_score_thresh=0.05, cache=False, clip_max_norm=0.1, data_root='./hicodet', dataset='hicodet', dec_layers=6, detector='base', device='cuda', dilation=False, dim_feedforward=2048, dropout=0.1, enc_layers=6, eos_coef=0.1, epochs=30, eval=False, gamma=0.1, giou_loss_coef=2, hidden_dim=256, kv_src='C5', lr_drop=20, lr_drop_factor=0.2, lr_head=0.0001, max_instances=15, min_instances=3, nheads=8, num_queries=100, num_workers=2, output_dir='outputs/dub', partitions=['train2015', 'test2015'], port='1234', position_embedding='sine', pre_norm=False, pretrained='checkpoints/detr-r101-hicodet.pth', print_interval=100, raw_lambda=2.8, repr_dim=384, resume='', sanity=False, seed=140, set_cost_bbox=5, set_cost_class=1, set_cost_giou=2, triplet_dec_layers=2, triplet_enc_layers=1, use_wandb=False, weight_decay=0.0001, world_size=2)
Rank 1: Load weights for the object detector from checkpoints/detr-r101-hicodet.pth
=> Rank 1: PViC randomly initialised.
Rank 0: Load weights for the object detector from checkpoints/detr-r101-hicodet.pth
=> Rank 0: PViC randomly initialised.
Epoch 0 =>	mAP: 0.1483, rare: 0.1011, none-rare: 0.1624.

Hi @yaoyaosanqi,
There is some randomness in the optimiser as well.
The model at the start of training always yields the same performance because the randomly initialised parameters are determined by the seed. In the training, however, there are other things that could also introduce randomness. You can refer to this PyTorch page for more details.
Cheers,
Fred.

Has PVIC encountered this issue before?  We're trying to understand the source of this randomness.  Is it due to PVIC or the modifications we made to the model？

It's always been like this.

As I recall, UPT is completely reproducible. So it's weird PVIC. Thankfully, its performance fluctuates very little. Thank you very much for your guidance.


error:failed adding attribute TEXCOORD_0

t75.zip

t75.zip contains test files

@sui0312feng glTF Validator reports a lot of errors for this model. Is it possible to fix those and try again?
This seems to be the most relevant error:
            {
                "code": "MESH_PRIMITIVE_UNEQUAL_ACCESSOR_COUNT",
                "message": "All accessors of the same primitive must have the same count.",
                "severity": 0,
                "pointer": "/meshes/0/primitives/1/attributes/TEXCOORD_0"
            },


Add patch to use docker_tag file to fetch Kubernetes source version

Fixes the error
Failed to build Kubernetes: open /tmp/k8s-tar-extract-3032161630/kubernetes/version: no such file or directory
ERROR: error building node image: failed to build kubernetes: open /tmp/k8s-tar-extract-3032161630/kubernetes/version: no such file or directory

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


enable get the 'mathematical' gradient of output w.r.t neural network parameters

In some situation, it is necessary to get the 'mathematical' gradient of output w.r.t neural network parameters.
For example, suppose I have a neural network out = f(s), where s is a batch of input with shape[None, dim_s], while out is a scaler, f is simply a MLP. With tf.gradient(out, tf.trainable_variables()) I can get gradient of out w.r.t neural network parameters of f, which is a list of gradient. Now, I have two different batch of s: s1 and s2, then we can get two different the above gradients G1 and G2. It seems that it is impossible to compute cosine between G1 and G2 using current tensorflow? Do I need to flatten both gradients first? Do G1 and G2 are the usual gradient in math?

It's really difficult to follow what you are asking. TensorFlow computes gradients w.r.t. to scalar functions. I.e. usually you do tf.gradients on a loss which is a scalar (and if there is a batch, it will be some reduction across that batch too). If you give it a vector function it implicitly sums it first.   I'd suggest you setup an example with concrete things and make sure it is giving what you expect.

Hi, @aselle Thanks. I have changed problem to scaler output to simplifier statement.
An example:
import tensorflow as tf
import numpy as np

batch_1=np.random.normal(0,1, [2, 3])
batch_2=np.random.normal(0,1, [2, 3])
x = tf.placeholder(tf.float32, shape=(None, 3))

predictions = tf.layers.dense(x, 4, tf.tanh,
                              kernel_initializer=tf.random_normal_initializer(
                                  stddev=np.sqrt(1 / 100)))

opt = tf.train.GradientDescentOptimizer(learning_rate=0.01)
gradient_step = opt.compute_gradients(predictions, tf.trainable_variables())

sess=tf.Session()
sess.run(tf.global_variables_initializer())
gradients_1 = sess.run(gradient_step, feed_dict={x: batch_1})
gradients_2 = sess.run(gradient_step, feed_dict={x: batch_1})

Then both gradients_1 and gradients_2 will look something like:

[(array([[-0.24431723, -0.25037131, -0.24526665, -0.25040874],
[-1.04525471, -1.03707826, -1.04750621, -1.04078865],
[ 1.6583091 ,  1.62776244,  1.6609472 ,  1.63547981]], dtype=float32), array([[-0.11156642, -0.04291356, -0.11599004,  0.12397685],
[-0.06834391, -0.00486498, -0.14670192, -0.01094443],
[ 0.04650469, -0.14726   , -0.10059511,  0.12041415]], dtype=float32)), (array([ 1.98409033,  1.96457601,  1.98815179,  1.97203505], dtype=float32), array([ 0.,  0.,  0.,  0.], dtype=float32))]

with shape as following:

gradients_1[0][0].shape
(3, 4)
gradients_1[0][1].shape
(3, 4)
gradients_1[1][0].shape
(4,)
gradients_1[1][1].shape
(4,)

Given the gradient is of such kind of shape, I think there is a gap between tensorflow gradient and the usual mathematical gradient(which usually is a vector or matrix), so it makes some applications, such as compute the cosine between gradients_1 and gradients_2 seems intractable.

Hi, @Erichliu00 .
You build the function: prediction = y = tanh(w x + b) and calculate gradients as
gradient_step = opt.compute_gradients(predictions, tf.trainable_variables())

here tf.trainable_variables() is [w, b], so we get: dy / dw and dy / db, the corresponding shapes are (3, 1) and (1,). I think everything works well.
Since you mentioned usual mathematical gradient, I guess that you might expect dy / dx, like:
import tensorflow as tf
import numpy as np

batch_1=np.random.normal(0,1, [2, 3])
batch_2=np.random.normal(0,1, [2, 3])
x = tf.placeholder(tf.float32, shape=(None, 3))

predictions = tf.layers.dense(x, 1, tf.tanh,
                              kernel_initializer=tf.random_normal_initializer(
                                  stddev=np.sqrt(1 / 100)))

grad_by_x = tf.gradients(predictions, x)[0]

with tf.Session() as sess:
    sess.run(tf.global_variables_initializer())
    gradients_1 = sess.run(grad_by_x, feed_dict={x: batch_1})
    gradients_2 = sess.run(grad_by_x, feed_dict={x: batch_2})
    print("gradients_1: shape: {}, value:\n{}".format(gradients_1.shape, gradients_1))
    print("gradients_2: shape: {}, value:\n{}".format(gradients_2.shape, gradients_2))

~/Downloads ❯❯❯ python test.py
gradients_1: shape: (2, 3), value:
[[-0.00683434  0.2317003  -0.04384441]
 [-0.0068151   0.23104796 -0.04372097]]
gradients_2: shape: (2, 3), value:
[[-0.00593388  0.20117244 -0.03806766]
 [-0.00684012  0.23189643 -0.04388152]]

I wish the explanation could be useful.

Hi @facaiy , thanks.  Indeed I want to get the gradient of output predictions  w.r.t neural network parameters tf.trainable_variables , however, my concern is that tf.trainable_variables  will contains some variables with shape like 3x2 then the gradient w.r.t such variable denoted as g1 and g2 will be of the same shape 3x2, then my concerns are: 1. are the gradient g1 and g2 averaged over batch input or summed over batch, mathematically, seems we should get a averaged gradient. 2  how can we compute cosine between g1 and g2 given their shapes are not a vector.
import tensorflow as tf
import numpy as np

batch_1=np.random.normal(0,1, [2, 3])
batch_2=np.random.normal(0,1, [2, 3])
x = tf.placeholder(tf.float32, shape=(None, 3))

out = tf.layers.dense(x, 2, tf.tanh,
                              kernel_initializer=tf.random_normal_initializer(
                                  stddev=np.sqrt(1 / 100)))
predictions = tf.layers.dense(out, 1, tf.tanh,
                              kernel_initializer=tf.random_normal_initializer(
                                  stddev=np.sqrt(1 / 100)))

opt = tf.train.GradientDescentOptimizer(learning_rate=0.01)
gradient_step = opt.compute_gradients(predictions, tf.trainable_variables())

sess=tf.Session()
sess.run(tf.global_variables_initializer())
gradients_1 = sess.run(gradient_step, feed_dict={x: batch_1})
gradients_2 = sess.run(gradient_step, feed_dict={x: batch_2})

gradients_1 and gradients_2 are the same shape. So just multiply them elementwise and sum the elements. You want to see if the gradients agree in direction i.e. the cosine, right? That should work, but perhaps you could give more background on what you are trying to accomplish. I think you might want to ask on Stack Overflow, as this seems to be more of a usage question rather than a bug in tensorflow.

Yes, I want to see if the gradients agree in direction.

Sure, so just do
sum([np.dot(i,j) for i,j in zip(gradients_1, gradients_2)])

and that will be the cosine. The point is tf.gradients gives you an array entry for the gradient with respect to each discrete variable instead of a flattened one, because the optimizer needs to apply the gradients to each object in turn. .

Hi @aselle , thanks, you are right, I should consider gradient of each variable to compute cosine and also should not expect a flatten gradient since variable has shape that is not flattened.  However, I still believe that if gradient is not the usual flattened gradient, then some computation may not applicable.
For example, suppose we have a neural network parameter x with shape [2,4], then the gradient of output scaler w.r.t it is of the same shape [2,4], then given four different batches of input, we can have four values of x, say x0,x1,x2,x3= np.random.normal(0,1, [2,4]),  how can we compute the variance of x given four observations?


Minor edits

Reference Issues/PRs
What does this implement/fix? Explain your changes.

README.md updated

Any other comments?

@sadrasabouri Please review this PR 💯
If everything is okay, Squash and Merge it after approval


Update README.md

Minor corrections and rewording

What this PR does / why we need it:
Corrects readme for rewording of instructions.
Special notes for your reviewer:
None
Release note:

NONE

/retest

Thanks for submitting this @ashish-billore

/approve
/lgtm


unable to upload files

How can i upload my person PDF files to test this? When I go to the upload feature, it is asking me for a password

@mehul-jethva -  For the test website we have disabled (or kept it password protected) as lot of documents were uploading and I was running everything of my subscription.  You should be able to chat to the uploaded document though.


Support iteration over enum values

I've been working on a plugin-like switch for some time. It's a pleasure that someone has done it - thank you.
If you could support iterating over enum values, it would be super cool.
I mean replacing Month.JANUARY with Month.FEBRUARY and so on.
It would allow creating some clever mappings and filling when/switch branches utilizing Vim macro.

That's an interesting use case. I assume this would require relying on language plugins (e.g. https://plugins.jetbrains.com/plugin/6954-kotlin) to identify enums and their values, right? Let me look into it.

I just took a quick & dirty stab at it (see this branch: https://github.com/jphalip/ideavim-switch/tree/enums) and got it to work with this Kotlin example:
enum class Direction {
    NORTH, SOUTH, EAST, WEST
}

val value = Direction.SOUTH

Would you like to take it for a spin?

I'll build it locally and test it for a few days and text back. Alas, I can't help with the code as I have no experience with PSI. However, I can tell you need to declare optional dependencies for each language for it to work in all IDEs, and load some classes depending on whether Kotlin, Java, or other supported languages are used. You can find a guide on how to do this here -
https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#optional-plugin-dependencies


Use release and getOrCreateChan multiple times

In NewSourceTube and NewSinkTube, both getOrCreateChan and release are called, which can result in each topic being "GET" twice and "release" twice，such as :

The log looks normal. The internal chan will only be closed when the current_use_count reaches to 0 during the release.


A must-have feature is missing: "scroll to index" for ListView and SliverList

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
The problem
There is no way to scroll a ListView or SliverList to a specific item when the height is not fixed.
I have been working on four different Flutter projects since 2020, and in each of them, I was required to use the scrollable_positioned_list.
In 2023, this package is still the only way to use scrollToIndex method, with a following list of problems:

You can't use your ScrollController. There is ItemScrollController with a private ScrollController inside, and there is no way to access it.
You can only scroll and align by an item's top edge, and there is no way to align by a bottom edge.
If you need to scroll to the latest item, it will either lead to an undesired animation (having alignment 0 - top edge of the item to the top edge of a viewport), or you'll end up writing a function to calc a proper alignment.
You can't use some packages that only works with ListView (f.e. 'pull_to_refresh')
You will have to fork and modify it, because it's not a production-ready solution.

Why is it important?
A lot of developers are coming to Flutter from native, where scroll to index is a part of a standard library, and it's not required to install a third-party packages.
Example on iOS
Example on Android
Example on React Native
Similar issues
https://github.com/flutter/flutter/issues/123187
https://github.com/flutter/flutter/issues/119491
https://github.com/flutter/flutter/issues/81005
https://github.com/flutter/flutter/issues/71742
Proposal
The solution
Add scrollToIndex feature as a part of standard library, for ListView and SliverList.
Add an argument to select alignment by leading edge or trailing edge

👍

I made a package that supports scrollToIndex feature for ListView, SliverList, GridView, SliverGrid and third-party ScrollView widget.
Hope this can help you before the Flutter team supports the feature.
Repo: scrollview_observer

@vizakenjack
A similar request was made in this old issue https://github.com/flutter/flutter/issues/12319 for which the solution was to use scrollable_positioned_list as you mentioned along with limitations.
Have you also looked at community packages other than above which offers the feature already ? Like https://pub.dev/packages/indexed_list_view and https://github.com/quire-io/scroll-to-index
Also see if this article is helpful in your case or not.
For sliverlist, see if https://github.com/flutter/flutter/issues/81005#issuecomment-999942723 is helpful or not.

@darshankawar yes, I have tried other packages.
ScrollToIndex had serious performance issues, so I didnt use it.
IndexedListView is a similar to scrollable positioned list, with same issues - without an access to ScrollController, and without bottom edge alignment. It's also not maintained - the last update was in 2021.
My proposal is that "scroll to index" should be a part of core library, like in Native. It takes a lot of time when you have to find and try other packages just to solve one single problem

Thanks for the feedback @vizakenjack
How about https://github.com/flutter/flutter/issues/130262#issuecomment-1629930197 ?

Thanks for the update and feedback. There have been similar issues for the feature requests:
https://github.com/flutter/flutter/issues/12319
https://github.com/flutter/flutter/issues/81005

Duplicate of https://github.com/flutter/flutter/issues/81005.


[xstate-wallet] Add favicon

Would be nice if MetaMask popup showed state channels logo instead of the ( L ) placeholder:

I believe it gets the logo from the site's favicon (see e.g. web3torrent).

This would be especially nice for production.

Via #1768


[suggest]Remove isSameAs instead of Item.id

Issue

close N/A

Overview (Required)
com.xwray.groupie.Item.isSameAs is this code.
    /**
     * Whether two item objects represent the same underlying data when compared using DiffUtil,
     * even if there has been a change in that data.
     *

     * The default implementation compares both view type and id.
     */
    public boolean isSameAs(Item other) {
        if (getLayout() != other.getLayout()) {
            return false;
        }
        return getId() == other.getId();
    }

getLayout() != other.getLayout() result is same as other is HogeItem result.
So I delete that methods.
And, getId() is following.
    private static AtomicLong ID_COUNTER = new AtomicLong(0);
    private final long id;

    public Item() {
        this(ID_COUNTER.decrementAndGet());
    }

    protected Item(long id) {
        this.id = id;
    }

    /**
     * If you don't specify an id, this id is an auto-generated unique negative integer for each Item (the less
     * likely to conflict with your model IDs.)
     *

     * You may prefer to override it with the ID of a model object, for example the primary key of
     * an object from a database that it represents.
     *
     * @return A unique id
     */
    public long getId() {
        return id;
    }

Therefore, I add unique id.
(If we don't use a same layout, we don't request the uniqueness.)
Links

Item.java

Screenshot

see #684

Can you merge from master for fxing CI?

Thanks!
Now merge it!

Sorry, I was overlooked DividerItem class.


First Spawn World - Not Spout - Likely A Plugin Mishandling OnJoin

I'm writing this here because honestly I'm not sure what is causing the issue anymore.
I removed Spout as recommended, but the problem persists. I discovered, by removing player files from the default world, that players who have already logged into the server are being moved properly to the first spawn world. However, entirely new players who have never logged in still are not.
Some plugin somewhere must be mishandling OnJoinEvent and cancelling it when a new player is found. My guess for possible culprits is either WorldInventories or Towny Advanced. Perhaps you can test it better than I am able to.
Full plugin list:
Appleseed, Backup, BananaSky, Bandages, CFBanner, CleanroomGenerator, Curseban, GravelClay, Help, iConomy, LavaFurnace, Lockette, LogBlockQuestioner, MagicCarpet, mcbans, MCSL, MegaCatch, RemoteToolkitPlugin, MinequeryPlus, MultiHome, Multiverse-Core, Multiverse-NetherPortals, Multiverse-Portals, NoCheat, NSCommand, OpenInv, PermissionsEx, Questioner, RawcriticsOreObfuscationPlugin, SlowHealth, SupplySign, TeleportSuite, V10climb, Vault, War, WorldEdit, WorldGuard, WorldInventories, WorldModes, xWarp, CommandBook, Modifyworld, Permissions, BookWorm, ChestShop, DeathTpPlus, DispNameChanger, Dynmap-Towny, dynmap, ecoCreature, Jobs, LogBlock, mChatSuite, mcMMO, MonsterHunt, Register, Towny, TownyChat, WorldBorder

I am also having an issue with respawning in the proper world (when a different respawn world is set); not sure if this is related.

I updated to new release versions of Towny (3 plugins), DeathTpPlus, and the newest dev versions of WorldInventories, WorldGuard, WorldEdit, and CommandBook. This has fixed the issue with world respawns failing.
Whether or not it fixed the primary issue (new players not going to the defined first spawn world) is still TBD.

I'm not positive what the issue was but a recent update or removal must have corrected the initial issue!  The plugins updated were: ChestShop, mcMMO, OpenInv, DeathTpPlus, NoCheat, MagicCarpet, and dynmap.
In addition (and I believe it may have been the true culprit) I removed NSCommand, which was an old, no longer used support plugin (which was also quite out of date!)
Now I just need to verify if the PvP settings area also now fixed.


Add the README

To continue: https://github.com/jcasbin/kafka-casbin/issues/1

@seriouszyx plz work on this issue in some future time

@seriouszyx


Fix nits on TPC-C Large page

Summary of changes:

Fix 140k results formatting

Fix a mismatch between the GC TTL setting and its prose description

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/d6280d2b06b6830338f13f3f3f59f944ce4e80ac/
Edited pages:

v20.2/performance-benchmarking-with-tpcc-large.md


[Gally]: master <- dev

Automatically created by Git-Ally

:tada: This PR is included in version 1.10.57 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update docker entrypoint with exact cert path

The previous fix to this file dynamically found the Python version, but assumed the rest of the path to the certificate.
This patch uses the python3 -m certifi command which returns the exact path of the certifi cacert.pem file.  This will
be resilient through Python version changes.
Co-Authored-By: James Petersen<EMAIL_ADDRESS>Co-Authored-By: Vijay Pillai<EMAIL_ADDRESS>Signed-off-by: Ryan Brady<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>)(, fixes #<issue_number, ...) format, will close the issue when PR is merged: fixes #:
Special notes:

PR in enterprise: https://github.com/anchore/enterprise/pull/645


[Fix-16046][SqlTask] Fix Sql task use time type is incorrect

Purpose of the pull request
If SQL specifies a user-defined parameter of the TIME type, set it to the java.sql.Time type when setting the PreparedStatement parameter.
SQL使用自定义参数为TIME类型，设置PreparedStatement执行参数时，会设置为java.sql.Time，原来是String类型。

Brief change log

change set PreparedStatement to org.apache.dolphinscheduler.plugin.task.api.utils.ParameterUtils .
修改ParameterUtils.setInParameter方法设置DataType类型为TIME，设置为java.sql.Time。
Verify this pull request

Codecov Report
Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 40.60%.

Files
Patch %
Lines

...cheduler/plugin/task/api/utils/ParameterUtils.java
0.00%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #16050      +/-   ##
============================================
- Coverage     40.60%   40.60%   -0.01%
+ Complexity     5220     5219       -1
============================================
  Files          1381     1381
  Lines         46078    46045      -33
  Branches       4917     4893      -24
============================================
- Hits          18711    18695      -16
+ Misses        25442    25424      -18
- Partials       1925     1926       +1

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

Please link this pr to your issue. @yinxiaolog


Reproduce (I have no idea how I'm supposed to write this):

Run python.exe
Import scipy.linalg or anything from it
Press Ctrl+C

Example:
C:\Windows>python
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> #press Ctrl+C
KeyboardInterrupt
>>> import numpy.linalg
>>> #press Ctrl+C
KeyboardInterrupt
>>> import scipy.linalg
>>> #press Ctrl+C

C:\Windows>python
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.linalg
>>> while 1: pass #press Ctrl+C
...
forrtl: error (200): program aborting due to control-C event
Image              PC        Routine            Line        Source
kernel32.dll       766E33AA  Unknown               Unknown  Unknown
ntdll.dll          76F59F72  Unknown               Unknown  Unknown
ntdll.dll          76F59F45  Unknown               Unknown  Unknown

C:\Windows>

P.S.: I'm now using numpy.linalg instead.

Closing as issue is related to python 3.3, which is quite old.


Use less any types

I shouldn't use that much any types, what is wrong with me...

With apollo-codegen I can generate the typings based on the schema automatically; that would be the cleanest solution.

Note to self; resources used:
https://gist.github.com/adamkl/27539b3a8129f23e3576bfc37b3ea235
https://github.com/avantcredit/gql2ts
https://github.com/dotansimha/graphql-code-generator
https://www.npmjs.com/package/graphql-typescript-definitions


DRAGMFACT_PATCH with DRAGCFACT? :)

I haven't tried this and dunno if it works or not, cuz lately I'm exhausted from all the patch testing in here, need a break, but had an idea that if it's not already possible, that it could be a good idea, to have a patch that works with DRAGMFACT + DRAGCFACT, eg so that you can drag CFACTS with your mouse as well :)
btw: Glad I'm keeping you busy :D

wrong repo :D


Consider supporting precompilation

Wow, finally a wrapper for DuckDB!
There is a discussion about precompiling SQLite for Exqlite, maybe this could be also useful here?

https://github.com/elixir-sqlite/exqlite/issues/230

I think so, thanks I'll take a look

@mindreframer precompilation was added in https://github.com/elixir-sqlite/exqlite/pull/234

@warmwaffles Thanks, I'll take a look!

The build and release workflow changes a little bit.

Drop tag on main branch v1.2.3.
Wait for the precompilation build to finish.
Run mix elixir_make.checksum --all.
Run mix hex.publish

Precompiling for macOS and Linux is ready, v0.2.0, thanks to all! :)
Windows is not precompiled yet, so let's leave the issue open, until i fix the win precompilation in v0.2.1

@AlexR2D2 Thank you! I've tried it, works like magic! No compilation step, Duckdb immediately usable. Very nice.
I've noticed, that the embedded Duckdb code is not up-to-date, the DB that was created by Duckdbex is not directly loadable by the latest CLI (0.7.0):
Error: unable to open database "exis_movies.duckdb": IO Error: Trying to read a database file with version number 41, but we can only read version 43.
The database file was created with an older development version of DuckDB.

The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
The storage will be stabilized when version 1.0 releases.
For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.

That's actually a PITA, that Duckdb does not provide backwards compatibility yet. Maybe we can provide some inspectable information, like:
iex> Duckdbex.info()
%{duckdb_verion: "0.6.0"}

I've tried to parse this information from Duckdb PRAGMA, but it looks strange:
$ iex -S mix
iex(1)> {:ok, db} = Duckdbex.open("exis_movies.duckdb")
{:ok, #Reference<0.2058083995.1741291542.83541>}
iex(2)> {:ok, conn} = Duckdbex.connection(db)
{:ok, #Reference<0.2058083995.1741291542.83548>}
iex(3)> {:ok, res} = Duckdbex.query(conn, "PRAGMA version;")
{:ok, #Reference<0.2058083995.1741291542.83549>}
iex(4)> Duckdbex.fetch_all(res)
[["v0.1.1-dev436", "2fd5e0d925"]]
iex(5)>

Just some basic usability feedback. Maybe it makes sense to create another issue for this.

Yes, [until DuckDB in the development](The DuckDB internal storage format is currently in flux,) the backward compatibility is not supported.
I will try to update DuckDB source up to 0.7.0 and may be add something to get the the version of library and the DB ver itself. So yes, it would be great to create new issues just not to forget about this.

Done here: https://github.com/AlexR2D2/duckdbex/issues/5

Closing, since it's implemented.


Iterable population

Population class extended to provide list-like iteration over neurons, len and [] access.
The load_population function has been merged into load_neurons and removed.
A deprecated alias is kept in the neurom.ezy module for backwards compatibility.

Why did we decide to deprecate load_population and not load_neurons. As far as I am concerned I have only been using load_population and not load_neurons. @chalimou that might also concern you.

seems fine to me

@lidakanari It is a somewhat arbitrary choice. To me load_populationrequires explaining what "population" means in this context. Since it is a just glorified collection of neurons, load_neurons seemed like the simpler choice. If this is a problem I can leave a deprecated version in the fst module too.

No, I don't think it is very important. It is just biologically counter - intuitive. Neurons seems like a list of cells, while we actually want  (and for my understanding that's what we have) a collection of neurons on which we can perform operations as they were one entity.

I can swap it around, and keep load_population, and deprecate load_neurons, if you think that is clearer.

To me it is a bit more clear to have a population, but if there is a strong preference for neurons, I wouldn't mind using either. In any case, I think that for clarity it would be useful to document exactly what we mean by either "neurons" or "population".

OK, I kept load_neurons, but added a load_population symbol to the fst module with a deprecation warning.

OK, we can check with other users which one is better and eventually keep the one that most of the ppl are using. Thanks!

@romani79 This might be interesting for you.


gitignore - [merged]

In GitLab by @erdzan on Apr 2, 2020, 18:32
Merges noHttps -> master

In GitLab by @erdzan on Apr 2, 2020, 18:32
merged

In GitLab by @erdzan on Apr 2, 2020, 18:32
mentioned in commit 4c02011542abb1ec9ed4a69a608e0a0ac4abd2c7


Thumbnail Error - unable to download documents #4

Describe the bug
We are unable to access the documents or images in the ticket. The services are giving us a "Thumbnail error" message. Below is the screen shot
To Reproduce
Steps to reproduce the behavior:

Go to 'Inbox'
Click on 'any ticket ID'
Scroll down to Ticket details section or ticket time
Thumbnail not displaying the document image.

Expected behavior
System should display the thumbnail image and user should be able to donwload the image or document.
Screenshots

Desktop (please complete the following information):

OS: Windown
Browser: chrome
Version 129.0.6668.89

Smartphone (please complete the following information):

Device: ReadMe
OS: Anroid
Browser chrome
Version 129.0.6668.89

Additional context
None

Its Fixed @deepikaarora88 could you please provide details on what was the issue and how it was resolved from a tech persepctive. And we can close the issue

Interim issue with AWS S3 bucket document fetch which is resolved now.


[Runtime] Enable -Wall for the builds.

This helps catching trivial mistakes & UB, e.g. uninitialized
booleans, see, e.g. https://github.com/apple/swift/pull/14400
Verified this now triggers on, e.g. SwiftRemoteAST.
[1/2] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/RemoteAST -I/Users/dcci/work/swift/swift/lib/RemoteAST -Iinclude -I/Users/dcci/work/swift/swift/include -I/Users/dcci/work/swift/llvm/include -I/Users/dcci/work/swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/include -I/Users/dcci/work/swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/dcci/work/swift/llvm/tools/clang/include -I/Users/dcci/work/swift/cmark/src -I/Users/dcci/work/swift/build/Ninja-RelWithDebInfoAssert/cmark-macosx-x86_64/src -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O2  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk   -UNDEBUG  -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O2 -g -UNDEBUG -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -MD -MT lib/RemoteAST/CMakeFiles/swiftRemoteAST.dir/RemoteAST.cpp.o -MF lib/RemoteAST/CMakeFiles/swiftRemoteAST.dir/RemoteAST.cpp.o.d -o lib/RemoteAST/CMakeFiles/swiftRemoteAST.dir/RemoteAST.cpp.o -c /Users/dcci/work/swift/swift/lib/RemoteAST/RemoteAST.cpp

I'm not a build system expert, so, if this needs to be implemented in a different way (or extended), please let me know.

@swift-ci please test


Page redirect when creating equipment

When creating new equipment, I type in the serial number into the "Serial Number / Identifier" field and press enter and the Create New Equipment pop-up closes out and takes me to the Add Person pop-up.
The equipment that was being created at the time it closes out is not saved.

I confirmed the behavior. Also occurs on Access and add Serial, but not Add keys or person.


Buffer over/underrun using UBJson?

I'm using 3.2.0 and have stumbled upon what seems like a buffer over or underrun error.
std::vector<uint8_t> output;
json object = SerializeMyData(data);
json::to_ubjson(object, output);
This operation appears to work, however afterward there is a problem that appears to be caused by memory elsewhere being corrupted.  If I replace to_ubjson with to_cbor, to_msgpack, or dump the problem does not occur.
The code in question is buried deep in other code and the data difficult to extract, so creating a repro case will take some effort which I can't spare at the moment.  Plus I was just trying to_ubjson out of curiosity to compare sizes, so this isn't a blocking issue for me.  A quick search doesn't turn up an existing issue.  I submit this issue in case it is enough information for the author to zero in on a potential problem, or if someone else has seen something similar.

Thanks for reporting, but without any further information on the input, the nature of the error, example code, etc., it is difficult to act upon the issue. Any hint is greatly appreciated!

Yes, I understand and will see if I can set some time aside to dig deeper and create a repro case.

Have more information.  After jostling the code around a little, my debugger started to show me that to_ubjson is actually throwing an exception (why it wasn't showing that all along is concerning and I haven't pursued it yet, but probably not related to this library).
[json.exception.out_of_range.407] number overflow serializing<PHONE_NUMBER>3709551516
Adding a try/catch block suppresses the error and the memory corruption originally described goes away, so I suspect that is symptomatic of the exception handling problem than the json library.
That value is, of course, 0xffffffffffffff9c and therefore only representable (among the primitive types) as uint64_t.  Is this not representable in UBJSON, or is there an oversight need line 766 of binary_writer.cpp?

If I interpret http://ubjson.org/type-reference/value-types/#numeric correctly, then UBJSON only supports signed 64 bit integers, so<PHONE_NUMBER>3709551516 is not representable.
I can reproduce your issue with
#include "json.hpp"

using nlohmann::json;

int main()
{
    json j =<PHONE_NUMBER>3709551516;
    auto x = json::to_ubjson(j);
}

Throwing
libc++abi.dylib: terminating with uncaught exception of type nlohmann::detail::out_of_range: [json.exception.out_of_range.407] number overflow serializing<PHONE_NUMBER>3709551516

So I would say the library works as expected, right?

Given that UBJSON is, ummm, "limited" (broken if I'm less charitable)... then yes, your library is working correctly.

UBJSON still has a "high-precision number type" which is basically the string representation of the number:

The high-precision number type is an ultra-portable mechanism by which arbitrarily large (or precise) numbers, greater than 64-bit in size, are encoded as a UTF-8 string and passed between systems that support them. This allows high-precision number values to degrade gracefully on systems that do not have a built-in type to support numeric values larger than 64-bit. Please refer to the Best Practices page for techniques on working around the lack of larger-than-64-bit numeric types on certain platforms if you need them.

The library does not support this. Do you think this would be helpful?

Not to me -- I won't use UBJSON now that I know it doesn't support unsigned 64-bit.  If I were forced to then, yes, it would be useful as I tend to have a lot of max or near-max uint64_t values.

I would go with CBOR if possible.

One thing that would be nice (as a user of the library) would be if somehow the message from the exception could state that this is a limitation of the chosen format.  Otherwise it isn't obvious why the value is out of range.

What do you mean? Something like
[json.exception.out_of_range.407] number overflow serializing<PHONE_NUMBER>3709551516; number cannot be represented by UBJSON

or what would you propose?

Yeah, that would be helpful.  It points out to the user that its not a bug per se, but a format limitation.


Show file duration on thumbnail for videos and audio files

It's very useful for a user to know how long (in duration) a video/audio file is before they click on a piece of content. We should display this on the frontend, either with the rest of the upload details or perhaps even on the thumbnail in similar fashion to YouTube.

Cool and useful. But as you said "rest of the upload details" I was wondering if it's even possible to use something different from the YouTube's style and still get the same result on every platform.

Explain that more @iddev5 ?

I don't have anything to explain. Right now, the way YouTube shows file duration is the only mode. I was wondering if some other way is possible.
Information in text form below the thumbnail is definitely an option but it might look a bit weird.


Path transform for cross-package declarations

ES6-only -
Path transform was skipped when declaring a module that exists in a different package. This processes module declarations in ts files as well. It will be ignored if it is relative and will be transformed corectly if not.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15450/merge
Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15450/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15450/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15450/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15450/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15450/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15450/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15450/merge#BCU1XR#0

Visualization tests for WebGPU (Experimental)
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15450/merge/testResults/webgpuplaywright/index.html

WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15450/merge/testResults/webgl2playwright/index.html


embeds scaling on mobile browser

Embedded elements weren’t scaled down to the max-width.  This was courtesy of @toddgrotenhuis who pointed this issue out for Hitchens, and I’ve fixed it here too.

Fixed, will be included in the next update.


Made UPX available for other architechures

This change enables UPX build on arm architectures (tested on arm64)
It should also be backwards compatible with existing build setups, as UPX was (assumably) explicitly disabled for anything but amd64.
To re-enable, the build environment has to be modified, so that $UPX_COMPRESS is true, even when building on arm64.

Thanks!


Fix with "wordlists/english.js"

Details are here: https://github.com/nbd-wtf/nostr-tools/issues/25

The nip06 test was PASSED OK (it was patched here and these tests are after patch)
Thanks for quickly the approving!
Other tests partially failed, but there you need to understand separately and there are other reasons:
$ npm run test

><EMAIL_ADDRESS>test
> jest

 PASS  ./nip10.test.ts (5.169 s)
 PASS  ./nip26.test.ts (5.186 s)
 PASS  ./filter.test.ts (5.287 s)
 PASS  ./utils.test.ts (5.398 s)
 PASS  ./nip19.test.ts (5.45 s)
 PASS  ./fakejson.test.ts
 PASS  ./event.test.ts (5.498 s)
 PASS  ./nip57.test.ts (5.6 s)
 PASS  ./nip18.test.ts
 FAIL  ./nip27.test.ts
  ● Test suite failed to run

    nip27.ts:63:7 - error TS2322: Type 'DecodeValue<"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec">' is not assignable to type 'DecodeResult'.
      Type 'DecodeValue<"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec">' is not assignable to type 'DecodeValue<"npub">'.
        Type '"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec"' is not assignable to type '"npub"'.
          Type '"note"' is not assignable to type '"npub"'.

    63       decoded: decode(value)
             ~~~~~~~

      nip21.ts:21:3
        21   decoded: DecodeResult
             ~~~~~~~
        The expected type comes from property 'decoded' which is declared here on type 'NostrURI'

 PASS  ./references.test.ts
 PASS  ./nip21.test.ts
 PASS  ./nip25.test.ts
 PASS  ./keys.test.ts
 PASS  ./nip06.test.ts
 PASS  ./nip04.test.ts
 PASS  ./nip13.test.ts
 PASS  ./nip42.test.ts
 PASS  ./nip39.test.ts
 FAIL  ./nip05.test.ts
  ● fetch nip05 profiles

    TypeError: Cannot read properties of null (reading 'pubkey')

      19 |
      20 |   let p3 = await<EMAIL_ADDRESS>    > 21 |   expect(p3!.pubkey).toEqual(
         |              ^
      22 |     '36e65b503eba8a6b698e724a59137603101166a1cddb45ddc704247fc8aa0fce'
      23 |   )
      24 |   expect(p3!.relays).toEqual(undefined)

      at Object.<anonymous> (nip05.test.ts:21:14)

 PASS  ./relay.test.ts
 PASS  ./pool.test.ts (7.458 s)

Summary of all failing tests
 FAIL  ./nip27.test.ts
  ● Test suite failed to run

    nip27.ts:63:7 - error TS2322: Type 'DecodeValue<"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec">' is not assignable to type 'DecodeResult'.
      Type 'DecodeValue<"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec">' is not assignable to type 'DecodeValue<"npub">'.
        Type '"npub" | "note" | "nprofile" | "nrelay" | "nevent" | "naddr" | "nsec"' is not assignable to type '"npub"'.
          Type '"note"' is not assignable to type '"npub"'.

    63       decoded: decode(value)
             ~~~~~~~

      nip21.ts:21:3
        21   decoded: DecodeResult
             ~~~~~~~
        The expected type comes from property 'decoded' which is declared here on type 'NostrURI'

 FAIL  ./nip05.test.ts
  ● fetch nip05 profiles

    TypeError: Cannot read properties of null (reading 'pubkey')

      19 |
      20 |   let p3 = await<EMAIL_ADDRESS>    > 21 |   expect(p3!.pubkey).toEqual(
         |              ^
      22 |     '36e65b503eba8a6b698e724a59137603101166a1cddb45ddc704247fc8aa0fce'
      23 |   )
      24 |   expect(p3!.relays).toEqual(undefined)

      at Object.<anonymous> (nip05.test.ts:21:14)

Test Suites: 2 failed, 20 passed, 22 total
Tests:       1 failed, 3 todo, 115 passed, 119 total
Snapshots:   0 total
Time:        13.345 s
Ran all test suites.


Lazy loading of computed fields

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
I have a use case where I would like to lazily compute an expensive computed_field - that is, only compute on either direct access or when dumped.
Specific use case is for computing md5sum of potentially large files (GBs), and I would love a solution like this:
import hashlib
from pydantic import BaseModel, FilePath, computed_field

class PydanticFile(BaseModel):
    path: FilePath

    @computed_field(lazy=True) # <--- This is the magic keyword
    def md5sum(self) -> str:
        hash = hashlib.md5()
        with open(self.path, "rb") as f:
            for chunk in iter(lambda: f.read(4096), b""):
                hash.update(chunk)
        return hash.hexdigest()

f = PydanticFile(path="/foo/bar/x.tar.gz") # md5sum not computed or validated
print(f) # md5sum not computed or validated

print(f.md5sum) # md5sum computed (and validated?)
print(f.model_dump()) # md5sum computed
print(f.model_dump_json()) # md5sum computed

This would obviously work well in tandem with cached_property.
I couldn't find any issue targeting this. I apologize if this is already possible - if so, I would very much appreciate a pointer in the right direction.
Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[X] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

I'm afk right now.
Are you sure computed_field isn't already lazy?
There are some issues with cached_property, I'm sure you can find it with a quick search.

Oh my god, you're right. I don't know how I missed it. The following achieves what I wanted:
import hashlib
from functools import cached_property

from pydantic import BaseModel, FilePath, computed_field

class PydanticFile(BaseModel):
    path: FilePath

    @computed_field(repr=False)
    @cached_property
    def md5sum(self) -> str:
        print("!!! Computing md5sum")
        hash = hashlib.md5()
        with open(self.path, "rb") as f:
            for chunk in iter(lambda: f.read(4096), b""):
                hash.update(chunk)
        return hash.hexdigest()

print("Initiating")
f = PydanticFile(path="/tmp/foo.txt")
print("str(f)")
print(str(f))
print("f.model_dump()")
print(f.model_dump())
print("f.model_dump_json()")
print(f.model_dump_json())
print("f.md5sum")
print(f.md5sum)

Outputs:
Initiating
str(f)
path=PosixPath('/tmp/foo.txt')
f.model_dump()
!!! Computing md5sum
{'path': PosixPath('/tmp/foo.txt'), 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e'}
f.model_dump_json()
{"path":"/tmp/foo.txt","md5sum":"d41d8cd98f00b204e9800998ecf8427e"}
f.md5sum
d41d8cd98f00b204e9800998ecf8427e

Sorry for the inconvenince, and thank you for the quick reply. No issue encountered with cached_property either :+1:

/close

Is there any way to do this without adding underscores to the real underlying fields?
It would be awesome to have lazy fields that recompute on every .__getattr__() or .model_dump() without needing so much duplication in the model definition.


Fix missing info link for the applications

Description

The link below in the applications screen got removed for some reason but should not have been.

Expected Behavior
Link shown in screenshot above should show
Actual Behavior
Link isn`t shown
Possible Fix
Add the link

Fixed missing link in applications view.
The text of the link and the link itself can be configured by the resources. If no link is configured for the language that is selected and the default language is not nl (the default implemented in the app) no link is shown. This is because the link can be language dependant.

Test results :heavy_check_mark:
Link not configured for specific language :heavy_check_mark:
For the language 'English'  I did not configured the moreInfo and moreInfoLink and as expected, no link was shown below the application list.
Link configured for specific language :heavy_check_mark:
I added the following configuration to my init script:
    'general': {
      'language': {
        'default': 'en'
      },
      'resources': {
        'en': {
          'applications' : {
            'moreInfo': 'More information about this application',
            'moreInfoLink': 'https://www.consentcookie.nl?lang=en',
        }...,

and as expected, the link More information about this application was shown when I listed the applications.


Redundant null checks

This null check is redundant

The commit log for the first commit should be amended to be clearer about what it does, e.g. "Remove redundant null check in EditorSceneImporterAssimp".
The second commit should be removed, it doesn't seem to do anything (and doesn't particularly trigger any unit test on Travis).

Sorry about that, I have updated the descriptions and commits to more properly describe the PR.

Thanks!


Discovery loot item not showing in travels

Sometimes when discovering a loot item it does not appear in travels log but does show in inventory. This happens on occasion and not every time

This is a data not updating problem as the indexer provides id and UI needs to fetch the name


Add lesion mask argument to antsBrainExtraction

Currently antsBrainExtraction.sh uses  SyN registration This creates some problems in brains with stroke (or other lesions), because the deformation of the lesion causes some of the brain mask to go in the lesion. Sometimes is more evident but here is a more subtle example:

I am thinking that is might be a good idea to add an argument for a lesion mask, and then remove the mask from registrations. I am not that practical at implementing this without major changes in the script (i.e., I usually use the mask on the fixed image, but here the lesioned image might be the moving image), but I am sure that such option would be helpful to all those who work on lesioned brains.

Can you post data for me to play with?  Assuming that the user would have to supply the initial lesion masks for a given cohort, I don't know if that would be less time-consuming than simply correcting any errors in the brain extraction masks post-processing.  Perhaps a better route would be to allow for increased regularization in the registration, e.g., BSplineSyN.


Write the Receiving Data in Transit/Data in Flight guide

Description:
Write the Receiving Data in Transit/Data in Flight guide

Added the new guide [1].
[1] https://ei.docs.wso2.com/en/latest/streaming-integrator/guides/receiving-data-in-transit/


improve error message when java isn't found

right now if there's no JAVA_HOME and java isn't in the path we get:
Traceback (most recent call last):
  File "./bin/ycsb", line 209, in <module>
    sys.exit(main())
  File "./bin/ycsb", line 205, in main
    return subprocess.call(ycsb_command)
  File "/usr/lib64/python2.6/subprocess.py", line 478, in call
    p = Popen(*popenargs, **kwargs)
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Which is pretty terrible. If there's no JAVA_HOME, do a test for the java command and give a better message. Probably the same thing should be done for where we call maven.

I'll pick this one up and fix next week.

ugh. ran into this again today.

Found the same issue in ycsb , thanks to the author for pointing out solution.


Application set addition to the Volume

There is no application set adding for the volume in the python-3parclient. Any idea how to do the task in python?

Hi sidrockzz,
Raghavendra here.
I didn't understand your question.
Can you please give some background? What is scenario you are trying?
What is expectation from python-3parclient?
Request you to please elaborate.
Thanks.

I am working on adding the application set to the volume which I have created using the createVolume method available in the  python-3parclient, the thing is I am unable to add the application set to the volume via the module.


feat: add ranking evaluators

i was thinking, maybe we can use the power_relevance fomular by default, according to wiki:

The latter formula is commonly used in industry including major web search companies[5] and data science competition platforms such as Kaggle

And we do not maintain all the tests/wired argument name for the traditional formulation anymore. How do you think?

I think since it is the default, I would keep it like this. I used to do some experiments about adding this or not. Also maybe some people may have the dataset already precomputed with the relevance


feat: Add new localrule ruleparam to keywords.yaml

Keyword was added to snakemake lang in v7.25.0 through PR https://github.com/snakemake/snakemake/pull/2180
Requires more work apparently, can see https://github.com/snakemake/snakemake-lang-vscode-plugin/pull/17 for the necessary changes to regexes etc.
Resolves #23

@corneliusroemer do you want to be an official maintainer of this repo? This way, we could probably speed up the development.

Would be happy to have maintainer rights, though I can't promise to do much more than updating keywords - I'm not a real TS/JS dev, but I'm happy to make trivial/maintenance changes. @johanneskoester


Lang attribute

Using local in next config adds the local into the URL.  We don't need/want that at the moment so the commit that did that has been reverted.
A new commit to manually set the local has been added.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.842%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1254

Relevant Lines:
1740

💛  - Coveralls


Add-ExcelChart / Width Parameter Not Applying

When Creating a Worksheet with 2 charts, both of them have the width set to '430'.
Yet, the result is:

Chart1 Width = 962
Chart2 Width = 757

The Height Parameter appears to be working fine; not sure why the Width would be having any issues.  My first (and best) guess, is that it's just me.
Anyway - this is all super incredible, and I can't thank you guys enough for what you're doing/have done/may do/etc!

Thanks! Could you post a sample showing  the issue?

Sure!
Code is:
$data = @"
Used,Free
25474.47,2342.39
,
Used,Free
45229.27,6450.264
"@ | ConvertFrom-Csv -NoTypeInformation

$out = "$env:TEMP\test.xlsx"
Remove-Item $out -ErrorAction Ignore

$excel = $data | Export-Excel -Path $out -WorksheetName "Charts" -StartRow 1 -StartColumn 1 -PassThru

$chartParams = @{
  Worksheet       = $excel.Report
  Title           = 'Test Chart 1'
  ChartType       = 'Pie'
  Column          = 0
  Row             = 0
  RowOffSetPixels = 5
  XRange          = "Charts!A1:B1"
  YRange          = "Charts!A2:B2"
  Width           = 430
  Height          = 211
  ShowPercent     = $true
}

$chart = Add-ExcelChart @chartParams -PassThru

$chartParams.Title = 'Test Chart 2'
$chartParams.Column = 4
$chartParams.XRange = "Charts!A4:B4"
$chartParams.YRange = "Charts!A5:B5"

$chart = Add-ExcelChart @chartParams -PassThru

Close-ExcelPackage $excel

And the output screenshot is attached
:)


Certificate has expired and build fails

Not sure if I should disable signing or create a test cert. Don't really care for either just worried one or both will mess up ClickOnce distribution

Disabling signing the manifest for now. We'll see how that affects ClickOnce


OOBESETTINGS ERROR

After setting up account and password when booting windows 10 for first time I keep getting , something went wrong "OOBESETTINGS", and setup never completes

I am getting this error


Accessing a numpy array defined in a module using the module name prefix fails in nopython mode

Suppose there is a module nmod.py:
import numpy as np
narr = np.array([1, 2, 5])

Then the following code works just fine in both object and nopython mode:
import numpy as np
from numba import jit
from nmod import narr
@jit(nopython=True)
def numba_test():
    return np.sum(narr)
print(numba_test())

Output:
8
However, accessing narr with module name prefix fails in  nopython mode:
import numpy as np
from numba import jit
import nmod
@jit(nopython=True)
def numba_test():
    return np.sum(nmod.narr)
print(numba_test())

Output:
Traceback (most recent call last):
  File "C:\Users\User\venv\lib\site-packages\numba\errors.py", line 662, in new_error_context
    yield
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 258, in lower_block
    self.lower_inst(inst)
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 301, in lower_inst
    val = self.lower_assign(ty, inst)
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 459, in lower_assign
    return self.lower_expr(ty, value)
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 1009, in lower_expr
    impl = self.context.get_getattr(ty, expr.attr)
  File "C:\Users\User\venv\lib\site-packages\numba\targets\base.py", line 588, in get_getattr
    llval = self.get_constant(attrty, pyval)
  File "C:\Users\User\venv\lib\site-packages\numba\targets\base.py", line 510, in get_constant
    return self.get_constant_generic(None, ty, val)
  File "C:\Users\User\venv\lib\site-packages\numba\targets\base.py", line 500, in get_constant_generic
    return impl(self, builder, ty, val)
  File "C:\Users\User\venv\lib\site-packages\numba\targets\arrayobj.py", line 2383, in constant_array
    return context.make_constant_array(builder, ty, pyval)
  File "C:\Users\User\venv\lib\site-packages\numba\targets\base.py", line 1015, in make_constant_array
    data = cgutils.global_constant(builder, ".const.array.data", consts)
  File "C:\Users\User\venv\lib\site-packages\numba\cgutils.py", line 876, in global_constant
    module = builder_or_module.module
AttributeError: 'NoneType' object has no attribute 'module'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/User/.../ntest.py", line 9, in <module>
    print(numba_test())
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 395, in _compile_for_args
    raise e
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 352, in _compile_for_args
    return self.compile(tuple(argtypes))
  File "C:\Users\User\venv\lib\site-packages\numba\compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 693, in compile
    cres = self._compiler.compile(args, return_type)
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 76, in compile
    status, retval = self._compile_cached(args, return_type)
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 90, in _compile_cached
    retval = self._compile_core(args, return_type)
  File "C:\Users\User\venv\lib\site-packages\numba\dispatcher.py", line 108, in _compile_core
    pipeline_class=self.pipeline_class)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 972, in compile_extra
    return pipeline.compile_extra(func)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 390, in compile_extra
    return self._compile_bytecode()
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 903, in _compile_bytecode
    return self._compile_core()
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 890, in _compile_core
    res = pm.run(self.status)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 266, in run
    raise patched_exception
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 257, in run
    stage()
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 764, in stage_nopython_backend
    self._backend(lowerfn, objectmode=False)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 703, in _backend
    lowered = lowerfn()
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 690, in backend_nopython_mode
    self.metadata)
  File "C:\Users\User\venv\lib\site-packages\numba\compiler.py", line 1143, in native_lowering_stage
    lower.lower()
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 177, in lower
    self.lower_normal_function(self.fndesc)
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 218, in lower_normal_function
    entry_block_tail = self.lower_function_body()
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 243, in lower_function_body
    self.lower_block(block)
  File "C:\Users\User\venv\lib\site-packages\numba\lowering.py", line 258, in lower_block
    self.lower_inst(inst)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\User\venv\lib\site-packages\numba\errors.py", line 670, in new_error_context
    six.reraise(type(newerr), newerr, tb)
  File "C:\Users\User\venv\lib\site-packages\numba\six.py", line 659, in reraise
    raise value
numba.errors.LoweringError: Failed in nopython mode pipeline (step: nopython mode backend)
'NoneType' object has no attribute 'module'

File "ntest.py", line 8:
def numba_test():
    return np.sum(nmod.narr)
    ^

[1] During: lowering "$0.4 = getattr(value=$0.3, attr=narr)" at C:/Users/User/.../ntest.py (8)
-------------------------------------------------------------------------------
This should not have happened, a problem has occurred in Numba's internals.
You are currently using Numba version 0.45.1.

Please report the error message and traceback, along with a minimal reproducer
at: https://github.com/numba/numba/issues/new

If more help is needed please feel free to speak to the Numba core developers
directly at: https://gitter.im/numba/numba

Thanks in advance for your help in improving Numba!

In object mode programs runs with the warning:
import numpy as np
from numba import jit
import nmod
@jit
def numba_test():
    return np.sum(nmod.narr)
print(numba_test())

Output:
C:/Users/User/.../ntest.py:5: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function numba_test failed at nopython mode lowering due to: 'NoneType' object has no attribute 'module'

File "ntest.py", line 8:
def numba_test():
    return np.sum(nmod.narr)
    ^

[1] During: lowering "$0.4 = getattr(value=$0.3, attr=narr)" at C:/Users/User/.../ntest.py (8)
  @jit
C:\Users\User\venv\lib\site-packages\numba\compiler.py:742: NumbaWarning: Function "numba_test" was compiled in object mode without forceobj=True.

File "ntest.py", line 7:
# @jit(nopython=True)
def numba_test():
^

  self.func_ir.loc))
C:\Users\User\venv\lib\site-packages\numba\compiler.py:751: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "ntest.py", line 7:
# @jit(nopython=True)
def numba_test():
^

  warnings.warn(errors.NumbaDeprecationWarning(msg, self.func_ir.loc))
8

Aliasing the module doesn't help:
import nmod as nm
...
    return np.sum(nm.narr)

Also tried different numpy functions with the same result.

Thanks for the report. I'm pretty sure that this is a known bug, will try and find the duplicate.

The issue is that, some_module.some_thing resolves as a getattr, which hits this:
https://github.com/numba/numba/blob/5bd018fd55ab2ff0916ab2c6360334fe94e471a4/numba/targets/base.py#L571-L591
and because the type is a module it will go specifically through this call:
https://github.com/numba/numba/blob/5bd018fd55ab2ff0916ab2c6360334fe94e471a4/numba/targets/base.py#L588
and get_constant needs work as it only works for simple types as noted in the comments:
https://github.com/numba/numba/blob/5bd018fd55ab2ff0916ab2c6360334fe94e471a4/numba/targets/base.py#L504-L510
xref: https://github.com/numba/numba/issues/3138 (and I think there's at least one more)


GUI perfomance

When profiling a great number of functions and zooming-in in the GUI, the application becomes non responsive. This is probably due to the density of the function blocks.
I can think of two elegant solutions: Single frame focus, Expandable blocks.
Single frame focus would allow the user to select a single frame to analyze in the GUI, thus reducing the number of blocks to work with in the GUI, increasing the performance.
Expandable blocks works similarly, where each higher level function block can be expanded to show the lower level. There can be an expand / contract all option too..

Hi Martin, I've fixed this problem in https://github.com/bombomby/brofiler/commit/42754dc0ad61c0fb58d8029b62624393a095fe1a.
DirectX can't handle efficiently vertices with very large coordinates outside the screen - this was the main performance loss. To solve this problem I just split every thread into 20 smaller drawcalls and cull non-visible. The new version should work abot 20x times faster at large zoom.
If you need to zoom even deeper - feel free to tweak DIPSplitCount constant. The bigger this value - the faster Brofiler works at large zoom. I'd say that if you have 10 threads - you can safely increase this constant up to 200 without any problems.
But be carefull with the latest version - GUI is under major reconstruction at the moment and will be significantly improved soon.


Extension should not open new tab

Right now, to make a call, the extension opens a new tab whenever the call option is used. This tab however doesn't need to do anything. Preferably, the request is made without opening a tab at all.
Might be of interest: https://stackoverflow.com/questions/26238516/chrome-extension-webrequest-redirect-to-existing-tab-without-opening-new-tab

Force of habit, my bad.

This is a bit harder then I initially thought. I wanted to use fetch and perform the request in the background. But that's not possible for a couple of reasons.

The host needs to be set in the manifest, which we can't do since we don't know it yet.
Cors is set to same-origin on Yealink devices, so we can't perform requests with an authorization header.

So the only way is to open and close the tab? Which seems a bit "bugy"? Maybe we can set an option to close the tab so that the user knows we close it after x seconds?

In 1d45b72 I added the behavior of closing the tab after 1s, additionally it doesn't focus the tab when it's created. I'm not sure if we can get anything better then that, so I'm going to close this issue. @Studio384 if you have a better solution you may reopen it.

This is basically the behavior a browser has when you try to open a download link in a new tab, so this seems fine to me. Could the timeout perhaps be reduced?

What timeout are you thinking of? I'm not sure if this can give problems on slower systems when we set this too low. On my system the lowest was 20ms, anything below that wouldn't send out a request.


Add an optional preview pane on the right side of the screen

I would like the option to add a preview pane on the right side of the screen so I can quickly see files I might open without having to fully open them such as pictures, documents and many other things. This would help save time and get the right files quickly and efficiently.

Thanks for the suggestion. Merging with #130

Thanks for the suggestion. Merging with #130


Handle empty S3 payloads (#4514)

Which issue does this PR close?

Closes #4514
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

You need to test against real S3, the emulator doesn't seem to exhibit the same issue

You need to test against real S3, the emulator doesn't seem to exhibit the same issue

I will try

@tustvold  can you give me the command you used run the tests against a real S3 bucket (obviously I will supply my own AWS credentials)
I got this far (but then I stumbled on what the "metadata endpoint" should be
TEST_INTEGRATION=1 OBJECT_STORE_BUCKET=foo  cargo test -p object_store --features=aws

Just omit the endpoint, note also that the credential names should be prefixed by OBJECT_STORE


I think Readme file needs to be updated

Here's what I get when I try to run ./build/faucet:

So, or the Readme file is not up to date, or the faucet executable is not working as it should.

I've pinged @leohhhn to take up updating the README and adding tutorials / more reference docs to the official Gno documentation 🙏
Thank you for opening up the issue

@MalekLahbib Thanks! Getting to this now. I updated the README to match the correct usage: #32


"curl: (35) Server aborted the SSL handshake" on "brew install obi"

On brew install obi, I get the error "curl: (35) Server aborted the SSL handshake"
The command brew install obi --HEAD works just fine though.

Thanks for the report!

Likely related to https://status.aws.amazon.com/

Safe to close?


Bug Report: Preunlocking and normaly unlocking weeks is impossible

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86_64)
What version of the game are you using? Look in the bottom left corner of the main menu.
1.6
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
Add any new week like you would in any other kade engine version.
Please describe your issue. Provide extensive detail and images if possible.
It's impossible to unlock weeks that you add yourself, you can't preunlock them, neither can you unlock them by playing. Though, the other weeks are always unlocked, even after reseting my save.

Fixed. Had to delete the entire save file in appdata.


Allow import of arbitrary opaque typedefs

We can declare an opaque struct type, but for something like C's FILE *, we need to be able to pull in the type FILE without any qualifiers like struct.
Pat proposes, and this sounds good to me, that we add another Area kind or something for opaque typedefs. The declaration should indicate which header file the type comes from.

I would second (third?) this. I'm using void* for this right now.


bump bn version number to 5.1.0 to match types

Fixes #550

Test fails because after updating BN the bundle size increased to ove 95kb:
FAIL dist/near-api-js.min.js: 99.54KB > 95KB (gzip)

do we even use the browserified bundle? Could the size check and all the browserify stuff be removed?

do we even use the browserified bundle? Could the size check and all the browserify stuff be removed?

the check is useful even if we don't user browserified bundle, as we don't want near-api-js bundle footprint to grow
also judging by https://github.com/near/near-api-js/pull/563 some people want to have browserified bundle

@mehtaphysical looks latest version is 5.2.0, is there any reason we don't want to use it?
also TBH I would really prefer to switch to big.js for cleaner API, but it seems like pretty large undertaking

@vgrichina updated to v5.2.
Also, using big.js sounds like a good idea. Would be a great chance to make sure we are using numbers consistently throughout near-api-js.


feat(#136): update path for mock feeds

DO NOT MERGE IT
this PR needs only preview deployment

btw, we can do this by changing the api url in .env.development to https://backend.gonullu.io/mock.
Closing this for now, we can re-open if we need this, but i doubt it 🤔


merge from apache

Improved:
Implemented:
Documented:
Completed:
Reverted:
Fixed:
(OFBIZ-)
Explanation
Thanks:

merge from apache

finish merging from apache


Rails 5.0.0 and shopify_api

Hi,
I'm getting following message with bundle install
Fetching git://github.com/rails/rails-observers.git
Fetching git://github.com/Shopify/shopify_api.git
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Bundler could not find compatible versions for gem "rails":
In snapshot (Gemfile.lock):
rails (= 5.0.0)
In Gemfile:
rails (~> 5.0.0)
shopify_app (~> 6.2.0) was resolved to 6.2.0, which depends on
  rails (< 5.0, >= 3.1)

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
This is my Gemfile:
`source 'https://rubygems.org'
gem 'rails', '~> 5.0.0'
gem 'pg', '~> 0.18'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'rails-observers', github: 'rails/rails-observers'
gem 'activeresource'
gem 'shopify_api', github: 'Shopify/shopify_api'
gem 'shopify_app', '~> 6.2.0'
gem 'jquery-rails'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
group :development, :test do
gem 'byebug', platform: :mri
end
group :development do
gem 'web-console'
gem 'listen', '~> 3.0.5'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]`
Checked out the 5.0.0beta3 thread but it didn't change anything
Any Ideas?
Thanks
Zin

You are using an old version of Shopify app. Try 7.1.0


fix: pass in projectReferences to avoid missing some error reports

Summary
fix: #283
Related Links

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

Do we need to add rest fields alongside, are they useful?

Do we need to add rest fields alongside, are they useful?

According to Typescript source code, it seems they are not useful yet.
interface CreateProgramOptions {
    rootNames: readonly string[];
    options: CompilerOptions;
    projectReferences?: readonly ProjectReference[];
    host?: CompilerHost;
    oldProgram?: Program;
    configFileParsingDiagnostics?: readonly Diagnostic[];
}


napari instances share layer mode

🐛 Bug

To Reproduce
Steps to reproduce the behavior:

Run the MWE below
Change the layer mode in first viewer (e.g. to "Add rectangles")
The layer mode of both napari instances changes (see screencast)
Changing the layer mode in the second viewer doesn't affect the first viewer

Minimum working example (MWE):
#!/usr/bin/env python
import napari

from qtpy.QtWidgets import QApplication

if __name__ == "__main__":
    app = QApplication([])
    viewer1 = napari.Viewer()
    shapes1 = viewer1.add_shapes()
    viewer2 = napari.Viewer()
    shapes2 = viewer2.add_shapes()
    app.exec()

https://user-images.githubusercontent.com/7105759/148750090-6316b1b9-1dcc-4825-a4fd-ce4ad688ee86.mp4
Expected behavior
The layer mode should change in the active napari window only
Environment
Ubuntu 20.04.3 LTS
Fresh conda environment with Python 3.9.7 and napari 0.4.12
Additional context
If only the first viewer has a Shapes layer, changing the mode of that layer will crash the application:
WARNING: Traceback (most recent call last):
  File "/home/jonas/miniconda3/envs/napari/lib/python3.9/site-packages/napari/utils/action_manager.py", line 53, in <lambda>
    self._command_with_context = lambda: call_with_context(
  File "/home/jonas/miniconda3/envs/napari/lib/python3.9/site-packages/napari/utils/action_manager.py", line 42, in call_with_context
    return function(**ctx)
  File "/home/jonas/miniconda3/envs/napari/lib/python3.9/site-packages/napari/layers/shapes/_shapes_key_bindings.py", line 90, in activate_direct_mode
    layer.mode = Mode.DIRECT
AttributeError: 'NoneType' object has no attribute 'mode'

Could this be caused by the new current_viewer global?
I see that this is used in https://github.com/napari/napari/blob/main/napari/utils/_injection.py
If that's the case, this would effectively mean that at the moment no two napari instances can run at the same time.

Probably related to/a duplicate of https://github.com/napari/napari/issues/2897

Hey @jwindhager, I'm not seeing this on main...
#2987 was fixed in https://github.com/napari/napari/pull/3692
can you verify that you're on main?

Apologies! Thought I had tested this on the latest main, too, not realizing I was on another branch... My bad, closing

No worries thanks for checking


Fix read the doc

The version of mkdocstring changed: https://mkdocstrings.github.io/changelog/


[Snyk] Security upgrade urllib3 from 2.0.7 to 2.2.2

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):

examples/v1beta1/trial-images/enas-cnn-cifar10/requirements.txt

⚠ Warning
```
tensorflow 2.10.1 requires tensorflow-io-gcs-filesystem, which is not installed.
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with your project.
> - Max score is 1000. Note that the real score may have changed since the PR was raised.
> - This PR was automatically created by Snyk using the credentials of a real user.
> - Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

---

**Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._

For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI3Yzg3M2NjMS0zMWM0LTRiZmItOWJiZC0xMWZlNGU3MGE5NTAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjdjODczY2MxLTMxYzQtNGJmYi05YmJkLTExZmU0ZTcwYTk1MCJ9fQ==" width="0" height="0"/>
🧐 [View latest project report](https://app.snyk.io/org/ryanhammerdick/project/bcf23398-cc50-407c-8084-81e703be062c?utm_source=github&utm_medium=referral&page=fix-pr)
📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
🛠 [Adjust project settings](https://app.snyk.io/org/ryanhammerdick/project/bcf23398-cc50-407c-8084-81e703be062c?utm_source=github&utm_medium=referral&page=fix-pr/settings)
📚 [Read about Snyk's upgrade logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities)

---

**Learn how to fix vulnerabilities with free interactive lessons:**

🦉 [Learn about vulnerability in an interactive lesson of Snyk Learn.](https://learn.snyk.io/?loc=fix-pr)

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"urllib3","from":"2.0.7","to":"2.2.2"}],"env":"prod","issuesToFix":[{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-URLLIB3-7267250","priority_score":586,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6","score":300},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Improper Removal of Sensitive Information Before Storage or Transfer"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-URLLIB3-7267250","priority_score":586,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6","score":300},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Improper Removal of Sensitive Information Before Storage or Transfer"}],"prId":"7c873cc1-31c4-4bfb-9bbd-11fe4e70a950","prPublicId":"7c873cc1-31c4-4bfb-9bbd-11fe4e70a950","packageManager":"pip","priorityScoreList":[586],"projectPublicId":"bcf23398-cc50-407c-8084-81e703be062c","projectUrl":"https://app.snyk.io/org/ryanhammerdick/project/bcf23398-cc50-407c-8084-81e703be062c?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"type":"auto","upgrade":[],"vulns":["SNYK-PYTHON-URLLIB3-7267250"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 73.279%

Totals

Change from base Build<PHONE_NUMBER>:
0.4%

Covered Lines:
3129

Relevant Lines:
4270

💛  - Coveralls


Create quick start guide for web application dev

Created with commit 879d2ff0a9be9907f45c36d79396384868577f9b closing task. Guide now available on https://docs.opendata.scot/.
Closing task.


Add a how to contribute guide

Add a how to contribute guide in the Readme that covers how to get pre-commit checks working, how to squash commits, how to create a PR with one single change that is easy to review, and any other practices followed in the project.

solved in #198


HP Fatal error:  Uncaught Error: Class 'Proxmox\Request' not found

This is the Error:
root@cp:/var/www/html/proxmoxcp# php test.php
PHP Fatal error:  Uncaught Error: Class 'Proxmox\Request' not found in /var/www/html/proxmoxcp/test.php:15
Stack trace:
#0 {main}
thrown in /var/www/html/proxmoxcp/test.php on line 15
I am using your example script...

PHP Version tested on 7.3.3 and 7.4 .. both the same error ...
my Proxmox login data is correct and its possible to ping it from my webserver ...

PHP Version tested on 7.3.3 and 7.4 .. both the same error ...
my Proxmox login data is correct and its possible to ping it from my webserver ...

if your php file is a standalone file you have to include vendor/autoload.php yourself

if your php file is a standalone file you have to include vendor/autoload.php yourself


Mismatched types pageID

When using the current dev branch, login in as page is broken due to the given ID internally turned into a string.
After editing the setOptions function, to not convert pageID into a string, receiving messages as page works.
This breaks preventing selfListen though as there it is expected to be a string in the comparison.
In short: somewhere along the line there is a type mismatch, that prevents pageID to be properly compared.

Hmm, because Facebook gives us ids as strings, we're currently working with the general rule that all ids should be stored at strings to avoid too many problems on this type.  I'll take a look when I get a chance.  Do you know where it broke the first time, before you changed setOptions?

Hey @Atachi, can you let me know if this fixes your problem? :smile:

Hi.
I was talking about the "pre-release-v1.0" branch. In "master", pages were working.
Currently have to use that branch due to requiring the external stopListening feature still missing in the master.
Sorry if that hasn't been clear in the original message.

Awesome, thanks.  Coincidentally, there was exactly the same problem in the master branch.  Just heading to work now but hopefully it'll be fixed by the end of the day.  Feel free to try and submit a pull request if you want to give it a shot!
Note: if you do make a pr, can make sure we convert the passed in page id to a string in setOptions?  (That's in index.js)


Cannot migrate big wallet

Context
There is -> https://github.com/input-output-hk/cardano-wallet/blob/master/lib/shelley/src/Cardano/Wallet/Shelley/Transaction.hs#L215
    _estimateMaxNumberOfInputs _ _ =
        -- FIXME Implement.
        100

which causes that big wallets cannot be migrated using migration endpoint.
Integration test -> SHELLEY_MIGRATE_01_big_wallet (PR: https://github.com/input-output-hk/cardano-wallet/pull/1739)

Information
-

Version
2020.6.5 (git revision: 3bafec15d862c81c052c4cf450fa7e6cf29d0f76)

Platform
Linux, All

Installation
from source

Steps to Reproduce

stack test cardano-wallet-shelley:integration --ta "--match SHELLEY_MIGRATE_01_big_wallet"

Expected behavior
Test passes.
Actual behavior
Test fails:
  7) API Specifications SHELLEY_MIGRATE_01 -  migrate a big wallet requiring more than one tx
       expected: Status {statusCode = 202, statusMessage = "Accepted"}
        but got: Status {statusCode = 500, statusMessage = "Internal Server Error"}

       from the following response: Left (DecodeFailure "{\"code\":\"created_invalid_transaction\",\"message\":\"That's embarrassing. It looks like I've created an invalid transaction that could not be parsed by the node. Here's an error message that may help with debugging: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (MaxTxSizeUTxO 20614 4096)))]\"}")

Resolution
There is -> https://github.com/input-output-hk/cardano-wallet/blob/master/lib/shelley/src/Cardano/Wallet/Shelley/Transaction.hs#L215
    _estimateMaxNumberOfInputs _ _ =
        -- FIXME Implement.
        100

#1764

QA

Integration spec for migrating big wallets has been re-enabled, although I had to reduce a bit the size of the "big wallet" to make it under a reasonable time in CI. Every transaction has to be sent sequentially, and it takes time. A single transaction is about 2 to 3 seconds and therefore requires clients to have a rather big request timeout. In CI however, we can't increase this timeout too much because it also impacts every other scenarios and makes them slower. So I've reduced a bit the size of the big wallet to not have 500 UTxOs, but "only" 200 which still creates 7 transactions.
See: https://github.com/input-output-hk/cardano-wallet/blob/master/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Migrations.hs#L166-L246

lgtm


Game won't start

Hi there. Not sure if it was error on my end, so to clarify it is packed.zip that we were supposed to unpack in the directory, right?
Github is generally confusing to me but I am hoping I got that right.
After unpacking I am getting this error upon trying to start the game:
"Config version '1' is not supported (version < 0 or version > 0).
File: D:\GOG Galaxy\Ganes\Cyberpunk 2077\red4ext\config.ini
D:\a\RED4ext\src\red4ext.dll\Config.cpp:74
The game will close now to prevent unexpected behavior. "
I am really crossing my fingers that someone will know what the issue is, or that I installed the wrong thing so I can fix it.
This mod looks so amazing and I really want to try it.

I'm no dev for this mod, or for any mod but when I open my config.ini file located in the red4ext folder, the second line of text says "version = 0".
Judging by the error message you've sent here maybe try changing that value to 0 and see if it works? You should be able to right click on the config.ini and open it with notepad and change the value.
Hope this helps :)

More than likely you did not install the prereq mods.


Review Flask-Sijax for approval.

Slavi Pantaleev
http://packages.python.org/Flask-Sijax/

Listed.  Recommendation: move the init_app and route functions into methods of the SijaxHelper class, and consider shortening the name for SijaxHelper to just Sijax.  These changes would lead to an API that is more consistent with Flask extension patterns.
I'm testing with Flask 0.8, and test_sijax_helper_object_is_only_bound_to_g_in_a_request_context errors out with RuntimeError: working outside of request context.
Python 2.5 breaks, starting with lack of JSON support (json was added in Python 2.6, based on simplejson package).

Thanks for the suggestions.
The test was broken, because of a change in Flask 0.7 - this is now fixed.
I renamed the class from SijaxHelper to Sijax and changed things a bit, so it implements the init_app pattern seen in other extensions (the init_sijax module function is now gone).
The whole thing was moved to the flask_sijax package, getting rid of the flaskext.sijax namespaced package.
I kept the route helper decorator at the module level (currently flask_sijax.route) as it didn't seem right to have it as a static method in the Sijax class or even more so as an instance method.
What do you suggest should be done about Python 2.5 and JSON? The Sijax library throws a RuntimeError the first time json is used, if it couldn't find a json implementation ( https://github.com/spantaleev/sijax-python/blob/eb2c8fbb92386b361093863692a4ec4a4ca7e2cb/sijax/helper.py#L17 ). If simplejson has to be listed as a requirement in setup.py maybe that needs to happen in Sijax anyway, and not in this Flask extension.


Dark Mode changes and navbar navigation

1) No navbar in book you appointment page, it makes it difficult for user to navigate back to home or other pages. Atleast a single back to home button should be there.

2) Dark theme enhancements
Text not visible clearly in dark mode

Text not at at all visible in dark mode. Text color changed to white on switching to dark theme.

Text visible only in light mode for doctors contact

Not enough space at the bottom of footer

@tushargupta1504 kindly review this issue and do let me know if any or all of the tasks will be assigned to me?

give me a chance to solve the issues .

@tushargupta1504 kindly review this issue and do let me know if any of task is assigned to me?


[Bug] log view empty problem

Search before asking

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

Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
The question is how do I know if my log are collected? I'm not sure my log are reported and collected, I've set up the java-agent for a spring-boot application without error and no error appear in my agent logs dir and oap server logs dir.
Thanks.
oap server 9.3.0
spring-boot 2.x app
java agent is of version 8.15.0
tracing view is ok
and logs have show up with correct traceId info.
What you expected to happen
Log view should show logs instead of empty.
How to reproduce
oap server 9.3.0
spring-boot 2.x app
java agent is of version 8.15.0
Anything else
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Read docs. I don't know why you keep opening an issue.
This is not things work.


Autoware continuously accelerates not considering a friction.

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I'm convinced that this is not my fault but a bug.

Description
Hi team,
I'm currently running Autoware with Carla, and I found a situation that the ego vehicle continuously accelerates not considering a friction.
Here's the video and log file for the situation: [rviz] [frontview] [launch.log]
At the frontview video, the ego vehicle passes a blue box that indicates the low-friction area, and after exiting the blue box, the speed of the ego vehicle goes up to 44km/h(the speed limit is 30km/h) instantly and slows down. (the collision with the pedestrian is related to the issue #6709)
So I also tested the normal scenario(with no low-friction area and no pedestrian) and I could observe that the overall acceleration value is very similar, but it seems that it starts to be different when the vehicle is on the low-friction area. Here's the graph on change of acceleration value during the driving(x: # of published message(fps=20), y: acceleration value):

Around the 300th message, I could check that the acceleration value increases for some periods, and it decreases steeply after increasing.
It seems the ego vehicle is driving on the low-friction area at the 300th message, and the acceleration value seems a bit high, compared to the normal scenario.
Expected behavior
I expected the ego vehicle to drive as usual, even when the vehicle is on the low-friction area.
Actual behavior
But the vehicle misbehaves after passing the low-friction area.
Steps to reproduce
Here's a ros2bag file to reproduce: [ros2bag]
Versions

Autoware: 20240115, prebuilt docker
Carla: 0.9.13
OS (host): Ubuntu 20.04
OS (docker): Ubuntu 22.04

Possible causes
No response
Additional context
No response

Low friction is very challenging because of the slip it introduces. In such a case, the brake and steer command does not behave as expected and control becomes very poor.
It is a very difficult problem that is not currently handled by Autoware.
If we knew some areas had low friction, then we would need to use specific controllers (https://www.mdpi.com/2075-1702/11/3/403).

Low-friction is out of the current scope of Autoware so this issue will probably not be addressed before a while.

Hello @maxime-clem If this issue is wont-fix. Can we close this issue or is there any other suggestion

@meliketanrikulu do you think it is okay to leave it open ? The issue is not resolved and may be addressed in the future so I prefer if we can leave it open.
We can also decide to close it and reopen it if we start working on it. I don't think we have decided on how to handle the "won't fix" issues.

do you think it is okay to leave it open ? The issue is not resolved and may be addressed in the future so I prefer if we can leave it open.
We can also decide to close it and reopen it if we start working on it. I don't think we have decided on how to handle the "won't fix" issues.

@maxime-clem Maybe we can open as feature request section in the discussions (https://github.com/orgs/autowarefoundation/discussions/categories/feature-requests)  and we can close wont-fix issues. It may be useful to talk about this topic at Software WG.


Fix some missing redefinitions

Closes #180
Testing with FORD found a few macros in v1 that weren't undef'd before redefining.
Note that I haven't tested this with GEOS, but it seems safe...

I wonder why GCC 9 works on Ubuntu but fails on macOS? Could the changes in this PR possibly cause it?

Just came back to this and I see we have the dreaded macOS 11 / GNU 9 failure. For now, I've made that test optional in the settings.

@tclune as this is a hotfix on main, I'll leave the merge-and-release to you. I have updated the date in the ChangeLog to today, though that can change whenever.


add previews for hard and medium variants

Closed with only one preview because user can choose the color themself so it will not be the same as preview anyway.